Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 282de143ead96a5d53331e946f31c977b4610a74 before 56f92fecd80419567288b7972caa90107033836e; affected 282de143ead96a5d53331e946f31c977b4610a74 before c4dc883447ae38c4e22a29cc016046fa65d88994; affected 282de143ead96a5d53331e946f31c977b4610a74 before 644cf4e77c2770d4246f6d12f99bc80d253b0ec6; affected 282de143ead96a5d53331e946f31c977b4610a74 before 19d5566b84ca1af0256d0d0003e1a081580c3ba3; affected 282de143ead96a5d53331e946f31c977b4610a74 before ac65c710cc643cbc52b899627577357867249530 |
| Linux / Linux | affected 6.2; unaffected 0 before 6.2; unaffected 6.6.160 through 6.6.*; unaffected 6.12.114 through 6.12.*; unaffected 6.18.57 through 6.18.*; unaffected 7.2.6 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
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