CVE-2026-31657: 
Linux Kernel vulnerability analysis and mitigation

Overview

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

Technical details

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

Impact

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

Exploitability

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.

Mitigation and workarounds

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.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux: 6.1.170-1

Fixed

sid

linux: 6.19.13-1

Fixed

trixie

linux: 6.12.85-1

Fixed

Ubuntu

Fixed

bionic (esm-infra)

linux: 4.15.0-254.266

Fixed

bionic (fips-updates)

linux-fips: 4.15.0-1150.162

Fixed

bionic (fips)

linux-fips

Affected

devel

linux

Not Affected

focal

linux-azure-fde-5.15

Not Affected

focal (esm-infra)

linux: 5.4.0-234.254

Fixed

focal (fips-updates)

linux-fips: 5.4.0-1136.146

Fixed

focal (fips)

linux-fips

Affected

RHEL / CentOS

Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

Source: This report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-99804MEDIUM5.1
  • Linux Kernel logoLinux Kernel
  • linux-aws-6.14
NoYesNov 20, 2026
CVE-2026-99799MEDIUM5.1
  • Linux Kernel logoLinux Kernel
  • linux-hwe-5.4
NoYesNov 20, 2026
CVE-2026-99797MEDIUM5.1
  • Linux Kernel logoLinux Kernel
  • linux-oracle
NoYesNov 20, 2026
CVE-2026-99796MEDIUM5.1
  • Linux Kernel logoLinux Kernel
  • kernel-kmap-internal
NoYesNov 20, 2026
CVE-2026-99798MEDIUM4.3
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoYesNov 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management