Linux
bpf: Reject writes through untrusted BTF pointers
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 282de143ead96a5d53331e946f31c977b4610a74, < 56f92fecd80419567288b7972caa90107033836e
- >= 282de143ead96a5d53331e946f31c977b4610a74, < c4dc883447ae38c4e22a29cc016046fa65d88994
- >= 282de143ead96a5d53331e946f31c977b4610a74, < 644cf4e77c2770d4246f6d12f99bc80d253b0ec6
- >= 282de143ead96a5d53331e946f31c977b4610a74, < 19d5566b84ca1af0256d0d0003e1a081580c3ba3
- >= 282de143ead96a5d53331e946f31c977b4610a74, < ac65c710cc643cbc52b899627577357867249530
Fixed in 56f92fecd80419567288b7972caa90107033836e, c4dc883447ae38c4e22a29cc016046fa65d88994, 644cf4e77c2770d4246f6d12f99bc80d253b0ec6, 19d5566b84ca1af0256d0d0003e1a081580c3ba3, ac65c710cc643cbc52b899627577357867249530
- 6.2
Fixed in 0, 6.6.160, 6.12.114, 6.18.57, 7.2.6, 7.3
Mitigation
Upgrade Linux to 56f92fecd80419567288b7972caa90107033836e or c4dc883447ae38c4e22a29cc016046fa65d88994 or 644cf4e77c2770d4246f6d12f99bc80d253b0ec6 or 19d5566b84ca1af0256d0d0003e1a081580c3ba3 or ac65c710cc643cbc52b899627577357867249530 or later.
Upgrade Linux to 0 or 6.6.160 or 6.12.114 or 6.18.57 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.