# CVE-2026-99752: drm/loongson: Handle buffer mapping failures when clearing a BO

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.19% (percentile 5, 2026-11-28)
- **Published:** 2026-11-20T05:51:22.212Z
- **Modified:** 2026-11-23T08:18:15.560Z

## Who should check

- Anyone running Linux \>= f39db26c54281da6a785259498ca74b5e470476f, \< 344a998475ef96b8640516f21b194fbf3b31063d; \>= f39db26c54281da6a785259498ca74b5e470476f, \< 389de73fb826e768c73d82c8f9f7e516b3fff70b; \>= f39db26c54281da6a785259498ca74b5e470476f, \< 834c2fdf737657c3a16c37b894a6bd07277ff082; \>= f39db26c54281da6a785259498ca74b5e470476f, \< 256ca06920504adde310fb5252342e4b827ebcce; \>= f39db26c54281da6a785259498ca74b5e470476f, \< f00d7a241f846b053e89c0bb2285ef5988d4cafc
- Anyone running Linux 6.6

## 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.

## Affected and fixed versions

- Linux: \>= f39db26c54281da6a785259498ca74b5e470476f, \< 344a998475ef96b8640516f21b194fbf3b31063d; \>= f39db26c54281da6a785259498ca74b5e470476f, \< 389de73fb826e768c73d82c8f9f7e516b3fff70b; \>= f39db26c54281da6a785259498ca74b5e470476f, \< 834c2fdf737657c3a16c37b894a6bd07277ff082; \>= f39db26c54281da6a785259498ca74b5e470476f, \< 256ca06920504adde310fb5252342e4b827ebcce; \>= f39db26c54281da6a785259498ca74b5e470476f, \< f00d7a241f846b053e89c0bb2285ef5988d4cafc (cvelist)
- Linux: 6.6 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99752. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99752.md
Affected: Linux >= f39db26c54281da6a785259498ca74b5e470476f, < 344a998475ef96b8640516f21b194fbf3b31063d; >= f39db26c54281da6a785259498ca74b5e470476f, < 389de73fb826e768c73d82c8f9f7e516b3fff70b; >= f39db26c54281da6a785259498ca74b5e470476f, < 834c2fdf737657c3a16c37b894a6bd07277ff082; >= f39db26c54281da6a785259…
Fixed in: Linux 344a998475ef96b8640516f21b194fbf3b31063d, Linux 389de73fb826e768c73d82c8f9f7e516b3fff70b, Linux 834c2fdf737657c3a16c37b894a6bd07277ff082, Linux 256ca06920504adde310fb5252342e4b827ebcce

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99752 being exploited?

There is no confirmed exploitation: CVE-2026-99752 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99752?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99752?

Linux \>= f39db26c54281da6a785259498ca74b5e470476f, \< 344a998475ef96b8640516f21b194fbf3b31063d; \>= f39db26c54281da6a785259498ca74b5e470476f, \< 389de73fb826e768c73d82c8f9f7e516b3fff70b; \>= f39db26c54281da6a785259498ca74b5e470476f, \< 834c2fdf737657c3a16c37b894a6bd07277ff082; \>= f39db26c54281da6a785259498ca74b5e470476f, \< 256ca06920504adde310fb5252342e4b827ebcce; \>= f39db26c54281da6a785259498ca74b5e470476f, \< f00d7a241f846b053e89c0bb2285ef5988d4cafc; Linux 6.6.

### Is there a fix for CVE-2026-99752?

Yes. Fixed in Linux 344a998475ef96b8640516f21b194fbf3b31063d, Linux 389de73fb826e768c73d82c8f9f7e516b3fff70b, Linux 834c2fdf737657c3a16c37b894a6bd07277ff082, Linux 256ca06920504adde310fb5252342e4b827ebcce. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-99752?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/344a998475ef96b8640516f21b194fbf3b31063d>
- other: <https://git.kernel.org/stable/c/389de73fb826e768c73d82c8f9f7e516b3fff70b>
- other: <https://git.kernel.org/stable/c/834c2fdf737657c3a16c37b894a6bd07277ff082>
- other: <https://git.kernel.org/stable/c/256ca06920504adde310fb5252342e4b827ebcce>
- other: <https://git.kernel.org/stable/c/f00d7a241f846b053e89c0bb2285ef5988d4cafc>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99752>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99752> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99752>
