CVE-2026-99752
drm/loongson: Handle buffer mapping failures when clearing a BO
In the Linux kernel, the following vulnerability has been resolved: drm/loongson: Handle buffer mapping failures when clearing a BO lsdc_bo_clear() ignores the return value from lsdc_bo_kmap() and writes to lbo->kptr unconditionally. When the first mapping of a newly allocated buffer fails, kptr is still NULL and the subsequent memset accesses it. Return the mapping error without touching the buffer and propagate it from lsdc_gem_object_create(). Install the GEM object functions before clearing so that drm_gem_object_put() can release the buffer correctly on failure. Do not add the failed object to the tracking list or return an uncleared buffer to the caller. Imported buffers still skip clearing, and successfully mapped buffers are cleared and unmapped as before. Tested on LS7A2000 with a one-shot range error in ttm_bo_kmap(). Its -EINVAL return reached userspace, the object was destroyed once, and no GEM handle was published. Normal create/map/zero/write/read/close cycles passed, with the tracked BO count and VRAM usage unchanged. AI assistance was used for the lifetime analysis, fix, fault-injection tools, build and test execution.
Fixes and workarounds
No remediation reported in collected sources.
Missing remediation information is not evidence that no patch exists.
Affected products and versions
| Product | Versions | Authority |
|---|---|---|
| Linux Linux |
≥ f39db26c54281da6a785259498ca74b5e470476f; < 344a998475ef96b8640516f21b194fbf3b31063d (affected, git) ≥ f39db26c54281da6a785259498ca74b5e470476f; < 389de73fb826e768c73d82c8f9f7e516b3fff70b (affected, git) ≥ f39db26c54281da6a785259498ca74b5e470476f; < 834c2fdf737657c3a16c37b894a6bd07277ff082 (affected, git) ≥ f39db26c54281da6a785259498ca74b5e470476f; < 256ca06920504adde310fb5252342e4b827ebcce (affected, git) ≥ f39db26c54281da6a785259498ca74b5e470476f; < f00d7a241f846b053e89c0bb2285ef5988d4cafc (affected, git) Other versions: unaffected |
CNA: Linux |
| Linux Linux |
6.6 (affected) ≥ 0; < 6.6 (unaffected, semver) ≥ 6.6.163; ≤ 6.6.* (unaffected, semver) ≥ 6.12.118; ≤ 6.12.* (unaffected, semver) ≥ 6.18.64; ≤ 6.18.* (unaffected, semver) ≥ 7.3.5; ≤ 7.3.* (unaffected, semver) ≥ 7.4-rc2; ≤ * (unaffected, original_commit_for_fix) Other versions: affected |
CNA: Linux |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
No CVSS assessment reported. An unscored record is not a low-severity determination.
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://git.kernel.org/stable/c/344a998475ef96b8640516f21b194fbf3b31063dCNA: Linux
- https://git.kernel.org/stable/c/389de73fb826e768c73d82c8f9f7e516b3fff70bCNA: Linux
- https://git.kernel.org/stable/c/834c2fdf737657c3a16c37b894a6bd07277ff082CNA: Linux
- https://git.kernel.org/stable/c/256ca06920504adde310fb5252342e4b827ebcceCNA: Linux
- https://git.kernel.org/stable/c/f00d7a241f846b053e89c0bb2285ef5988d4cafcCNA: Linux
- https://git.kernel.org/stable/c/256ca06920504adde310fb5252342e4b827ebcce416baaa9-dc9f-4396-8d5f-8c081fb06d67
- https://git.kernel.org/stable/c/389de73fb826e768c73d82c8f9f7e516b3fff70b416baaa9-dc9f-4396-8d5f-8c081fb06d67
- https://git.kernel.org/stable/c/834c2fdf737657c3a16c37b894a6bd07277ff082416baaa9-dc9f-4396-8d5f-8c081fb06d67
- https://git.kernel.org/stable/c/f00d7a241f846b053e89c0bb2285ef5988d4cafc416baaa9-dc9f-4396-8d5f-8c081fb06d67
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.