bpf: Reject writes through untrusted BTF pointers
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 19d5566b84ca1af0256d0d0003e1a081580c3ba3, Kernel 56f92fecd80419567288b7972caa90107033836e, Kernel 644cf4e77c2770d4246f6d12f99bc80d253b0ec6 and 2 more.
In the Linux kernel, the following vulnerability has been resolved: bpf: Reject writes through untrusted BTF pointers check_ptr_to_btf_access() lets program-type btf_struct_access callbacks validate writes before the default BTF access path rejects non-read accesses. That bypasses the read-only policy for untrusted BTF pointers created by helpers such as bpf_rdonly_cast(). Reject non-read accesses through PTR_UNTRUSTED BTF pointers at the common entry point, before the callback branch to handle all cases.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.2, >=282de143ead96a5d53331e946f31c977b4610a74 <19d5566b84ca1af0256d0d0003e1a081580c3ba3, >=282de143ead96a5d53331e946f31c977b4610a74 <56f92fecd80419567288b7972caa90107033836e, >=282de143ead96a5d53331e946f31c977b4610a74 <644cf4e77c2770d4246f6d12f99bc80d253b0ec6, >=282de143ead96a5d53331e946f31c977b4610a74 <ac65c710cc643cbc52b899627577357867249530, >=282de143ead96a5d53331e946f31c977b4610a74 <c4dc883447ae38c4e22a29cc016046fa65d88994 | 19d5566b84ca1af0256d0d0003e1a081580c3ba3, 56f92fecd80419567288b7972caa90107033836e, 644cf4e77c2770d4246f6d12f99bc80d253b0ec6, ac65c710cc643cbc52b899627577357867249530, c4dc883447ae38c4e22a29cc016046fa65d88994 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket