CVE-2026-31526·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix exception exit lock checking for subprogs process_bpf_exit_full() passes check_lock = !curframe to check_resource_leak(), which is false in cases when bpf_throw() is called from a static subprog. This makes check_resource_leak() to skip validation of active_rcu_locks, active_preempt_locks, and active_irq_id on exception exits from subprogs. At runtime bpf_throw() unwinds the stack via ORC without releasing any user-acquired locks, which may cause various issues as the result. Fix by setting check_lock = true for exception exits regardless of curframe, since exceptions bypass all intermediate frame cleanup. Update the error message prefix to "bpf_throw" for exception exits to distinguish them from normal BPF_EXIT. Fix reject_subprog_with_rcu_read_lock test which was previously passing for the wrong reason. Test program returned directly from the subprog call without closing the RCU section, so the error was triggered by the unclosed RCU lock on normal exit, not by bpf_throw. Update __msg annotations for affected tests to match the new "bpf_throw" error prefix. The spin_lock case is not affected because they are already checked [1] at the call site in do_check_insn() before bpf_throw can run. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/kernel/bpf/verifier.c?h=v7.0-rc4#n21098
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.19.11
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.13% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 6.19.11
Fixed in: 6.19.11
How to fix this CVE
Update your Linux kernel to version 6.19.11 or later to resolve a lock-checking bypass vulnerability in BPF exception handling. This patch ensures that resource locks (RCU, preempt, and IRQ locks) are properly validated when bpf_throw() unwinds the stack, preventing potential lock leaks and system instability. Apply the kernel update and reboot your system to activate the fix.
sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your currently installed kernel version
- Verify if your kernel version is between 6.19 and 6.19.10 (vulnerable range)
- Check kernel logs with 'sudo dmesg | grep -i bpf' or 'sudo journalctl -k | grep -i bpf' for BPF-related warnings or crashes
- After applying the patch, confirm the new version with 'uname -r' shows 6.19.11 or later
FAQ
What is CVE-2026-31526?
This vulnerability affects the BPF (Berkeley Packet Filter) verifier in the Linux kernel, where exception exit handling fails to properly validate active locks (RCU, preempt, and IRQ) when bpf_throw() is called from static subprograms. This can result in unreleased locks and potential system instability.
Is CVE-2026-31526 being actively exploited?
No, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and has no public exploits available. Exploitation requires kernel BPF program capabilities.
What versions of Kernel are affected by CVE-2026-31526?
Linux kernel versions 6.19 through 6.19.10 are affected. The vulnerability was fixed in kernel 6.19.11.
How do I check if my server is vulnerable to CVE-2026-31526?
Run 'uname -r' and compare your kernel version against the vulnerable range 6.19.0-6.19.10. If your version falls within this range, your system is vulnerable.
Does Defensia detect CVE-2026-31526?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-31526 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31526. Free for 1 server.
Get started free