CVE-2026-99752
drm/loongson: Handle buffer mapping failures when clearing a BO
Check your servers for CVE-2026-99752
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99752 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.27% of all scored CVEs. Scores of 28 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from f39db26c54281da6a785259498ca74b5e470476f, before 344a998475ef96b8640516f21b194fbf3b31063d affected from f39db26c54281da6a785259498ca74b5e470476f, before 389de73fb826e768c73d82c8f9f7e516b3fff70b affected from f39db26c54281da6a785259498ca74b5e470476f, before 834c2fdf737657c3a16c37b894a6bd07277ff082 affected from f39db26c54281da6a785259498ca74b5e470476f, before 256ca06920504adde310fb5252342e4b827ebcce affected from f39db26c54281da6a785259498ca74b5e470476f, before f00d7a241f846b053e89c0bb2285ef5988d4cafc
Other versions: unaffected
|
| Linux |
affected 6.6 unaffected before 6.6 unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.118 up to and including 6.12.* unaffected from 6.18.64 up to and including 6.18.* unaffected from 7.3.5 up to and including 7.3.* unaffected 7.4-rc2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99752 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99752
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-99752
trivy image --scanners vuln IMAGE | grep CVE-2026-99752
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/344a998475ef96b8640516f21b194fbf3b31063d git.kernel.org
- https://git.kernel.org/stable/c/389de73fb826e768c73d82c8f9f7e516b3fff70b git.kernel.org
- https://git.kernel.org/stable/c/834c2fdf737657c3a16c37b894a6bd07277ff082 git.kernel.org
- https://git.kernel.org/stable/c/256ca06920504adde310fb5252342e4b827ebcce git.kernel.org
- https://git.kernel.org/stable/c/f00d7a241f846b053e89c0bb2285ef5988d4cafc git.kernel.org
Source: the record CVE-2026-99752 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse