{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "c0bfe34330b5fafdbbc63a7124841711651b96b9"
            },
            {
              "fixed": "5edd564ccb002ffc830e7818c1c4a992db774678"
            },
            {
              "fixed": "4404d7d2dda4f3cc84a8fb6ac5417a2afc3b22d6"
            },
            {
              "fixed": "843c0247cf21364e33bb5a8ffc9af57107d04d05"
            },
            {
              "fixed": "6597ff1d8de3f583be169587efeafd8af134e138"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "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"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52904.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/nouveau: fix nvkm_device leak on aperture removal failure\n\nWhen aperture_remove_conflicting_pci_devices() fails during probe, the\nerror path returns directly without unwinding the nvkm_device that was\njust allocated by nvkm_device_pci_new(). This leaks both the device\nwrapper and the pci_enable_device() reference taken inside it.\n\nJump to the existing fail_nvkm label so nvkm_device_del() runs and\nbalances both. The leak was introduced when the intermediate\nnvkm_device_del() between detection and aperture removal was dropped\nin favor of creating the pci device once.",
  "id": "CVE-2026-52904",
  "modified": "2026-07-10T03:53:39.485509183Z",
  "published": "2026-06-09T12:36:01.237Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4404d7d2dda4f3cc84a8fb6ac5417a2afc3b22d6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5edd564ccb002ffc830e7818c1c4a992db774678"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6597ff1d8de3f583be169587efeafd8af134e138"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/843c0247cf21364e33bb5a8ffc9af57107d04d05"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52904.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-52904"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.5",
  "summary": "drm/nouveau: fix nvkm_device leak on aperture removal failure"
}