CVE-2026-139628

Source
https://cve.org/CVERecord?id=CVE-2026-139628
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139628.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139628
Downstream
Published
2026-11-30T13:36:30Z
Modified
2026-11-30T15:02:29Z
Summary
bpf: Adjust bpf_func to account for CFI offset in bpf_jit_free on riscv
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139628.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e63985ecd22681c7f5975f2e8637187a326b6791
Fixed
bc6c4dc3d16d64bd51fa9e8629e0db199bf857be
Fixed
6d256cd19d8c9fe49ece8a398ff78e55719626ee
Fixed
b31fef1d42ddcce4670e172eb9a381fcddbd051c
Fixed
93df8ae3267f19bf0c1135d26a0e21145dd0ea1c

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139628.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.9.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139628.json"