bpf: Reject writes through untrusted BTF pointers
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.160, 6.12.114, 6.18.57, 7.2.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 282de143ead96a5d53331e946f31c977b4610a74 · fixed in 56f92fecd80419567288b7972caa90107033836e; From 282de143ead96a5d53331e946f31c977b4610a74 · fixed in c4dc883447ae38c4e22a29cc016046fa65d88994; From 282de143ead96a5d53331e946f31c977b4610a74 · fixed in 644cf4e77c2770d4246f6d12f99bc80d253b0ec6; From 282de143ead96a5d53331e946f31c977b4610a74 · fixed in 19d5566b84ca1af0256d0d0003e1a081580c3ba3; From 282de143ead96a5d53331e946f31c977b4610a74 · fixed in ac65c710cc643cbc52b899627577357867249530
- Linux Linux
6.2
- KernelLinux
From 6.2.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.114; From 6.13.0 · fixed in 6.18.57; From 6.19.0 · fixed in 7.2.6