drm/i915/gem: Prevent overstepping exec array boundary
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ebe162db655881a38de43301151ff7ac940602b5, Kernel 152fb5083b9333a1cb8629572f9e0f276a404ba6, Kernel 24c04e80c35ff36947366f6deafddb522eea080c and 12 more.
In the Linux kernel, the following vulnerability has been resolved: drm/i915/gem: Prevent overstepping exec array boundary It is possible for eb_relocate_parse_slow() to call kvfree() on entries outside the original exec array during following scenario inside eb_relocate_parse_slow(): 1) eb_copy_relocations() allocates as many as eb->buffer_count copies for exec entries; 2) eb_parse() appends up to two VMAs, right after incrementing eb->buffer_count; 3) cleanup under "out" label uses this incremented buffer_count to release relocation pointers from exec array via kvfree(), not from VMA array. To amend this problem, ensure that relocation cleanup uses the original exec object count, excluding the VMAs appended by the command parser. (cherry picked from commit 2a0158925fb943c7ba8f3216e2734952128defc9)
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=8e4ba491b0ba6fef69270d3c4e48fc517096ef41 <ebe162db655881a38de43301151ff7ac940602b5, >=8e4ba491b0ba6fef69270d3c4e48fc517096ef41 <152fb5083b9333a1cb8629572f9e0f276a404ba6, >=8e4ba491b0ba6fef69270d3c4e48fc517096ef41 <24c04e80c35ff36947366f6deafddb522eea080c, >=8e4ba491b0ba6fef69270d3c4e48fc517096ef41 <72d5cbb10d4916a3f8ef9da516c5c0634aca8439, >=8e4ba491b0ba6fef69270d3c4e48fc517096ef41 <7bed07cb4daa610cd6d92d9e72a575275a99ed54, >=8e4ba491b0ba6fef69270d3c4e48fc517096ef41 <859e52356f913806e5c1ee5d2022b7aeda0a784a, >=8e4ba491b0ba6fef69270d3c4e48fc517096ef41 <b1c357131fc467c579f65e9a9d1fdc1a6273ae1d, >=8e4ba491b0ba6fef69270d3c4e48fc517096ef41 <cf42a445bd5036c30d57ae65b041b8b17dfef7b0, =5.10 | ebe162db655881a38de43301151ff7ac940602b5, 152fb5083b9333a1cb8629572f9e0f276a404ba6, 24c04e80c35ff36947366f6deafddb522eea080c, 72d5cbb10d4916a3f8ef9da516c5c0634aca8439, 7bed07cb4daa610cd6d92d9e72a575275a99ed54, 859e52356f913806e5c1ee5d2022b7aeda0a784a, b1c357131fc467c579f65e9a9d1fdc1a6273ae1d, cf42a445bd5036c30d57ae65b041b8b17dfef7b0 |
| linux-kernel: Kernel | >=5.11.0 <5.15.224, >=5.16.0 <6.1.191, >=6.13.0 <6.18.57, >=6.19.0 <7.2.11, >=6.2.0 <6.6.160, >=6.7.0 <6.12.113, >=5.10.0 <5.10.273 | 5.15.224, 6.1.191, 6.18.57, 7.2.11, 6.6.160, 6.12.113, 5.10.273 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket