Skip to content
Heist/ feed
Back to feed
UnratedFix available

drm/nouveau: fix nvkm_device leak on aperture removal failure

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.86, 6.18.27, 7.0.4
CVEs
CVE-2026-52904
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 19:06 UTC · Revision 1

Source evidence

drm/nouveau: fix nvkm_device leak on aperture removal failure

core-osv · Original source

Published 9 Jun 2026, 12:36 UTC

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.

osv:CVE-2026-52904

Kernel

Fixed versions: 6.12.86, 6.18.27, 7.0.4

Complete source record
{
  "id": "3f430898c0adea0cee959c9ac142555e1e2173ad3c987dc47812fc382fb6c2f3",
  "url": "https://osv.dev/vulnerability/CVE-2026-52904",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "drm/nouveau: fix nvkm_device leak on aperture removal failure",
    "summary": "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.",
    "evidence": "osv:CVE-2026-52904",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.86",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.27",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.0.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-52904",
      "aliases": [
        "CVE-2026-52904"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c0bfe34330b5fafdbbc63a7124841711651b96b9"
                },
                {
                  "fixed": "5edd564ccb002ffc830e7818c1c4a992db774678"
                },
                {
                  "fixed": "4404d7d2dda4f3cc84a8fb6ac5417a2afc3b22d6"
                },
                {
                  "fixed": "843c0247cf21364e33bb5a8ffc9af57107d04d05"
                },
                {
                  "fixed": "6597ff1d8de3f583be169587efeafd8af134e138"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52904.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.12.0"
                },
                {
                  "fixed": "6.12.86"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.27"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.0.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52904.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.741198508Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/4404d7d2dda4f3cc84a8fb6ac5417a2afc3b22d6",
        "https://git.kernel.org/stable/c/5edd564ccb002ffc830e7818c1c4a992db774678",
        "https://git.kernel.org/stable/c/6597ff1d8de3f583be169587efeafd8af134e138",
        "https://git.kernel.org/stable/c/843c0247cf21364e33bb5a8ffc9af57107d04d05",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52904.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-52904",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52904.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-52904",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 505992,
  "published_at": "2026-06-09T12:36:01.237+00:00"
}