CVE-2026-139628
JSON

Not scored

bpf: Adjust bpf_func to account for CFI offset in bpf_jit_free on riscv

Severity
Not scored
Exploit likelihood
0.17% (higher than 6% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom e63985ecd22681c7f5975f2e8637187a326b6791 before bc6c4dc3d16d64bd51fa9e8629e0db199bf857be, from e63985ecd22681c7f5975f2e8637187a326b6791 before 6d256cd19d8c9fe49ece8a398ff78e55719626ee, from e63985ecd22681c7f5975f2e8637187a326b6791 before b31fef1d42ddcce4670e172eb9a381fcddbd051c, from e63985ecd22681c7f5975f2e8637187a326b6791 before 93df8ae3267f19bf0c1135d26a0e21145dd0ea1c, 6.9
Not affected: before 6.9, from 6.12.119 up to 6.12.*, from 6.18.65 up to 6.18.*, from 7.3.6 up to 7.3.*, from 7.4-rc1 up to *
CVE List

References

Sources

SourceRecordLicence
CVE ListCVE-2026-139628 changed 2026-11-30CVE Terms of Use
NVDCVE-2026-139628 changed 2026-11-30Public domain