ieee802154: 6lowpan: only accept IPv6 packets in lowpan_xmit()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4dc315e267fe4a3c863fec21f26aa0a418c3f07a · < 285b0842f2e01c3edf805f1fd64da11d9b7f6b4c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ieee802154: 6lowpan: only accept IPv6 packets in lowpan_xmit()
The aoe driver (or similar) generates a non-IPv6 packet (e.g., ETH_P_AOE) and queues it for transmission via dev_queue_xmit() on a 6LoWPAN interface (configured by the user or test case).
Since the packet is not IPv6, the 6LoWPAN header_ops->create function (lowpan_header_create or header_create) returns early without initializing the lowpan_addr_info structure in the skb headroom.
In the transmit function (lowpan_xmit), the driver calls lowpan_header (or setup_header) which unconditionally copies and uses the lowpan_addr_info from the headroom, which contains uninitialized data.
Fix this by dropping non IPv6 packets.
A similar fix is needed in net/bluetooth/6lowpan.c bt_xmit().
From the CVE record · Linux
The Linux kernel’s 6LoWPAN transmit path can use uninitialized data when a non-IPv6 packet is queued on a configured 6LoWPAN interface. This can occur when a driver such as aoe queues the packet for transmission; the description does not specify an authentication requirement or user interaction.
Engineers running Linux kernels with 6LoWPAN interfaces should check their affected versions against the vendor advisory; no version range was provided.