# CVE-2025-21823: batman-adv: Drop unmanaged ELP metric worker

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **Published:** 2025-02-27T20:06:14.074Z
- **Modified:** 2026-08-05T11:54:41.091Z

## Who should check

- Anyone running Linux \>= c833484e5f3872a38fe232c663586069d5ad9645, \< 1c334629176c2d644befc31a20d4bf75542f7631; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< a0019971f340ae02ba54cf1861f72da7e03e6b66; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< 3c0e0aecb78cb2a2ca1dc701982d08fedb088dc6; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< 781a06fd265a8151f7601122d9c2e985663828ff; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< a7aa2317285806640c844acd4cd2cd768e395264; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< 0fdc3c166ac17b26014313fa2b93696354511b24; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< af264c2a9adc37f4bdf88ca7f3affa15d8c7de9e; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< 8c8ecc98f5c65947b0070a24bac11e12e47cc65d
- Anyone running Linux 4.6

## Description

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

batman-adv: Drop unmanaged ELP metric worker

The ELP worker needs to calculate new metric values for all neighbors
"reachable" over an interface. Some of the used metric sources require
locks which might need to sleep. This sleep is incompatible with the RCU
list iterator used for the recorded neighbors. The initial approach to work
around of this problem was to queue another work item per neighbor and then
run this in a new context.

Even when this solved the RCU vs might\_sleep() conflict, it has a major
problems: Nothing was stopping the work item in case it is not needed
anymore - for example because one of the related interfaces was removed or
the batman-adv module was unloaded - resulting in potential invalid memory
accesses.

Directly canceling the metric worker also has various problems:

\* cancel\_work\_sync for a to-be-deactivated interface is called with
  rtnl\_lock held. But the code in the ELP metric worker also tries to use
  rtnl\_lock() - which will never return in this case. This also means that
  cancel\_work\_sync would never return because it is waiting for the worker
  to finish.
\* iterating over the neighbor list for the to-be-deactivated interface is
  currently done using the RCU specific methods. Which means that it is
  possible to miss items when iterating over it without the associated
  spinlock - a behaviour which is acceptable for a periodic metric check
  but not for a cleanup routine (which must "stop" all still running
  workers)

The better approch is to get rid of the per interface neighbor metric
worker and handle everything in the interface worker. The original problems
are solved by:

\* creating a list of neighbors which require new metric information inside
  the RCU protected context, gathering the metric according to the new list
  outside the RCU protected context
\* only use rcu\_trylock inside metric gathering code to avoid a deadlock
  when the cancel\_delayed\_work\_sync is called in the interface removal code
  (which is called with the rtnl\_lock held)

## Affected and fixed versions

- Linux: \>= c833484e5f3872a38fe232c663586069d5ad9645, \< 1c334629176c2d644befc31a20d4bf75542f7631; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< a0019971f340ae02ba54cf1861f72da7e03e6b66; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< 3c0e0aecb78cb2a2ca1dc701982d08fedb088dc6; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< 781a06fd265a8151f7601122d9c2e985663828ff; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< a7aa2317285806640c844acd4cd2cd768e395264; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< 0fdc3c166ac17b26014313fa2b93696354511b24; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< af264c2a9adc37f4bdf88ca7f3affa15d8c7de9e; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< 8c8ecc98f5c65947b0070a24bac11e12e47cc65d (cvelist)
- Linux: 4.6 (cvelist)

## Mitigation

- Upgrade Linux to 8c8ecc98f5c65947b0070a24bac11e12e47cc65d or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-21823.md
Affected: Linux >= c833484e5f3872a38fe232c663586069d5ad9645, < 1c334629176c2d644befc31a20d4bf75542f7631; >= c833484e5f3872a38fe232c663586069d5ad9645, < a0019971f340ae02ba54cf1861f72da7e03e6b66; >= c833484e5f3872a38fe232c663586069d5ad9645, < 3c0e0aecb78cb2a2ca1dc701982d08fedb088dc6; >= c833484e5f3872a38fe232c…
Fixed in: Linux 1c334629176c2d644befc31a20d4bf75542f7631, Linux 3c0e0aecb78cb2a2ca1dc701982d08fedb088dc6, Linux 781a06fd265a8151f7601122d9c2e985663828ff, Linux 0fdc3c166ac17b26014313fa2b93696354511b24, Linux 8c8ecc98f5c65947b0070a24bac11e12e47cc65d

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-2025-21823 being exploited?

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

### How serious is CVE-2025-21823?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21823?

Linux \>= c833484e5f3872a38fe232c663586069d5ad9645, \< 1c334629176c2d644befc31a20d4bf75542f7631; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< a0019971f340ae02ba54cf1861f72da7e03e6b66; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< 3c0e0aecb78cb2a2ca1dc701982d08fedb088dc6; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< 781a06fd265a8151f7601122d9c2e985663828ff; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< a7aa2317285806640c844acd4cd2cd768e395264; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< 0fdc3c166ac17b26014313fa2b93696354511b24; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< af264c2a9adc37f4bdf88ca7f3affa15d8c7de9e; \>= c833484e5f3872a38fe232c663586069d5ad9645, \< 8c8ecc98f5c65947b0070a24bac11e12e47cc65d; Linux 4.6.

### Is there a fix for CVE-2025-21823?

Yes. Fixed in Linux 1c334629176c2d644befc31a20d4bf75542f7631, Linux 3c0e0aecb78cb2a2ca1dc701982d08fedb088dc6, Linux 781a06fd265a8151f7601122d9c2e985663828ff, Linux 0fdc3c166ac17b26014313fa2b93696354511b24, Linux 8c8ecc98f5c65947b0070a24bac11e12e47cc65d. Upgrade Linux to 8c8ecc98f5c65947b0070a24bac11e12e47cc65d or later.

### How do I check if I'm affected by CVE-2025-21823?

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/1c334629176c2d644befc31a20d4bf75542f7631>
- patch: <https://git.kernel.org/stable/c/a0019971f340ae02ba54cf1861f72da7e03e6b66>
- patch: <https://git.kernel.org/stable/c/3c0e0aecb78cb2a2ca1dc701982d08fedb088dc6>
- patch: <https://git.kernel.org/stable/c/781a06fd265a8151f7601122d9c2e985663828ff>
- patch: <https://git.kernel.org/stable/c/a7aa2317285806640c844acd4cd2cd768e395264>
- patch: <https://git.kernel.org/stable/c/0fdc3c166ac17b26014313fa2b93696354511b24>
- patch: <https://git.kernel.org/stable/c/af264c2a9adc37f4bdf88ca7f3affa15d8c7de9e>
- patch: <https://git.kernel.org/stable/c/8c8ecc98f5c65947b0070a24bac11e12e47cc65d>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>

## 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-2025-21823>

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