CVE-2026-99752
Severity unknownNo known exploitationFix availabledrm/loongson: Handle buffer mapping failures when clearing a BO
Record last updated
CVSS score
No score published yet
EPSS, chance of exploitation in 30 days
Higher than 9% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
Description
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.
Patching and mitigation
- Patch status
- Fix available (source: CVE record (Linux))
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- No vendor link on record
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Linux | Linux | from f39db26c54281da6a785259498ca74b5e470476f before 834c2fdf737657c3a16c37b894a6bd07277ff082 | 834c2fdf737657c3a16c37b894a6bd07277ff082 | CVE Program |
| Linux | Linux | from f39db26c54281da6a785259498ca74b5e470476f before 256ca06920504adde310fb5252342e4b827ebcce | 256ca06920504adde310fb5252342e4b827ebcce | CVE Program |
| Linux | Linux | from f39db26c54281da6a785259498ca74b5e470476f before f00d7a241f846b053e89c0bb2285ef5988d4cafc | f00d7a241f846b053e89c0bb2285ef5988d4cafc | CVE Program |
| Linux | Linux | from f39db26c54281da6a785259498ca74b5e470476f before 389de73fb826e768c73d82c8f9f7e516b3fff70b | 389de73fb826e768c73d82c8f9f7e516b3fff70b | CVE Program |
| Linux | Linux | 6.6 | Not documented | CVE Program |
| Linux | Linux (unaffected) | from 6.12.118 up to and including 6.12.* | Not documented | CVE Program |
| Linux | Linux (unaffected) | from 6.18.64 up to and including 6.18.* | Not documented | CVE Program |
| Linux | Linux (unaffected) | from 7.3.5 up to and including 7.3.* | Not documented | CVE Program |
| Linux | Linux (unaffected) | 7.4-rc2 | Not documented | CVE Program |
| Linux | Linux (unaffected) | all versions before 6.6 | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by Linux
Source: CVE Program (opens in a new tab)
Patch
Fix documented by CVE record (Linux)
Vendor guidance and references
- https://git.kernel.org/stable/c/256ca06920504adde310fb5252342e4b827ebcce (opens in a new tab)
- https://git.kernel.org/stable/c/389de73fb826e768c73d82c8f9f7e516b3fff70b (opens in a new tab)
- https://git.kernel.org/stable/c/834c2fdf737657c3a16c37b894a6bd07277ff082 (opens in a new tab)
- https://git.kernel.org/stable/c/f00d7a241f846b053e89c0bb2285ef5988d4cafc (opens in a new tab)