CVE-2026-93144: bpf: Reject writes through untrusted BTF pointers
From: Greg Kroah-Hartman <[email protected]>
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.
The Linux kernel CVE team has assigned CVE-2026-93144 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.2 with commit 282de143ead96a5d53331e946f31c977b4610a74 and fixed in 7.2.6 with commit 19d5566b84ca1af0256d0d0003e1a081580c3ba3 Issue introduced in 6.2 with commit 282de143ead96a5d53331e946f31c977b4610a74 and fixed in 7.3-rc1 with commit ac65c710cc643cbc52b899627577357867249530
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-93144
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
kernel/bpf/verifier.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/19d5566b84ca1af0256d0d0003e1a081580c3ba3 https://git.kernel.org/stable/c/ac65c710cc643cbc52b899627577357867249530