Description
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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
282de143ead96a5d53331e946f31c977b4610a74 to < 56f92fecd80419567288b7972caa90107033836eaffected282de143ead96a5d53331e946f31c977b4610a74 to < c4dc883447ae38c4e22a29cc016046fa65d88994affected282de143ead96a5d53331e946f31c977b4610a74 to < 644cf4e77c2770d4246f6d12f99bc80d253b0ec6affected282de143ead96a5d53331e946f31c977b4610a74 to < 19d5566b84ca1af0256d0d0003e1a081580c3ba3affected282de143ead96a5d53331e946f31c977b4610a74 to < ac65c710cc643cbc52b899627577357867249530affected
Linux Linux
Default version status: affected
6.2affected0 to < 6.2unaffected6.6.160 to ≤ 6.6.*unaffected6.12.114 to ≤ 6.12.*unaffected6.18.57 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/56f92fecd80419567288b7972caa90107033836e ↗
- https://git.kernel.org/stable/c/c4dc883447ae38c4e22a29cc016046fa65d88994 ↗
- https://git.kernel.org/stable/c/644cf4e77c2770d4246f6d12f99bc80d253b0ec6 ↗
- https://git.kernel.org/stable/c/19d5566b84ca1af0256d0d0003e1a081580c3ba3 ↗
- https://git.kernel.org/stable/c/ac65c710cc643cbc52b899627577357867249530 ↗