CVE-2026-46006: drm/nouveau: fix u32 overflow in pushbuf reloc bounds check
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/nouveau: fix u32 overflow in pushbuf reloc bounds check
nouveau_gem_pushbuf_reloc_apply() validates each relocation with
if (r->reloc_bo_offset + 4 > nvbo->bo.base.size)
but reloc_bo_offset is __u32 (uapi/drm/nouveau_drm.h) and the integer literal 4 promotes to unsigned int, so the addition is performed in 32 bits and wraps before the comparison against the size_t bo size.
Cast to u64 so the addition happens in 64-bit arithmetic.
[ Add Fixes: tag. - Danilo ]
The Linux kernel CVE team has assigned CVE-2026-46006 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.34 with commit a1606a9596e54da90ad6209071b357a4c1b0fa82 and fixed in 6.6.140 with commit fa297e919d1680c38ab268ff952b1698dac987f6 Issue introduced in 2.6.34 with commit a1606a9596e54da90ad6209071b357a4c1b0fa82 and fixed in 6.12.86 with commit d749a9a0ee4014681487e7ae549901aa8c176637 Issue introduced in 2.6.34 with commit a1606a9596e54da90ad6209071b357a4c1b0fa82 and fixed in 6.18.27 with commit 332884f5eb79dd60a7162b079d09d39208567a31 Issue introduced in 2.6.34 with commit a1606a9596e54da90ad6209071b357a4c1b0fa82 and fixed in 7.0.4 with commit e441d5c23ec644c8d27593db3b8928e8933512a9 Issue introduced in 2.6.34 with commit a1606a9596e54da90ad6209071b357a4c1b0fa82 and fixed in 7.1-rc1 with commit 2fc87d37be1b730a149b035f9375fdb8cc5333a5
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-46006
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/nouveau_gem.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/fa297e919d1680c38ab268ff952b1698dac987f6 https://git.kernel.org/stable/c/d749a9a0ee4014681487e7ae549901aa8c176637 https://git.kernel.org/stable/c/332884f5eb79dd60a7162b079d09d39208567a31 https://git.kernel.org/stable/c/e441d5c23ec644c8d27593db3b8928e8933512a9 https://git.kernel.org/stable/c/2fc87d37be1b730a149b035f9375fdb8cc5333a5