Bug 2396919 (CVE-2025-39839) - CVE-2025-39839 kernel: batman-adv: fix OOB read/write in network-coding decode
Summary: CVE-2025-39839 kernel: batman-adv: fix OOB read/write in network-coding decode
Keywords:
Status: NEW
Alias: CVE-2025-39839
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-19 16:01 UTC by OSIDB Bzimport
Modified: 2025-09-19 17:27 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-19 16:01:33 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.