Skip to content
FlawDB
Sign in

CVE-2026-139628

UNSCORED

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

AI summary AI generated

An attacker could trigger an invalid memory free in the Linux kernel's BPF JIT on RISC-V when CFI is enabled, because bpf_jit_free fetches the wrong header pointer.

Mitigation

  • Upgrade Linux to 93df8ae3267f19bf0c1135d26a0e21145dd0ea1c or later.

Who should check

  • Anyone running Linux >= e63985ecd22681c7f5975f2e8637187a326b6791, < bc6c4dc3d16d64bd51fa9e8629e0db199bf857be; >= e63985ecd22681c7f5975f2e8637187a326b6791, < 6d256cd19d8c9fe49ece8a398ff78e55719626ee; >= e63985ecd22681c7f5975f2e8637187a326b6791, < b31fef1d42ddcce4670e172eb9a381fcddbd051c; >= e63985ecd22681c7f5975f2e8637187a326b6791, < 93df8ae3267f19bf0c1135d26a0e21145dd0ea1c
  • Anyone running Linux 6.9

Vulnerability facts

Affected
Linux >= e63985ecd22681c7f5975f2e8637187a326b6791, < bc6c4dc3d16d64bd51fa9e8629e0db199bf857be; >= e63985ecd22681c7f5975f2e8637187a326b6791, < 6d256cd19d8c9fe49ece8a398ff78e55719626ee; >= e63985ecd22681c7f5975f2e8637187a326b6791, < b31fef1d42ddcce4670e172eb9a381fcddbd051c; >= e63985ecd22681c7f5975f2e8637187a326b6791, < 93df8ae3267f19bf0c1135d26a0e21145dd0ea1c; Linux 6.9
Fixed in
Linux 6d256cd19d8c9fe49ece8a398ff78e55719626ee, Linux 93df8ae3267f19bf0c1135d26a0e21145dd0ea1c
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
Published
Modified

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 and fixed versions

Package / productAffectedFixedSource
Linux>= e63985ecd22681c7f5975f2e8637187a326b6791, < bc6c4dc3d16d64bd51fa9e8629e0db199bf857be; >= e63985ecd22681c7f5975f2e8637187a326b6791, < 6d256cd19d8c9fe49ece8a398ff78e55719626ee; >= e63985ecd22681c7f5975f2e8637187a326b6791, < b31fef1d42ddcce4670e172eb9a381fcddbd051c; >= e63985ecd22681c7f5975f2e8637187a326b6791, < 93df8ae3267f19bf0c1135d26a0e21145dd0ea1c—cvelist
Linux6.9—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-139628. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139628.md
Affected: Linux >= e63985ecd22681c7f5975f2e8637187a326b6791, < bc6c4dc3d16d64bd51fa9e8629e0db199bf857be; >= e63985ecd22681c7f5975f2e8637187a326b6791, < 6d256cd19d8c9fe49ece8a398ff78e55719626ee; >= e63985ecd22681c7f5975f2e8637187a326b6791, < b31fef1d42ddcce4670e172eb9a381fcddbd051c; >= e63985ecd22681c7f5975f2…
Fixed in: Linux 6d256cd19d8c9fe49ece8a398ff78e55719626ee, Linux 93df8ae3267f19bf0c1135d26a0e21145dd0ea1c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

Technologies

References

FAQ

Is CVE-2026-139628 being exploited?

There is no confirmed exploitation: CVE-2026-139628 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

How serious is CVE-2026-139628?

It has no CVSS score yet. Unknown.

Which versions are affected by CVE-2026-139628?

Linux >= e63985ecd22681c7f5975f2e8637187a326b6791, < bc6c4dc3d16d64bd51fa9e8629e0db199bf857be; >= e63985ecd22681c7f5975f2e8637187a326b6791, < 6d256cd19d8c9fe49ece8a398ff78e55719626ee; >= e63985ecd22681c7f5975f2e8637187a326b6791, < b31fef1d42ddcce4670e172eb9a381fcddbd051c; >= e63985ecd22681c7f5975f2e8637187a326b6791, < 93df8ae3267f19bf0c1135d26a0e21145dd0ea1c; Linux 6.9.

Is there a fix for CVE-2026-139628?

Yes. Fixed in Linux 6d256cd19d8c9fe49ece8a398ff78e55719626ee, Linux 93df8ae3267f19bf0c1135d26a0e21145dd0ea1c. Upgrade Linux to 93df8ae3267f19bf0c1135d26a0e21145dd0ea1c or later.

How do I check if I'm affected by CVE-2026-139628?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
MEDIUM 6.5CVE-2026-140063

Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker

Linux kernel+1
MEDIUM 5.1CVE-2026-140038

Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber

Linux kernel+1
HIGH 7.3CVE-2026-139801

KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM

Linux kernel
UNSCOREDCVE-2026-139800

9p/xen: drain response work after unbinding IRQ

Linux kernel
HIGH 7.0CVE-2026-139799

mm/shmem: hold off eviction in shmem_writeout()

Linux kernel
Sponsors