CVE-2026-139309

bpf: Bound the nesting that the BTF show code follows

No CVSS score yet EPSS 0.21%

Published 30 Nov 2026 Updated 30 Nov 2026 CNA: Linux

Check your servers for CVE-2026-139309

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-139309 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.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Bound the nesting that the BTF show code follows

btf_struct_show() and btf_array_show() recurse for every nested struct and array. MAX_RESOLVE_DEPTH bounds one resolve walk when BTF is loaded, not the nesting: a member whose type is resolved already is not walked again, so BTF that defines its types from the inside out can nest them as deep as it has types.

Whoever may load BTF, with CAP_BPF or a BPF token, can give such a type to the value of a map. Reading the file of that map in bpffs then overruns the kernel stack: with a few hundred levels the stack guard page is hit and the kernel panics.

Stop at 32 levels. That is MAX_RESOLVE_DEPTH, and __btf_show_indent() has as many columns. Nothing is shown for a member that lies deeper, and the status becomes -E2BIG, which bpf_snprintf_btf() and bpf_seq_printf_btf() return. The types of an x86_64 defconfig kernel nest 14 deep.

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.0% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from b00b8daec828dd59af7d1f7a42acd6e5867f80c6, before 3a59b5615c75bd737e1e5c93653c18522e773bfd
affected from b00b8daec828dd59af7d1f7a42acd6e5867f80c6, before be380aa90cabe89a93f8308017d8d9329e7bee74
affected from b00b8daec828dd59af7d1f7a42acd6e5867f80c6, before 223bd268d8a86711dd98610899486eb6e0889c67
affected from b00b8daec828dd59af7d1f7a42acd6e5867f80c6, before 4b6487fc895e70889f58db1291618e7cd390458b
affected from b00b8daec828dd59af7d1f7a42acd6e5867f80c6, before 1e1df9e7ae908e576cd32227b554fbfedfb51653
affected from b00b8daec828dd59af7d1f7a42acd6e5867f80c6, before 696b05fe5397637dee8c69deec988030b59e688d
affected from b00b8daec828dd59af7d1f7a42acd6e5867f80c6, before 72ea9edd9eae351ba1b32ab98be5cedc0fe6cb75
affected from b00b8daec828dd59af7d1f7a42acd6e5867f80c6, before 13ac7c05bc45d3445b580da186548dd3487fae4e
Other versions: unaffected
Linux
affected 4.18
unaffected before 4.18
unaffected from 5.10.275 up to and including 5.10.*
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
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-139309 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139309

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-139309
trivy image --scanners vuln IMAGE | grep CVE-2026-139309

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

Source: the record CVE-2026-139309 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.