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

Status: published. Published: 2026-11-20. Updated: 2026-11-23.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ f39db26c54281da6a785259498ca74b5e470476f; < 344a998475ef96b8640516f21b194fbf3b31063d (affected, git); ≥ f39db26c54281da6a785259498ca74b5e470476f; < 389de73fb826e768c73d82c8f9f7e516b3fff70b (affected, git); ≥ f39db26c54281da6a785259498ca74b5e470476f; < 834c2fdf737657c3a16c37b894a6bd07277ff082 (affected, git); ≥ f39db26c54281da6a785259498ca74b5e470476f; < 256ca06920504adde310fb5252342e4b827ebcce (affected, git); ≥ f39db26c54281da6a785259498ca74b5e470476f; < f00d7a241f846b053e89c0bb2285ef5988d4cafc (affected, git). Source: 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). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.19% as of 2026-11-22; percentile 9.18%

- SSVC: Not available

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.kernel.org/stable/c/344a998475ef96b8640516f21b194fbf3b31063d (CNA: Linux)

- https://git.kernel.org/stable/c/389de73fb826e768c73d82c8f9f7e516b3fff70b (CNA: Linux)

- https://git.kernel.org/stable/c/834c2fdf737657c3a16c37b894a6bd07277ff082 (CNA: Linux)

- https://git.kernel.org/stable/c/256ca06920504adde310fb5252342e4b827ebcce (CNA: Linux)

- https://git.kernel.org/stable/c/f00d7a241f846b053e89c0bb2285ef5988d4cafc (CNA: Linux)

- https://git.kernel.org/stable/c/256ca06920504adde310fb5252342e4b827ebcce (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/389de73fb826e768c73d82c8f9f7e516b3fff70b (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/834c2fdf737657c3a16c37b894a6bd07277ff082 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/f00d7a241f846b053e89c0bb2285ef5988d4cafc (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2026-99752; retrieved 2026-11-23; source updated 2026-11-23

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-99752; retrieved 2026-11-20; source updated 2026-11-20

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-99752; retrieved 2026-11-23; source updated Not reported

Revision: f13ff20f3fcdaa5262ceffbf00c4e1caef4be9b07ebb4390b616da3dc2e760e6

Canonical: https://y2.dev/cve/CVE-2026-99752

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.