cvelo
P4 · Info

can: isotp: check the frame type, not just the length

  • CVE-2026-143424
  • EUVD-2026-145021

Summary

In the Linux kernel's CAN ISO-TP receive path, isotp_rcv() separates Classic CAN from CAN FD by checking only the skb length. A CAN XL frame of length 4 matches the Classic CAN size, so it is accepted and then parsed as a CAN FD frame, with its length taken from the XL flags field. Only the flow control path uses that length without bounding it, so a 16-byte frame can cause a padding check to walk to 255 and return EBADMSG on an unrelated socket. Other CAN receive handlers already check the frame type, which this one does not. The record gives no CVSS score and it is not listed as known exploited.

AI summary · verify against the vendor advisory

Description

In the Linux kernel, the following vulnerability has been resolved: can: isotp: check the frame type, not just the length isotp_rcv() separates Classic CAN from CAN FD by skb->len alone: if (skb->len != so->ll.mtu) return; cf = (struct canfd_frame *)skb->data; A CAN XL frame with cxl->len 4 is CAN_MTU bytes, so it passes, and is then read as a canfd_frame whose len comes out of canxl_frame.flags: at least 0x80. Of the paths that follow, only the flow control one uses that length without bounding it first, so check_pad() walks to 255 over a 16-byte frame and the caller reports EBADMSG on an unrelated socket. bcm_rx_handler(), j1939_can_recv(), can_can_gw_rcv() and raw_rcv() check the frame type here, and can_dropped_invalid_skb() switches on skb->protocol on the transmit side. isotp_rcv() is the gap.

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • Linux

    Affected versionsFixed in
    6.1none stated
    before 6.1: not affectednone stated
    from 6.1.193 up to 6.1.*: not affectednone stated
    from 6.6.163 up to 6.6.*: not affectednone stated
    from 6.12.118 up to 6.12.*: not affectednone stated
    from 6.18.64 up to 6.18.*: not affectednone stated
    from 7.3.5 up to 7.3.*: not affectednone stated
    from 7.4-rc2 onwards: not affectednone stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.