drm/amdgpu: Limit BO list entry count to prevent resource exhaustion
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.6.140, Kernel 6.18.20, Kernel 6.19.10 and 10 more.
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: Limit BO list entry count to prevent resource exhaustion Userspace can pass an arbitrary number of BO list entries via the bo_number field. Although the previous multiplication overflow check prevents out-of-bounds allocation, a large number of entries could still cause excessive memory allocation (up to potentially gigabytes) and unnecessarily long list processing times. Introduce a hard limit of 128k entries per BO list, which is more than sufficient for any realistic use case (e.g., a single list containing all buffers in a large scene). This prevents memory exhaustion attacks and ensures predictable performance. Return -EINVAL if the requested entry count exceeds the limit (cherry picked from commit 688b87d39e0aa8135105b40dc167d74b5ada5332)
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=4.2 <6.6.140, >=6.13 <6.18.20, >=6.19 <6.19.10, >=6.7 <6.12.86, =7.0, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <6270b1a5dab94665d7adce3dc78bc9066ed28bdd, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <7ee125eeda83374f3db67dbccece8fb3a5a3259e, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <c833d6c7199c5b5fca9ec95593acd539ec9c171c, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <e620378aab78d415bd8a15a2f91c145906520288, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <f462624a6e4b5f1ec2664c2c53e408b2f4fb53e9, =4.2, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <02bbf9804ff94cf16d4fa8c1a4c5d8d389d2a177, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <2723e6851309531ce61aed74e93a0cd268cc862a, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <5ce4a38e6c2488949e373d5066303f9c128db614 | 6.6.140, 6.18.20, 6.19.10, 6.12.86, 6270b1a5dab94665d7adce3dc78bc9066ed28bdd, 7ee125eeda83374f3db67dbccece8fb3a5a3259e, c833d6c7199c5b5fca9ec95593acd539ec9c171c, e620378aab78d415bd8a15a2f91c145906520288, f462624a6e4b5f1ec2664c2c53e408b2f4fb53e9, 02bbf9804ff94cf16d4fa8c1a4c5d8d389d2a177, 2723e6851309531ce61aed74e93a0cd268cc862a, 5ce4a38e6c2488949e373d5066303f9c128db614 |
| linux-kernel: Kernel | >=4.2.0 <6.1.175, >=6.13.0 <6.18.20, >=6.19.0 <6.19.10, >=6.2.0 <6.6.140, >=6.7.0 <6.12.86 | 6.1.175, 6.18.20, 6.19.10, 6.6.140, 6.12.86 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket