CVE-2026-99752
In the Linux kernel, the following vulnerability has been resolved: …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/stable/c/256ca06920504adde310fb5252342e4b827ebcce
- git.kernel.org/stable/c/389de73fb826e768c73d82c8f9f7e516b3fff70b
- git.kernel.org/stable/c/834c2fdf737657c3a16c37b894a6bd07277ff082
- git.kernel.org/stable/c/f00d7a241f846b053e89c0bb2285ef5988d4cafc
- nvd.nist.gov/vuln/detail/CVE-2026-99752
- cve.org/CVERecord?id=CVE-2026-99752
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.