CVE-2026-63870: ieee802154: 6lowpan: only accept IPv6 packets in lowpan_xmit()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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().
The Linux kernel CVE team has assigned CVE-2026-63870 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.0 with commit 4dc315e267fe4a3c863fec21f26aa0a418c3f07a and fixed in 5.10.259 with commit af07fffbd53ddc3ec3c2a4ca914f27899fa89bca Issue introduced in 4.0 with commit 4dc315e267fe4a3c863fec21f26aa0a418c3f07a and fixed in 5.15.210 with commit 3150e6d3223dfc356308125cabf9c34169842d2a Issue introduced in 4.0 with commit 4dc315e267fe4a3c863fec21f26aa0a418c3f07a and fixed in 6.1.176 with commit 8da95cb6ad7d656c871e776a9c7b77e894d6d89c Issue introduced in 4.0 with commit 4dc315e267fe4a3c863fec21f26aa0a418c3f07a and fixed in 6.6.143 with commit 1a827b95e62b4cbe851ae7cc9c961cdfa769cca4 Issue introduced in 4.0 with commit 4dc315e267fe4a3c863fec21f26aa0a418c3f07a and fixed in 6.12.94 with commit c1819c8defa235c7beda859bc185b1c429a55ecd Issue introduced in 4.0 with commit 4dc315e267fe4a3c863fec21f26aa0a418c3f07a and fixed in 6.18.36 with commit 285b0842f2e01c3edf805f1fd64da11d9b7f6b4c Issue introduced in 4.0 with commit 4dc315e267fe4a3c863fec21f26aa0a418c3f07a and fixed in 7.0.13 with commit 87172cc8dc49aaf54407a31edffb0232f8cb93ab Issue introduced in 4.0 with commit 4dc315e267fe4a3c863fec21f26aa0a418c3f07a and fixed in 7.1 with commit 3a5f3f7aff18bcc36a57839cf50cf0cc8de707f3
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-63870
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/ieee802154/6lowpan/tx.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/af07fffbd53ddc3ec3c2a4ca914f27899fa89bca https://git.kernel.org/stable/c/3150e6d3223dfc356308125cabf9c34169842d2a https://git.kernel.org/stable/c/8da95cb6ad7d656c871e776a9c7b77e894d6d89c https://git.kernel.org/stable/c/1a827b95e62b4cbe851ae7cc9c961cdfa769cca4 https://git.kernel.org/stable/c/c1819c8defa235c7beda859bc185b1c429a55ecd https://git.kernel.org/stable/c/285b0842f2e01c3edf805f1fd64da11d9b7f6b4c https://git.kernel.org/stable/c/87172cc8dc49aaf54407a31edffb0232f8cb93ab https://git.kernel.org/stable/c/3a5f3f7aff18bcc36a57839cf50cf0cc8de707f3