can: dev: fix skb drop check
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
can: dev: fix skb drop check
In commit a6d190f8c767 ("can: skb: drop tx skb if in listen only mode") the priv->ctrlmode element is read even on virtual CAN interfaces that do not create the struct can_priv at startup. This out-of-bounds read may lead to CAN frame drops for virtual CAN interfaces like vcan and vxcan.
This patch mainly reverts the original commit and adds a new helper for CAN interface drivers that provide the required information in struct can_priv.
[mkl: patch pch_can, too]
From the CVE record · Linux
A CAN device check in the Linux kernel can read out of bounds on virtual CAN interfaces such as vcan and vxcan, potentially dropping CAN frames. The input does not establish an attacker path or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with virtual CAN interfaces such as vcan or vxcan should check whether their kernel includes the affected change; affected versions are not specified.