CVE-2026-99753
drm/loongson: Fix double free on BO initialization failure
What happened?
In the Linux kernel, the following vulnerability has been resolved:
drm/loongson: Fix double free on BO initialization failure
If ttm_bo_init_validate() fails, it drops the buffer object's reference and cleans it up through the supplied destroy callback. lsdc_bo_destroy() releases the GEM object and frees the enclosing lsdc_bo, so freeing it again in lsdc_bo_create() causes a double free on a synchronous failure path.
Let TTM own the cleanup after initialization has started and return the error directly. Keep the explicit free on drm_gem_object_init() failure, which occurs before ownership is passed to TTM.
Tested on LS7A2000 by making drm_vma_offset_add() return -ENOSPC for one selected dumb-buffer creation. The error reached userspace, the destroy callback ran once, and no handle was published or tracked BO retained. Normal buffer creation, zeroing, mapping, readback and release passed.
AI assistance was used for the ownership analysis, fix, fault-injection tools, build and test execution.
Affected software and versions
| Software | Version information | Fixed version |
|---|---|---|
| LinuxLinux | affected: f39db26c54281da6a785259498ca74b5e470476f to < 683aa6e8d8dfd0c6b07a1ccdb99b5cfe179deb38; affected: f39db26c54281da6a785259498ca74b5e470476f to < 6ad25544f1dd24ac512e4d03b5613f4d6d40576d; affected: f39db26c54281da6a785259498ca74b5e470476f to < dd76e36520a9553a4416412aa114217541218f97; affected: f39db26c54281da6a785259498ca74b5e470476f to < c8da4789c0c916fed4d546a2b07423151e5f9d59; affected: f39db26c54281da6a785259498ca74b5e470476f to < f086dbdeb6e56510e158a853d752c6d8ed9e0674 | See vendor advisory |
| LinuxLinux | affected: 6.6; unaffected: 0 to < 6.6; unaffected: 6.6.163 to ≤ 6.6.*; unaffected: 6.12.118 to ≤ 6.12.*; unaffected: 6.18.64 to ≤ 6.18.*; unaffected: 7.3.5 to ≤ 7.3.*; unaffected: 7.4-rc2 to ≤ * | See vendor advisory |
Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.
Is it being exploited?
This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.
How to respond
- Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
- Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
- Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.
Sources and remediation references
- https://www.cve.org/CVERecord?id=CVE-2026-99753
- https://git.kernel.org/stable/c/683aa6e8d8dfd0c6b07a1ccdb99b5cfe179deb38
- https://git.kernel.org/stable/c/6ad25544f1dd24ac512e4d03b5613f4d6d40576d
- https://git.kernel.org/stable/c/dd76e36520a9553a4416412aa114217541218f97
- https://git.kernel.org/stable/c/c8da4789c0c916fed4d546a2b07423151e5f9d59
- https://git.kernel.org/stable/c/f086dbdeb6e56510e158a853d752c6d8ed9e0674