AZL-115492: CVE-2026-99674 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
can: dev: candroppedinvalidskb: drop CAN XL frames on non-CAN XL devices
Sending a PFPACKET bypasses the CAN framework logic and can directly reach a CAN driver's xmit() function. The PFPACKET framework only checks that skb->len does not exceed the netdevice MTU.
For a CAN device that is not CAN XL capable, anything above CANFDMTU (72 bytes) is therefore dropped before it reaches the driver. However, CAN XL frames are variable length. caniscanxlskb() accepts lengths in the range CANXLHDRSIZE + CANXLMINDLEN up to CANXLMTU, i.e. 13 to 2060 bytes.
As a result, an ETHPCANXL skb with a length between 13 and 72 bytes can pass both the MTU and the candroppedinvalidskb() checks.
A driver that does not support CAN XL will interpret canxlframe->flags as a length because of the overlap with canframe->len. And because CANXLXLF is set, the resulting length is between 128 and 255. For drivers that do not check canframe->len before copying canframe->data, as most drivers do, this results in a buffer overflow of up to 247 bytes.
Drop ETHPCANXL skbs if the device does not have the CANCAPXL capability. Keep caniscanxlskb() for the validation of CAN XL skbs.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Drop ETH_P_CANXL skbs when the CAN device does not have the CAN_CAP_XL capability.