CVE-2026-139628

critical

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.

References

https://git.kernel.org/stable/c/bc6c4dc3d16d64bd51fa9e8629e0db199bf857be

https://git.kernel.org/stable/c/b31fef1d42ddcce4670e172eb9a381fcddbd051c

https://git.kernel.org/stable/c/93df8ae3267f19bf0c1135d26a0e21145dd0ea1c

https://git.kernel.org/stable/c/6d256cd19d8c9fe49ece8a398ff78e55719626ee

https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-139334

Details

Source: Mitre, NVD

Published: 2026-11-30

Updated: 2026-11-30

Risk Information

CVSS v2

Base Score: 7.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Severity: High

CVSS v3

Base Score: 9.8

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Severity: Critical