CVE-2026-139661
publishedbpf, lsm: Reject writes into the BPF LSM program context
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxfc611f47f2188ade2b48ff6902d5cce8baac0c58 to < 6b810a303806b3a48c0d8cec99468956d15b8069 · fc611f47f2188ade2b48ff6902d5cce8baac0c58 to < 23fd50ed3ae8ff501e90db8b253ee05992a0b563 · fc611f47f2188ade2b48ff6902d5cce8baac0c58 to < ad74f678b76e9460193afc1683ba50ae5d2f6400 · fc611f47f2188ade2b48ff6902d5cce8baac0c58 to < d37ac6eda751255a96a46737abbb526ada2a1017 · fc611f47f2188ade2b48ff6902d5cce8baac0c58 to < ab9f32e30ac4087a72070d8cc33809c02797e8ef · fc611f47f2188ade2b48ff6902d5cce8baac0c58 to < 63fa671681dc8f10d1f21032bc6da1c3398c782b · fc611f47f2188ade2b48ff6902d5cce8baac0c58 to < c42da1d3ba9d5067cf3f0676b98bcb3f5f9e3ce1 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.7 (affected) · 0 to < 5.7 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | fc611f47f2188ade2b48ff6902d5cce8baac0c58 to < 6b810a303806b3a48c0d8cec99468956d15b8069 (affected · git)fc611f47f2188ade2b48ff6902d5cce8baac0c58 to < 23fd50ed3ae8ff501e90db8b253ee05992a0b563 (affected · git)fc611f47f2188ade2b48ff6902d5cce8baac0c58 to < ad74f678b76e9460193afc1683ba50ae5d2f6400 (affected · git)fc611f47f2188ade2b48ff6902d5cce8baac0c58 to < d37ac6eda751255a96a46737abbb526ada2a1017 (affected · git)fc611f47f2188ade2b48ff6902d5cce8baac0c58 to < ab9f32e30ac4087a72070d8cc33809c02797e8ef (affected · git)fc611f47f2188ade2b48ff6902d5cce8baac0c58 to < 63fa671681dc8f10d1f21032bc6da1c3398c782b (affected · git)fc611f47f2188ade2b48ff6902d5cce8baac0c58 to < c42da1d3ba9d5067cf3f0676b98bcb3f5f9e3ce1 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.7 (affected)0 to < 5.7 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
7- https://git.kernel.org/stable/c/23fd50ed3ae8ff501e90db8b253ee05992a0b563
- https://git.kernel.org/stable/c/63fa671681dc8f10d1f21032bc6da1c3398c782b
- https://git.kernel.org/stable/c/6b810a303806b3a48c0d8cec99468956d15b8069
- https://git.kernel.org/stable/c/ab9f32e30ac4087a72070d8cc33809c02797e8ef
- https://git.kernel.org/stable/c/ad74f678b76e9460193afc1683ba50ae5d2f6400
- https://git.kernel.org/stable/c/c42da1d3ba9d5067cf3f0676b98bcb3f5f9e3ce1
- https://git.kernel.org/stable/c/d37ac6eda751255a96a46737abbb526ada2a1017
Provider assertions
1Linux · cna
bpf, lsm: Reject writes into the BPF LSM program context
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5fe79c7eb04f6ad47296b4380897415a8862c71df2c8d861868d54013514adf2
- Ingested
- 30 Nov 2026, 13:43:49 UTC
- Source record
- Official CVE record