CVE-2026-139308
bpf: Fix stale offload->prog pointer after realloc
Check your servers for CVE-2026-139308
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139308 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix stale offload->prog pointer after realloc
bpf_prog_realloc() moves a program that the rewrites of the verifier make outgrow its pages. It updates aux->prog, but not the offload->prog of a device-bound program. When the device is unregistered, __bpf_offload_dev_netdev_unregister() hands the stale pointer to __bpf_prog_offload_destroy(), which faults on the freed program:
BUG: unable to handle page fault for address: ffffc90000071050 RIP: 0010:__bpf_prog_offload_destroy+0x3f/0x310
It takes the right to load a device-bound XDP program, CAP_BPF and CAP_NET_ADMIN or a BPF token, and a device that can be removed.
Commit a1aa9ef47c29 ("bpf: Fix stale offload->prog pointer after constant blinding") repaired the other place that replaces a program. Do the same here.
Nothing keeps the device while a program is loaded, so it can also be unregistered at that very moment. That frees the offload, and it may have read offload->prog already when the old copy of the program is freed. In both places update the pointer under bpf_devs_lock, before the old copy goes.
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.4% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from ab3f0063c48c26c927851b6767824e35a716d878, before 2190de7333369052fff76ccb686567ea648350b6 affected from ab3f0063c48c26c927851b6767824e35a716d878, before 4afa9934aa8da40d8b03d7f18ddbee7113bc8f9b affected from ab3f0063c48c26c927851b6767824e35a716d878, before 87c3268b4acac6942d1dbf600edbf6374be0c91b affected from ab3f0063c48c26c927851b6767824e35a716d878, before 80d3aaf751b9a2a1d204f3ee4e2ef3bb1207cbc9 affected from ab3f0063c48c26c927851b6767824e35a716d878, before 8e83d53596445fcf5b0385e5fbe8bcd971e06d06
Other versions: unaffected
|
| Linux |
affected 4.15 unaffected before 4.15 unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.119 up to and including 6.12.* unaffected from 6.18.65 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139308 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139308
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-139308
trivy image --scanners vuln IMAGE | grep CVE-2026-139308
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/2190de7333369052fff76ccb686567ea648350b6 git.kernel.org
- https://git.kernel.org/stable/c/4afa9934aa8da40d8b03d7f18ddbee7113bc8f9b git.kernel.org
- https://git.kernel.org/stable/c/87c3268b4acac6942d1dbf600edbf6374be0c91b git.kernel.org
- https://git.kernel.org/stable/c/80d3aaf751b9a2a1d204f3ee4e2ef3bb1207cbc9 git.kernel.org
- https://git.kernel.org/stable/c/8e83d53596445fcf5b0385e5fbe8bcd971e06d06 git.kernel.org
Source: the record CVE-2026-139308 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse