CVE-2026-99753
drm/loongson: Fix double free on BO initialization failure
- CVSS
- 7.8
- EPSS
- 0.19% (p9)
- Published
- 2026-11-20
- Age
- 14d old
- Modified
- 2026-11-23
- Product
- Linux Linux
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Description
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.
Fixed in
6.12.118 · 6.18.64 · 683aa6e8d8dfd0c6b07a1ccdb99b5cfe179deb38 · 6ad25544f1dd24ac512e4d03b5613f4d6d40576d · 7.3.5 · c8da4789c0c916fed4d546a2b07423151e5f9d59 · dd76e36520a9553a4416412aa114217541218f97 · f086dbdeb6e56510e158a853d752c6d8ed9e0674
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Linux | Kernel | >=6.13.0, <6.18.64 | 6.18.64 |
| Linux | Kernel | >=6.19.0, <7.3.5 | 7.3.5 |
| Linux | Kernel | >=6.6.0, <6.12.118 | 6.12.118 |
| vendor | Linux | >=f39db26c54281da6a785259498ca74b5e470476f, <683aa6e8d8dfd0c6b07a1ccdb99b5cfe179deb38 | 683aa6e8d8dfd0c6b07a1ccdb99b5cfe179deb38 |
| vendor | Linux | >=f39db26c54281da6a785259498ca74b5e470476f, <6ad25544f1dd24ac512e4d03b5613f4d6d40576d | 6ad25544f1dd24ac512e4d03b5613f4d6d40576d |
| vendor | Linux | >=f39db26c54281da6a785259498ca74b5e470476f, <c8da4789c0c916fed4d546a2b07423151e5f9d59 | c8da4789c0c916fed4d546a2b07423151e5f9d59 |
| vendor | Linux | >=f39db26c54281da6a785259498ca74b5e470476f, <dd76e36520a9553a4416412aa114217541218f97 | dd76e36520a9553a4416412aa114217541218f97 |
| vendor | Linux | >=f39db26c54281da6a785259498ca74b5e470476f, <f086dbdeb6e56510e158a853d752c6d8ed9e0674 | f086dbdeb6e56510e158a853d752c6d8ed9e0674 |
Sources
- NVD · first seen 14d ago · NVD terms of use
- OSV · first seen 14d ago · CC-BY 4.0
- CVE List · first seen 14d ago · CVE Terms of Use
References
- https://git.kernel.org/stable/c/6ad25544f1dd24ac512e4d03b5613f4d6d40576d other
- https://git.kernel.org/stable/c/dd76e36520a9553a4416412aa114217541218f97 other
- https://git.kernel.org/stable/c/c8da4789c0c916fed4d546a2b07423151e5f9d59 other
- https://git.kernel.org/stable/c/f086dbdeb6e56510e158a853d752c6d8ed9e0674 other
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git package
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99753.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-99753 advisory
- https://git.kernel.org/stable/c/683aa6e8d8dfd0c6b07a1ccdb99b5cfe179deb38 other