1. Archivio CVE
  2. 2026
  3. CVE-2026-139661

CVE-2026-139661

– Gravità non disponibile CVSS n/d

Descrizione

In the Linux kernel, the following vulnerability has been resolved: bpf, lsm: Reject writes into the BPF LSM program context The verifier types a load from a tracing-style context by its offset alone: btf_ctx_access() looks the offset up in the attach hook's prototype, and check_mem_access() stamps the resulting type onto the destination register. Nothing tracks what the slot actually holds. That is sound only as long as the context is read-only, and for BPF LSM it is not. lsm_verifier_ops wires ->is_valid_access() straight to btf_ctx_access(), which never looks at enum bpf_access_type, so a store into the context passes verification. Every other user of the helper either goes through bpf_tracing_btf_ctx_access() or open-codes the same type != BPF_READ test first; BPF LSM is the only one that does neither. A program can therefore store a scalar of its choosing into a context slot, read the slot back, and get a register the verifier believes is a trusted pointer of the hook's argument type. Handing that to a kfunc or helper which dereferences a trusted argument turns it into an arbitrary kernel access. Route BPF LSM through bpf_tracing_btf_ctx_access() like everyone else.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
linux linux kernel >= 5.7 < 5.15.226 –
linux linux kernel >= 5.7 < 6.1.193 –
linux linux kernel >= 5.7 < 6.6.163 –
linux linux kernel >= 5.7 < 6.12.119 –
linux linux kernel >= 5.7 < 6.18.65 –
linux linux kernel >= 5.7 < 7.3.6 –
linux linux kernel >= 5.7 < 7.4-rc1 –
Tutte le 24.148 vulnerabilità di Linux Kernel