CVE-2026-52904

drm/nouveau: fix nvkm_device leak on aperture removal failure

State
Published
Severity
Not scored
Published
Jun 9, 2026
Updated
Jun 14, 2026
Reserved
Jun 9, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • c0bfe34330b5fafdbbc63a7124841711651b96b9 to before 5edd564ccb002ffc830e7818c1c4a992db774678Affected
  • c0bfe34330b5fafdbbc63a7124841711651b96b9 to before 4404d7d2dda4f3cc84a8fb6ac5417a2afc3b22d6Affected
  • c0bfe34330b5fafdbbc63a7124841711651b96b9 to before 843c0247cf21364e33bb5a8ffc9af57107d04d05Affected
  • c0bfe34330b5fafdbbc63a7124841711651b96b9 to before 6597ff1d8de3f583be169587efeafd8af134e138Affected
LinuxLinux
  • 6.12Affected
  • before 6.12Not affected
  • 6.12.86 through 6.12.*Not affected
  • 6.18.27 through 6.18.*Not affected
  • 7.0.4 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.