CVE-2026-98516: drm/nouveau: Fix bridge reference leak in nv1a_ram_new()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/nouveau: Fix bridge reference leak in nv1a_ram_new()
pci_get_domain_bus_and_slot() takes a reference to the PCI device, which is never released once the memory size has been read from its config space. Drop the reference before returning.
The Linux kernel CVE team has assigned CVE-2026-98516 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.16 with commit 2fa6d6cdaf283c05ae23842b2a04aeb223203c13 and fixed in 5.10.271 with commit add5e0a45e3971df9c65cc7b59c90559a25dc5a9 Issue introduced in 4.16 with commit 2fa6d6cdaf283c05ae23842b2a04aeb223203c13 and fixed in 5.15.222 with commit 2bda86f1fb2373a2ad8900341d5d6a6d68ce6ddb Issue introduced in 4.16 with commit 2fa6d6cdaf283c05ae23842b2a04aeb223203c13 and fixed in 6.1.189 with commit 9ffb43369ae51af5d5646b1ef680ab1af0fb4ad9 Issue introduced in 4.16 with commit 2fa6d6cdaf283c05ae23842b2a04aeb223203c13 and fixed in 6.6.158 with commit ac4f1d28498b9798fc20f91f23a4256032186370 Issue introduced in 4.16 with commit 2fa6d6cdaf283c05ae23842b2a04aeb223203c13 and fixed in 6.12.112 with commit 553c86816e99855d6784eebd2588d5d2198c280e Issue introduced in 4.16 with commit 2fa6d6cdaf283c05ae23842b2a04aeb223203c13 and fixed in 6.18.55 with commit 6d497216c10af3dc9747b399295f385fabbac9e5 Issue introduced in 4.16 with commit 2fa6d6cdaf283c05ae23842b2a04aeb223203c13 and fixed in 7.2.9 with commit 3e0861ebb9ecf0b726ea42123bd579362ec1f977 Issue introduced in 4.16 with commit 2fa6d6cdaf283c05ae23842b2a04aeb223203c13 and fixed in 7.3-rc5 with commit 67b4411538c8341692548429d43256f25be99f7a
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98516
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv1a.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/add5e0a45e3971df9c65cc7b59c90559a25dc5a9 https://git.kernel.org/stable/c/2bda86f1fb2373a2ad8900341d5d6a6d68ce6ddb https://git.kernel.org/stable/c/9ffb43369ae51af5d5646b1ef680ab1af0fb4ad9 https://git.kernel.org/stable/c/ac4f1d28498b9798fc20f91f23a4256032186370 https://git.kernel.org/stable/c/553c86816e99855d6784eebd2588d5d2198c280e https://git.kernel.org/stable/c/6d497216c10af3dc9747b399295f385fabbac9e5 https://git.kernel.org/stable/c/3e0861ebb9ecf0b726ea42123bd579362ec1f977 https://git.kernel.org/stable/c/67b4411538c8341692548429d43256f25be99f7a