Linux
drm/nouveau: fix u32 overflow in pushbuf reloc bounds check
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 ]
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= a1606a9596e54da90ad6209071b357a4c1b0fa82, < 3429275684f4bad42876955301f3c5c814aae909
- >= a1606a9596e54da90ad6209071b357a4c1b0fa82, < 573a1104bd36e49c067a9dc62e7c476d5ee7e92a
- >= a1606a9596e54da90ad6209071b357a4c1b0fa82, < 45a45184b9c0b0b26ead06e370cda2073616a7cc
- >= a1606a9596e54da90ad6209071b357a4c1b0fa82, < fa297e919d1680c38ab268ff952b1698dac987f6
- >= a1606a9596e54da90ad6209071b357a4c1b0fa82, < d749a9a0ee4014681487e7ae549901aa8c176637
- >= a1606a9596e54da90ad6209071b357a4c1b0fa82, < 332884f5eb79dd60a7162b079d09d39208567a31
- >= a1606a9596e54da90ad6209071b357a4c1b0fa82, < e441d5c23ec644c8d27593db3b8928e8933512a9
- >= a1606a9596e54da90ad6209071b357a4c1b0fa82, < 2fc87d37be1b730a149b035f9375fdb8cc5333a5
Fixed in 3429275684f4bad42876955301f3c5c814aae909, 573a1104bd36e49c067a9dc62e7c476d5ee7e92a, 45a45184b9c0b0b26ead06e370cda2073616a7cc, fa297e919d1680c38ab268ff952b1698dac987f6, d749a9a0ee4014681487e7ae549901aa8c176637, 332884f5eb79dd60a7162b079d09d39208567a31, e441d5c23ec644c8d27593db3b8928e8933512a9, 2fc87d37be1b730a149b035f9375fdb8cc5333a5
- 2.6.34
Fixed in 0, 5.10.259, 5.15.209, 6.1.175, 6.6.140, 6.12.86, 6.18.27, 7.0.4, 7.1
Mitigation
Upgrade Linux to 3429275684f4bad42876955301f3c5c814aae909 or 573a1104bd36e49c067a9dc62e7c476d5ee7e92a or 45a45184b9c0b0b26ead06e370cda2073616a7cc or fa297e919d1680c38ab268ff952b1698dac987f6 or d749a9a0ee4014681487e7ae549901aa8c176637 or 332884f5eb79dd60a7162b079d09d39208567a31 or e441d5c23ec644c8d27593db3b8928e8933512a9 or 2fc87d37be1b730a149b035f9375fdb8cc5333a5 or later.
Upgrade Linux to 0 or 5.10.259 or 5.15.209 or 6.1.175 or 6.6.140 or 6.12.86 or 6.18.27 or 7.0.4 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.