CVE-2026-143424: can: isotp: check the frame type, not just the length
In the Linux kernel, the following vulnerability has been resolved:
can: isotp: check the frame type, not just the length
isotprcv() separates Classic CAN from CAN FD by skb->len alone:
if (skb->len != so->ll.mtu) return;
cf = (struct canfdframe )skb->data;
A CAN XL frame with cxl->len 4 is CANMTU bytes, so it passes, and is then read as a canfdframe whose len comes out of canxlframe.flags: at least 0x80.
Of the paths that follow, only the flow control one uses that length without bounding it first, so checkpad() walks to 255 over a 16-byte frame and the caller reports EBADMSG on an unrelated socket.
bcmrxhandler(), j1939canrecv(), cancangwrcv() and rawrcv() check the frame type here, and candroppedinvalidskb() switches on skb->protocol on the transmit side. isotprcv() is the gap.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.118 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.64 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.5 - Compensating control
In isotp_rcv(), check the frame type rather than relying on skb->len alone to distinguish Classic CAN from CAN FD.
Event History
Frequently Asked Questions
Which systems are realistically exposed to this issue?
Systems using the Linux kernel ISO-TP CAN receive path are exposed when they can receive CAN XL frames. The problematic condition is a CAN XL frame whose payload length makes the socket buffer length equal to CAN_MTU, allowing it to be treated as a CAN FD frame.
What does an attacker need to trigger the issue?
An attacker needs the ability to inject a crafted CAN XL frame into the affected CAN traffic path. The frame must have a CAN XL length of 4 so that it passes the receive-length check and reaches the ISO-TP flow-control handling path.
What is the observable impact?
The ISO-TP padding check can read beyond the 16-byte frame while iterating up to 255 bytes. The receiving code can then report EBADMSG on an unrelated socket.
What can be done before applying the fix?
Limit untrusted access to the CAN network and prevent CAN XL frames from reaching systems using ISO-TP receive sockets where possible. The described trigger depends on a crafted CAN XL frame entering the affected receive path.