drm/loongson: Fix double free on BO initialization failure (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.19 % · percentile 9 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- Affected products
- Linux · Linux
- NVD status
- Received
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.
References
- 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
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | Linux |
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) |
European references
- ENISA EUVD · EUVD-2026-130869
- GCVE · GCVE-0-2026-99753
CERT-FR advisories
- CERTFR-2026-AVI-1679 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1676 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1638 — Multiples vulnérabilités dans le noyau Linux de Debian · cert.ssi.gouv.fr
Affected products
| Product | Affected versions |
|---|---|
| Linux · Linux | affected : ≥ f39db26c54281da6a785259498ca74b5e470476f < 683aa6e8d8dfd0c6b07a1ccdb99b5cfe179deb38 affected : ≥ f39db26c54281da6a785259498ca74b5e470476f < 6ad25544f1dd24ac512e4d03b5613f4d6d40576d affected : ≥ f39db26c54281da6a785259498ca74b5e470476f < dd76e36520a9553a4416412aa114217541218f97 affected : ≥ f39db26c54281da6a785259498ca74b5e470476f < c8da4789c0c916fed4d546a2b07423151e5f9d59 affected : ≥ f39db26c54281da6a785259498ca74b5e470476f < f086dbdeb6e56510e158a853d752c6d8ed9e0674 Other versions : unaffected |
| Linux · Linux | affected : 6.6 unaffected : ≥ 0 < 6.6 unaffected : ≥ 6.6.163 ≤ 6.6.* unaffected : ≥ 6.12.118 ≤ 6.12.* unaffected : ≥ 6.18.64 ≤ 6.18.* unaffected : ≥ 7.3.5 ≤ 7.3.* unaffected : ≥ 7.4-rc2 ≤ * Other versions : affected |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |