CVE-2026-139628
publishedbpf: Adjust bpf_func to account for CFI offset in bpf_jit_free on riscv
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxe63985ecd22681c7f5975f2e8637187a326b6791 to < bc6c4dc3d16d64bd51fa9e8629e0db199bf857be · e63985ecd22681c7f5975f2e8637187a326b6791 to < 6d256cd19d8c9fe49ece8a398ff78e55719626ee · e63985ecd22681c7f5975f2e8637187a326b6791 to < b31fef1d42ddcce4670e172eb9a381fcddbd051c · e63985ecd22681c7f5975f2e8637187a326b6791 to < 93df8ae3267f19bf0c1135d26a0e21145dd0ea1c · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.9 (affected) · 0 to < 6.9 (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 |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Adjust bpf_func to account for CFI offset in bpf_jit_free on riscv When CFI is enabled, the actual BPF program entry point is shifted forward by a CFI preamble. During bpf_jit_free(), this shifted pointer causes the wrong ro_header to be fetched, leading to a potential invalid memory free. Fix this by subtracting cfi_get_offset() from prog->bpf_func to correctly restore the original JITed allocation address before freeing.
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 | e63985ecd22681c7f5975f2e8637187a326b6791 to < bc6c4dc3d16d64bd51fa9e8629e0db199bf857be (affected · git)e63985ecd22681c7f5975f2e8637187a326b6791 to < 6d256cd19d8c9fe49ece8a398ff78e55719626ee (affected · git)e63985ecd22681c7f5975f2e8637187a326b6791 to < b31fef1d42ddcce4670e172eb9a381fcddbd051c (affected · git)e63985ecd22681c7f5975f2e8637187a326b6791 to < 93df8ae3267f19bf0c1135d26a0e21145dd0ea1c (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.9 (affected)0 to < 6.9 (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
4Provider assertions
1Linux · cna
bpf: Adjust bpf_func to account for CFI offset in bpf_jit_free on riscv
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 74e66353de74d0aa21aa494070aae28949f29a95c6123bf4d7b42578b1457f36
- Ingested
- 30 Nov 2026, 13:43:49 UTC
- Source record
- Official CVE record