CVE-2026-99752
publisheddrm/loongson: Handle buffer mapping failures when clearing a BO
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxf39db26c54281da6a785259498ca74b5e470476f to < 344a998475ef96b8640516f21b194fbf3b31063d · f39db26c54281da6a785259498ca74b5e470476f to < 389de73fb826e768c73d82c8f9f7e516b3fff70b · f39db26c54281da6a785259498ca74b5e470476f to < 834c2fdf737657c3a16c37b894a6bd07277ff082 · f39db26c54281da6a785259498ca74b5e470476f to < 256ca06920504adde310fb5252342e4b827ebcce · f39db26c54281da6a785259498ca74b5e470476f to < f00d7a241f846b053e89c0bb2285ef5988d4cafc · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.6 (affected) · 0 to < 6.6 (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.5 through 7.3.* (unaffected · semver) · 7.4-rc2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | trixie | linux | Advisory build | 6.12.118-1 | DSA-6652-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Show 13 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | f39db26c54281da6a785259498ca74b5e470476f to < 344a998475ef96b8640516f21b194fbf3b31063d (affected · git)f39db26c54281da6a785259498ca74b5e470476f to < 389de73fb826e768c73d82c8f9f7e516b3fff70b (affected · git)f39db26c54281da6a785259498ca74b5e470476f to < 834c2fdf737657c3a16c37b894a6bd07277ff082 (affected · git)f39db26c54281da6a785259498ca74b5e470476f to < 256ca06920504adde310fb5252342e4b827ebcce (affected · git)f39db26c54281da6a785259498ca74b5e470476f to < f00d7a241f846b053e89c0bb2285ef5988d4cafc (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.6 (affected)0 to < 6.6 (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.5 through 7.3.* (unaffected · semver)7.4-rc2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/256ca06920504adde310fb5252342e4b827ebcce
- https://git.kernel.org/stable/c/344a998475ef96b8640516f21b194fbf3b31063d
- https://git.kernel.org/stable/c/389de73fb826e768c73d82c8f9f7e516b3fff70b
- https://git.kernel.org/stable/c/834c2fdf737657c3a16c37b894a6bd07277ff082
- https://git.kernel.org/stable/c/f00d7a241f846b053e89c0bb2285ef5988d4cafc
Provider assertions
1Linux · cna
drm/loongson: Handle buffer mapping failures when clearing a BO
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2c05a5f9c1e648c8342ecc058592fd767291036f61a53badac51a8f7f4240efd
- Ingested
- 23 Nov 2026, 14:37:13 UTC
- Source record
- Official CVE record