bpf: Clear buf on error in __bpf_get_task_stack
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.12, Kernel 4acc761b4e3feca1eb648d21fc4d665b23c5372d, Kernel 5c4c57a277a87ed235183d03b671d346f5101f62 and 10 more.
In the Linux kernel, the following vulnerability has been resolved: bpf: Clear buf on error in __bpf_get_task_stack Both bpf_get_task_stack and bpf_get_task_stack_sleepable helpers that use __bpf_get_task_stack have buf defined as ARG_PTR_TO_UNINIT_MEM argument and we should initialize the buf on every return path. Adding missing buf memset for __bpf_get_task_stack fail paths. This provides deterministic buffer contents, which is useful when the buffer is used directly as a map key.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.11.14 <5.12, >=06ab134ce8ecfa5a69e850f88f81c8a4c3fa91df <4acc761b4e3feca1eb648d21fc4d665b23c5372d, >=06ab134ce8ecfa5a69e850f88f81c8a4c3fa91df <5c4c57a277a87ed235183d03b671d346f5101f62, >=06ab134ce8ecfa5a69e850f88f81c8a4c3fa91df <6f5a7bcc049709af12e403111d5e73e80910dafc, >=06ab134ce8ecfa5a69e850f88f81c8a4c3fa91df <f523359c4789bb0396d2d642464a6e2fd4f2299d, >=06ab134ce8ecfa5a69e850f88f81c8a4c3fa91df <f5d242825ca417bb6afe35fde6e8880f97ca43fb, >=5.10.30 <5.11, >=5.10.96 <5.11, =5.12, =9c020a533eaae1c2d41a7e3835c4c818a9b4b656, =d921baabd96445ef9c9c9410ca06164359c8a1a5, =ff6bdc205fd0a83bd365405d4e31fb5905826996, >=06ab134ce8ecfa5a69e850f88f81c8a4c3fa91df <1f0f61573ba4cb899105b5cef65be3ca02205f93 | 5.12, 4acc761b4e3feca1eb648d21fc4d665b23c5372d, 5c4c57a277a87ed235183d03b671d346f5101f62, 6f5a7bcc049709af12e403111d5e73e80910dafc, f523359c4789bb0396d2d642464a6e2fd4f2299d, f5d242825ca417bb6afe35fde6e8880f97ca43fb, 5.11, 1f0f61573ba4cb899105b5cef65be3ca02205f93 |
| linux-kernel: Kernel | >=5.11.14 <5.12, >=5.12.0 <6.1.191, >=6.13.0 <6.18.57, >=6.19.0 <7.2.6, >=6.2.0 <6.6.160, >=6.7.0 <6.12.114, >=5.10.96 <5.11 | 5.12, 6.1.191, 6.18.57, 7.2.6, 6.6.160, 6.12.114, 5.11 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket