
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-31657 is a use-after-free vulnerability in the Linux kernel's batman-adv (B.A.T.M.A.N. Advanced) subsystem, specifically in the Bridge Loop Avoidance (BLA) claim gateway handling. The flaw was published on April 24, 2026, and affects Linux kernel versions from 3.5.1 through multiple stable branches, with fixed versions at 6.1.169, 6.6.135, 6.12.82, 6.18.23, 6.19.13, and the 7.0 release (GitHub Advisory, Red Hat Bugzilla). The Feedly-assigned CVSS v3.1 base score is 9.8 (Critical), though the ENISA/EUVD entry lists a base score of 0.0, indicating scoring discrepancies across databases (GitHub Advisory).
The root cause is a race condition leading to a use-after-free (CWE-825: Expired Pointer Dereference) and potential null pointer dereference (CWE-476) in the batadv_bla_add_claim() function. This function can replace claim->backbone_gw and drop the old gateway's last reference while concurrent readers still follow the stale pointer — the netlink claim dump path dereferences claim->backbone_gw->orig and acquires claim->backbone_gw->crc_lock without first pinning the underlying backbone gateway object. The same unsafe naked pointer access pattern exists in batadv_bla_check_claim(). The fix reuses batadv_bla_claim_get_backbone_gw() in both reader paths to ensure they operate on a stable, reference-counted gateway object for the duration of their work (GitHub Advisory).
Successful exploitation could allow a local network attacker to trigger kernel memory corruption, resulting in denial of service (system crash) or potential privilege escalation to arbitrary kernel code execution. The race condition in the batman-adv BLA subsystem affects systems using the batman-adv mesh networking protocol, and exploitation could lead to complete kernel compromise on affected nodes. Confidentiality, integrity, and availability are all potentially impacted if an attacker achieves arbitrary kernel code execution (GitHub Advisory).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of reporting (GitHub Advisory). The EPSS score is approximately 0.024% (0.000240), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires local network access and the ability to influence the timing of batman-adv claim gateway operations, raising the practical exploitation bar.
Update the Linux kernel to one of the following patched versions: 6.1.169 or later, 6.6.135 or later, 6.12.82 or later, 6.18.23 or later, 6.19.13 or later, or the 7.0 stable release (GitHub Advisory). Patch commits are available at git.kernel.org with hashes 1f2dc36c, 2f55b58b, 4dee4c06, 7962b522, 82d8701b, and f4858832. If immediate patching is not feasible, restrict local network access to systems running batman-adv and limit exposure of the affected mesh networking subsystem. Monitor for unexpected kernel crashes or memory corruption events that may indicate exploitation attempts.
Fix availability across major Linux distributions and their releases.
bionic (esm-infra)
linux: 4.15.0-254.266
bionic (fips-updates)
linux-fips: 4.15.0-1150.162
bionic (fips)
linux-fips
devel
linux
focal
linux-azure-fde-5.15
focal (esm-infra)
linux: 5.4.0-234.254
focal (fips-updates)
linux-fips: 5.4.0-1136.146
focal (fips)
linux-fips
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."