batman-adv: fix OOB read/write in network-coding decode
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2df5278b0267c799f3e877e8eeddbb6e93cda0bb · < 20080709457bc1e920eb002483d7d981d9b2ac1c| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's batman-adv network-coding decoder checks coded_len against the packet length but not the available payload space in both buffers. During network packet decoding, an attacker can trigger an out-of-bounds read and a small out-of-bounds write. The input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with batman-adv should check their versions; affected versions are not specified.