# CVE-2026-31657: batman-adv: hold claim backbone gateways by reference

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.78% (percentile 53, 2026-11-28)
- **CWE:** CWE-476, CWE-416
- **Published:** 2026-04-24T14:45:08.867Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 5202f071b367ffbc8e279fc7a00db14f5e587f52; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 69d1ce9c72eca91203ffdb8d08bacd511100aec6; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< f4858832ddef2f39f21e30b7226bbcd3c4b2bc96; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 2f55b58b5a0bbed192d60c444a45a49cdf1b545f; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 7962b522222628596ca9ecc8722efc95367aadbd; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 4dee4c0688443aaf5bbec74aa203c851d1d53c35; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 1f2dc36c297d27733f1b380ea644cf15a361bd7b; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 82d8701b2c930d0e96b0dbc9115a218d791cb0d2
- Anyone running Linux 3.5

## Description

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

batman-adv: hold claim backbone gateways by reference

batadv\_bla\_add\_claim() can replace claim-\>backbone\_gw and drop the old
gateway's last reference while readers still follow the pointer.

The netlink claim dump path dereferences claim-\>backbone\_gw-\>orig and
takes claim-\>backbone\_gw-\>crc\_lock without pinning the underlying
backbone gateway. batadv\_bla\_check\_claim() still has the same naked
pointer access pattern.

Reuse batadv\_bla\_claim\_get\_backbone\_gw() in both readers so they operate
on a stable gateway reference until the read-side work is complete.
This keeps the dump and claim-check paths aligned with the lifetime
rules introduced for the other BLA claim readers.

## Affected and fixed versions

- Linux: \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 5202f071b367ffbc8e279fc7a00db14f5e587f52; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 69d1ce9c72eca91203ffdb8d08bacd511100aec6; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< f4858832ddef2f39f21e30b7226bbcd3c4b2bc96; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 2f55b58b5a0bbed192d60c444a45a49cdf1b545f; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 7962b522222628596ca9ecc8722efc95367aadbd; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 4dee4c0688443aaf5bbec74aa203c851d1d53c35; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 1f2dc36c297d27733f1b380ea644cf15a361bd7b; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 82d8701b2c930d0e96b0dbc9115a218d791cb0d2 (cvelist)
- Linux: 3.5 (cvelist)

## Mitigation

- Upgrade Linux to 82d8701b2c930d0e96b0dbc9115a218d791cb0d2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-31657. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31657.md
Affected: Linux >= 23721387c409087fd3b97e274f34d3ddc0970b74, < 5202f071b367ffbc8e279fc7a00db14f5e587f52; >= 23721387c409087fd3b97e274f34d3ddc0970b74, < 69d1ce9c72eca91203ffdb8d08bacd511100aec6; >= 23721387c409087fd3b97e274f34d3ddc0970b74, < f4858832ddef2f39f21e30b7226bbcd3c4b2bc96; >= 23721387c409087fd3b97e2…
Fixed in: Linux 5202f071b367ffbc8e279fc7a00db14f5e587f52, Linux 69d1ce9c72eca91203ffdb8d08bacd511100aec6, Linux 2f55b58b5a0bbed192d60c444a45a49cdf1b545f, Linux 7962b522222628596ca9ecc8722efc95367aadbd, Linux 4dee4c0688443aaf5bbec74aa203c851d1d53c35, Linux 1f2dc36c297d27733f1b380ea644cf15a361bd7b, Linux 82d87…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-31657 being exploited?

There is no confirmed exploitation: CVE-2026-31657 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.78% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-31657?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-31657?

Linux \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 5202f071b367ffbc8e279fc7a00db14f5e587f52; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 69d1ce9c72eca91203ffdb8d08bacd511100aec6; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< f4858832ddef2f39f21e30b7226bbcd3c4b2bc96; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 2f55b58b5a0bbed192d60c444a45a49cdf1b545f; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 7962b522222628596ca9ecc8722efc95367aadbd; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 4dee4c0688443aaf5bbec74aa203c851d1d53c35; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 1f2dc36c297d27733f1b380ea644cf15a361bd7b; \>= 23721387c409087fd3b97e274f34d3ddc0970b74, \< 82d8701b2c930d0e96b0dbc9115a218d791cb0d2; Linux 3.5.

### Is there a fix for CVE-2026-31657?

Yes. Fixed in Linux 5202f071b367ffbc8e279fc7a00db14f5e587f52, Linux 69d1ce9c72eca91203ffdb8d08bacd511100aec6, Linux 2f55b58b5a0bbed192d60c444a45a49cdf1b545f, Linux 7962b522222628596ca9ecc8722efc95367aadbd, Linux 4dee4c0688443aaf5bbec74aa203c851d1d53c35, Linux 1f2dc36c297d27733f1b380ea644cf15a361bd7b, Linux 82d8701b2c930d0e96b0dbc9115a218d791cb0d2. Upgrade Linux to 82d8701b2c930d0e96b0dbc9115a218d791cb0d2 or later.

### How do I check if I'm affected by CVE-2026-31657?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/f4858832ddef2f39f21e30b7226bbcd3c4b2bc96>
- patch: <https://git.kernel.org/stable/c/2f55b58b5a0bbed192d60c444a45a49cdf1b545f>
- patch: <https://git.kernel.org/stable/c/7962b522222628596ca9ecc8722efc95367aadbd>
- patch: <https://git.kernel.org/stable/c/4dee4c0688443aaf5bbec74aa203c851d1d53c35>
- patch: <https://git.kernel.org/stable/c/1f2dc36c297d27733f1b380ea644cf15a361bd7b>
- patch: <https://git.kernel.org/stable/c/82d8701b2c930d0e96b0dbc9115a218d791cb0d2>
- other: <https://git.kernel.org/stable/c/5202f071b367ffbc8e279fc7a00db14f5e587f52>
- other: <https://git.kernel.org/stable/c/69d1ce9c72eca91203ffdb8d08bacd511100aec6>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31657>

HTML: <https://flawdb.com/CVE-2026-31657> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31657>
