# CVE-2025-39839: batman-adv: fix OOB read/write in network-coding decode

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2025-09-19T15:26:14.688Z
- Modified: 2026-10-19T21:10:00.160Z
- Weaknesses: CWE-125
- 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.

(As written by CVE List.)

## Affected

- 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; 3.10 (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.*; from 6.12.46 up to 6.12.*; from 6.16.6 up to 6.16.*; from 6.17 up to *)
- 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
- debian debian_linux: 11.0

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/30fc47248f02b8a14a61df469e1da4704be1a19f> (patch)
- <https://git.kernel.org/stable/c/1e36c6c8dc8023b4bbe9a16e819f9998b9b6a183> (patch)
- <https://git.kernel.org/stable/c/5d334bce9fad58cf328d8fa14ea1fff855819863> (patch)
- <https://git.kernel.org/stable/c/dce6c2aa70e94c04c523b375dfcc664d7a0a560a> (patch)
- <https://git.kernel.org/stable/c/bb37252c9af1cb250f34735ee98f80b46be3cef1> (patch)
- <https://git.kernel.org/stable/c/20080709457bc1e920eb002483d7d981d9b2ac1c> (patch)
- <https://git.kernel.org/stable/c/a67c6397fcb7e842d3c595243049940970541c48> (patch)
- <https://git.kernel.org/stable/c/d77b6ff0ce35a6d0b0b7b9581bc3f76d041d4087> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (mailing-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

- CVE List: [CVE-2025-39839](https://www.cve.org/CVERecord?id=CVE-2025-39839), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-39839](https://nvd.nist.gov/vuln/detail/CVE-2025-39839), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-39839 · Whole record: https://cve.day/CVE-2025-39839.json · Rebuilt by cve.day 2026-11-25T22:59:04.859Z
