CVE-2025-21823
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-21823 affects the batman-adv (Batman Advanced) component in the Linux kernel. The vulnerability is related to the ELP (Echo Location Protocol) metric worker functionality, which calculates metric values for neighbors reachable over an interface. The issue was discovered in January 2025 and was fixed in Linux kernel version 6.1.129-1 (Debian Tracker).

Technical details

The vulnerability stems from a design flaw in the ELP metric worker implementation. The worker needs to calculate new metric values for neighbors while using locks that might need to sleep, which is incompatible with the RCU (Read-Copy-Update) list iterator used for recorded neighbors. The initial workaround of queuing another work item per neighbor led to potential invalid memory accesses when interfaces were removed or the batman-adv module was unloaded. Additionally, the cancelworksync operation could cause deadlocks due to lock ordering issues with rtnl_lock (Kernel Commit).

Impact

The vulnerability could result in potential invalid memory accesses and system deadlocks. This occurs specifically when interfaces are removed or the batman-adv module is unloaded while metric calculations are in progress. The issue affects systems running the batman-adv networking component in the Linux kernel (Debian Tracker).

Mitigation and workarounds

The issue has been fixed by redesigning the ELP metric worker implementation. The solution involves creating a list of neighbors requiring metric information inside the RCU protected context and gathering metrics according to this list outside the RCU protected context. The fix also implements rcu_trylock usage in metric gathering code to avoid deadlocks. Users should upgrade to Linux kernel version 6.1.129-1 or later where the fix has been implemented (Debian Tracker).

Additional resources


SourceThis report was generated using AI

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

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