Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-21823

HIGH 7.8EPSS 18%

batman-adv: Drop unmanaged ELP metric worker

Mitigation

  • Upgrade Linux to 8c8ecc98f5c65947b0070a24bac11e12e47cc65d or later.

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

Vulnerability facts

Affected
Linux >= c833484e5f3872a38fe232c663586069d5ad9645, < 1c334629176c2d644befc31a20d4bf75542f7631; >= c833484e5f3872a38fe232c663586069d5ad9645, < a0019971f340ae02ba54cf1861f72da7e03e6b66; >= c833484e5f3872a38fe232c663586069d5ad9645, < 3c0e0aecb78cb2a2ca1dc701982d08fedb088dc6; >= c833484e5f3872a38fe232c663586069d5ad9645, < 781a06fd265a8151f7601122d9c2e985663828ff; >= c833484e5f3872a38fe232c663586069d5ad9645, < a7aa2317285806640c844acd4cd2cd768e395264; >= c833484e5f3872a38fe232c663586069d5ad9645, < 0fdc3c166ac17b26014313fa2b93696354511b24; >= c833484e5f3872a38fe232c663586069d5ad9645, < af264c2a9adc37f4bdf88ca7f3affa15d8c7de9e; >= c833484e5f3872a38fe232c663586069d5ad9645, < 8c8ecc98f5c65947b0070a24bac11e12e47cc65d; Linux 4.6
Fixed in
Linux 1c334629176c2d644befc31a20d4bf75542f7631, Linux 3c0e0aecb78cb2a2ca1dc701982d08fedb088dc6, Linux 781a06fd265a8151f7601122d9c2e985663828ff, Linux 0fdc3c166ac17b26014313fa2b93696354511b24, Linux 8c8ecc98f5c65947b0070a24bac11e12e47cc65d
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.32% chance of exploitation in 30 days (percentile 18, 2026-11-26)
Published
Modified

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

Package / productAffectedFixedSource
Linux>= c833484e5f3872a38fe232c663586069d5ad9645, < 1c334629176c2d644befc31a20d4bf75542f7631; >= c833484e5f3872a38fe232c663586069d5ad9645, < a0019971f340ae02ba54cf1861f72da7e03e6b66; >= c833484e5f3872a38fe232c663586069d5ad9645, < 3c0e0aecb78cb2a2ca1dc701982d08fedb088dc6; >= c833484e5f3872a38fe232c663586069d5ad9645, < 781a06fd265a8151f7601122d9c2e985663828ff; >= c833484e5f3872a38fe232c663586069d5ad9645, < a7aa2317285806640c844acd4cd2cd768e395264; >= c833484e5f3872a38fe232c663586069d5ad9645, < 0fdc3c166ac17b26014313fa2b93696354511b24; >= c833484e5f3872a38fe232c663586069d5ad9645, < af264c2a9adc37f4bdf88ca7f3affa15d8c7de9e; >= c833484e5f3872a38fe232c663586069d5ad9645, < 8c8ecc98f5c65947b0070a24bac11e12e47cc65d—cvelist
Linux4.6—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors