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 package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 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_kernel | from 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.17 | NVD |
| debian debian_linux | 11.0 | NVD |
All scores
| Linux | 8.8high CVSS:3.1 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.1high CVSS:3.1 | CVSS: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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-39839 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2025-39839 changed 2026-10-19 | Public domain |