5.5

CVE-2026-31526: bpf: Fix exception exit lock checking for subprogs

Modified
AliasesUBUNTU-CVE-2026-31526DEBIAN-CVE-2026-31526CGA-2rmm-mjhm-qcrw
Published 22-04-2026Last modified 05-11-2026

Vulnerability summary

CVE-2026-31526 is a medium (CVSS 5.5) Improper Locking vulnerability in linux. EPSS estimates a 0.13% chance of exploitation in the next 30 days, higher than 2.8% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.13%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 6 · Related 4

Timeline

  1. 22-04-2026
    PublishedVulnerability first disclosed.
  2. 05-11-2026
    Last modifiedVulnerability information updated.

Description

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

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

0.13%

Chance of exploitation in the next 30 days

Percentile

3%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.13% on 21-10-2026

21-10-202620-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu132 products
  • linuxAll versions (No fix recorded) | < 6.8.0-151.151
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-awsAll versions (No fix recorded) | < 6.8.0-1070.76
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Chainguard5 products
  • linux-aws-6.12All versions (No fix recorded)
  • linux-azure-6.12All versions (No fix recorded)
  • linux-gcp-6.12All versions (No fix recorded)
  • linux-qemu-6.12All versions (No fix recorded)
  • linux-vmware-6.12All versions (No fix recorded)
Debian2 products
  • linuxAll versions (No fix recorded) | < 6.12.115-2 | < 6.19.11-1
  • linux-6.12< 6.12.115-2~deb12u1
Linux2 products
  • linux≥ f18b03fabaa9b7c80e80b72a621f481f0d706ae0, < 4eca06a55417c3b2e538656d12c89e224343653e | ≥ f18b03fabaa9b7c80e80b72a621f481f0d706ae0, < c0281da1f2aa5c2fca3a05f79b86bea96591c358 | ≥ f18b03fabaa9b7c80e80b72a621f481f0d706ae0, < 5a399f3117642494e35545f6ca397d3e177c1f9b | ≥ f18b03fabaa9b7c80e80b72a621f481f0d706ae0, < 6c2128505f61b504c79a20b89596feba61388112 | 6.7
  • linux_kernel≥ 6.7, < 6.18.21 | ≥ 6.19, < 6.19.11 | 7.0:rc1 | 7.0:rc2 | 7.0:rc3 | 7.0:rc4

4 vendors · 141 products

References

11 links
Show all 11 references