Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected a1606a9596e54da90ad6209071b357a4c1b0fa82 before 3429275684f4bad42876955301f3c5c814aae909; affected a1606a9596e54da90ad6209071b357a4c1b0fa82 before 573a1104bd36e49c067a9dc62e7c476d5ee7e92a; affected a1606a9596e54da90ad6209071b357a4c1b0fa82 before 45a45184b9c0b0b26ead06e370cda2073616a7cc; affected a1606a9596e54da90ad6209071b357a4c1b0fa82 before fa297e919d1680c38ab268ff952b1698dac987f6; affected a1606a9596e54da90ad6209071b357a4c1b0fa82 before d749a9a0ee4014681487e7ae549901aa8c176637; affected a1606a9596e54da90ad6209071b357a4c1b0fa82 before 332884f5eb79dd60a7162b079d09d39208567a31; affected a1606a9596e54da90ad6209071b357a4c1b0fa82 before e441d5c23ec644c8d27593db3b8928e8933512a9; affected a1606a9596e54da90ad6209071b357a4c1b0fa82 before 2fc87d37be1b730a149b035f9375fdb8cc5333a5 |
| Linux / Linux | affected 2.6.34; unaffected 0 before 2.6.34; unaffected 5.10.259 through 5.10.*; unaffected 5.15.209 through 5.15.*; unaffected 6.1.175 through 6.1.*; unaffected 6.6.140 through 6.6.*; unaffected 6.12.86 through 6.12.*; unaffected 6.18.27 through 6.18.*; unaffected 7.0.4 through 7.0.*; unaffected 7.1 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/3429275684f4bad42876955301f3c5c814aae909
- https://git.kernel.org/stable/c/573a1104bd36e49c067a9dc62e7c476d5ee7e92a
- https://git.kernel.org/stable/c/45a45184b9c0b0b26ead06e370cda2073616a7cc
- 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