Skip to content
CVE PROGRAM SOURCE RECORD8.8 High

CVE-2025-39839

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

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 2df5278b0267c799f3e877e8eeddbb6e93cda0bb to < 30fc47248f02b8a14a61df469e1da4704be1a19faffected
  • 2df5278b0267c799f3e877e8eeddbb6e93cda0bb to < 1e36c6c8dc8023b4bbe9a16e819f9998b9b6a183affected
  • 2df5278b0267c799f3e877e8eeddbb6e93cda0bb to < 5d334bce9fad58cf328d8fa14ea1fff855819863affected
  • 2df5278b0267c799f3e877e8eeddbb6e93cda0bb to < dce6c2aa70e94c04c523b375dfcc664d7a0a560aaffected
  • 2df5278b0267c799f3e877e8eeddbb6e93cda0bb to < bb37252c9af1cb250f34735ee98f80b46be3cef1affected
  • 2df5278b0267c799f3e877e8eeddbb6e93cda0bb to < 20080709457bc1e920eb002483d7d981d9b2ac1caffected
  • 2df5278b0267c799f3e877e8eeddbb6e93cda0bb to < a67c6397fcb7e842d3c595243049940970541c48affected
  • 2df5278b0267c799f3e877e8eeddbb6e93cda0bb to < d77b6ff0ce35a6d0b0b7b9581bc3f76d041d4087affected

Linux Linux

Default version status: affected

  • 3.10affected
  • 0 to < 3.10unaffected
  • 5.4.299 to ≤ 5.4.*unaffected
  • 5.10.243 to ≤ 5.10.*unaffected
  • 5.15.192 to ≤ 5.15.*unaffected
  • 6.1.151 to ≤ 6.1.*unaffected
  • 6.6.105 to ≤ 6.6.*unaffected
  • 6.12.46 to ≤ 6.12.*unaffected
  • 6.16.6 to ≤ 6.16.*unaffected
  • 6.17 to ≤ *unaffected

References