# CVE-2026-139661

- Bağlantı: https://www.allsafe.com.tr/cve-2026-139661/
- Yayımlanma: 2026-11-30T17:19:50+03:00
- Yazar: Postmaster

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.

Bu kayıt NIST NVD kaynağından aktarılmıştır. Etkilenen sürümler, güncel değerlendirme
ve üretici referansları için kaynak kaydı inceleyin.

Kaynak: [NIST NVD — özgün kaydı inceleyin ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-139661)
