CVE-2025-39839
JSON

8.8high

batman-adv: fix OOB read/write in network-coding decode

Severity
8.8high CVSS:3.1 by Linux
Exploit likelihood
0.27% (higher than 20% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: batman-adv: fix OOB read/write in network-coding decode batadv_nc_skb_decode_packet() trusts coded_len and checks only against skb->len. XOR starts at sizeof(struct batadv_unicast_packet), reducing payload headroom, and the source skb length is not verified, allowing an out-of-bounds read and a small out-of-bounds write. Validate that coded_len fits within the payload area of both destination and source sk_buffs before XORing.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 2df5278b0267c799f3e877e8eeddbb6e93cda0bb before 30fc47248f02b8a14a61df469e1da4704be1a19f, from 2df5278b0267c799f3e877e8eeddbb6e93cda0bb before 1e36c6c8dc8023b4bbe9a16e819f9998b9b6a183, from 2df5278b0267c799f3e877e8eeddbb6e93cda0bb before 5d334bce9fad58cf328d8fa14ea1fff855819863, from 2df5278b0267c799f3e877e8eeddbb6e93cda0bb before dce6c2aa70e94c04c523b375dfcc664d7a0a560a, from 2df5278b0267c799f3e877e8eeddbb6e93cda0bb before bb37252c9af1cb250f34735ee98f80b46be3cef1, from 2df5278b0267c799f3e877e8eeddbb6e93cda0bb before 20080709457bc1e920eb002483d7d981d9b2ac1c, from 2df5278b0267c799f3e877e8eeddbb6e93cda0bb before a67c6397fcb7e842d3c595243049940970541c48, from 2df5278b0267c799f3e877e8eeddbb6e93cda0bb before d77b6ff0ce35a6d0b0b7b9581bc3f76d041d4087 and 1 more
Not affected: before 3.10, from 5.4.299 up to 5.4.*, from 5.10.243 up to 5.10.*, from 5.15.192 up to 5.15.*, from 6.1.151 up to 6.1.*, from 6.6.105 up to 6.6.*
CVE List
linux linux_kernelfrom 3.10 before 5.4.299, from 5.5 before 5.10.243, from 5.11 before 5.15.192, from 5.16 before 6.1.151, from 6.2 before 6.6.105, from 6.7 before 6.12.46, from 6.13 before 6.16.6, 6.17NVD
debian debian_linux11.0NVD

All scores

Linux8.8high CVSS:3.1CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Classification

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: batman-adv: fix OOB read/write in network-coding decode batadv_nc_skb_decode_packet() trusts coded_len and checks only against skb->len. XOR starts at sizeof(struct batadv_unicast_packet), reducing payload headroom, and the source skb length is not verified, allowing an out-of-bounds read and a small out-of-bounds write. Validate that coded_len fits within the payload area of both destination and source sk_buffs before XORing.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: batman-adv: corrección de lectura/escritura fuera de límites en la decodificación de codificación de red batadv_nc_skb_decode_packet() confía en coded_len y solo verifica contra skb->len. XOR comienza en sizeof(struct batadv_unicast_packet), reduciendo el espacio libre de la carga útil, y la longitud del skb de origen no se verifica, permitiendo una lectura fuera de límites y una pequeña escritura fuera de límites. Validar que coded_len encaja dentro del área de carga útil tanto de los sk_buffs de destino como de origen antes de aplicar XOR.

References

https://git.kernel.org/stable/c/30fc47248f02b8a14a61df469e1da4704be1a19fpatch
https://git.kernel.org/stable/c/1e36c6c8dc8023b4bbe9a16e819f9998b9b6a183patch
https://git.kernel.org/stable/c/5d334bce9fad58cf328d8fa14ea1fff855819863patch
https://git.kernel.org/stable/c/dce6c2aa70e94c04c523b375dfcc664d7a0a560apatch
https://git.kernel.org/stable/c/bb37252c9af1cb250f34735ee98f80b46be3cef1patch
https://git.kernel.org/stable/c/20080709457bc1e920eb002483d7d981d9b2ac1cpatch
https://git.kernel.org/stable/c/a67c6397fcb7e842d3c595243049940970541c48patch
https://git.kernel.org/stable/c/d77b6ff0ce35a6d0b0b7b9581bc3f76d041d4087patch
https://lists.debian.org/debian-lts-announce/2025/10/msg00008.htmlmailing-list, third-party-advisory
https://lists.debian.org/debian-lts-announce/2025/10/msg00007.htmlmailing-list, third-party-advisory
https://cert-portal.siemens.com/productcert/html/ssa-089022.html
https://cert-portal.siemens.com/productcert/html/ssa-032379.html

Sources

SourceRecordLicence
CVE ListCVE-2025-39839 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-39839 changed 2026-10-19Public domain