Executive brief
A vulnerability was identified in the Linux kernel's batman-adv module, which is used for managing mobile ad-hoc networks. The flaw exists in how the system processes 'network-coding' packets, which are used to optimize wireless traffic. An attacker on the same local network could exploit this to cause a system crash or potentially access sensitive information by sending specially crafted network packets.
Technical details
An out-of-bounds (OOB) read and write vulnerability exists in the batadv_nc_skb_decode_packet() function within the batman-adv kernel module. The root cause is an insufficient validation of the 'coded_len' field provided in network-coding packets; the function trusted this value without verifying it against the actual payload headroom of both the source and destination socket buffers (sk_buffs). An attacker on the adjacent network (Layer 2) can provide a malicious coded_len to trigger OOB memory access during the XOR decoding process. This can result in kernel memory corruption or information leakage. Patches have been released across multiple Linux stable branches (e.g., 6.1, 6.6, 6.10, 6.11) to ensure coded_len fits within the payload area before processing.
Affected products
- Linux Linux Kernel All versions prior to the September 2025 patches
- Siemens RUGGEDCOM RST2428P < V3.3
- Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family < V3.3
Timeline
- 2025-08-31: other: Vulnerability reported by Stanislav Fort
- 2025-09-09: patched: Fixes committed to Linux stable trees
- 2025-09-19: disclosed: CVE-2025-39839 published
References
- https://git.kernel.org/stable/c/1e36c6c8dc8023b4bbe9a16e819f9998b9b6a183
- https://git.kernel.org/stable/c/20080709457bc1e920eb002483d7d981d9b2ac1c
- https://git.kernel.org/stable/c/30fc47248f02b8a14a61df469e1da4704be1a19f
- https://git.kernel.org/stable/c/5d334bce9fad58cf328d8fa14ea1fff855819863
- https://git.kernel.org/stable/c/a67c6397fcb7e842d3c595243049940970541c48
- https://git.kernel.org/stable/c/bb37252c9af1cb250f34735ee98f80b46be3cef1
- https://git.kernel.org/stable/c/d77b6ff0ce35a6d0b0b7b9581bc3f76d041d4087