# CVE-2026-52904: drm/nouveau: fix nvkm_device leak on aperture removal failure

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-06-09T12:36:01.237Z
- Modified: 2026-07-23T08:10:00.137Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/nouveau: fix nvkm_device leak on aperture removal failure

When aperture_remove_conflicting_pci_devices() fails during probe, the
error path returns directly without unwinding the nvkm_device that was
just allocated by nvkm_device_pci_new(). This leaks both the device
wrapper and the pci_enable_device() reference taken inside it.

Jump to the existing fail_nvkm label so nvkm_device_del() runs and
balances both. The leak was introduced when the intermediate
nvkm_device_del() between detection and aperture removal was dropped
in favor of creating the pci device once.

(As written by CVE List.)

## Affected

- Linux Linux: from c0bfe34330b5fafdbbc63a7124841711651b96b9 before 5edd564ccb002ffc830e7818c1c4a992db774678; from c0bfe34330b5fafdbbc63a7124841711651b96b9 before 4404d7d2dda4f3cc84a8fb6ac5417a2afc3b22d6; from c0bfe34330b5fafdbbc63a7124841711651b96b9 before 843c0247cf21364e33bb5a8ffc9af57107d04d05; from c0bfe34330b5fafdbbc63a7124841711651b96b9 before 6597ff1d8de3f583be169587efeafd8af134e138; 6.12 (not affected: before 6.12; from 6.12.86 up to 6.12.*; from 6.18.27 up to 6.18.*; from 7.0.4 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.12 before 6.12.86; from 6.13 before 6.18.27; from 6.19 before 7.0.4

## References

- <https://git.kernel.org/stable/c/5edd564ccb002ffc830e7818c1c4a992db774678> (patch)
- <https://git.kernel.org/stable/c/4404d7d2dda4f3cc84a8fb6ac5417a2afc3b22d6> (patch)
- <https://git.kernel.org/stable/c/843c0247cf21364e33bb5a8ffc9af57107d04d05> (patch)
- <https://git.kernel.org/stable/c/6597ff1d8de3f583be169587efeafd8af134e138> (patch)

## Sources

- CVE List: [CVE-2026-52904](https://www.cve.org/CVERecord?id=CVE-2026-52904), CVE Terms of Use, modified 2026-06-14
- NVD: [CVE-2026-52904](https://nvd.nist.gov/vuln/detail/CVE-2026-52904), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-52904 · Whole record: https://cve.day/CVE-2026-52904.json · Rebuilt by cve.day 2026-11-25T22:59:24.110Z
