CVE-2026-99670: can: dev: can_fill_info(): don't wake up controller if interface is down
In the Linux kernel, the following vulnerability has been resolved:
can: dev: canfillinfo(): don't wake up controller if interface is down
If the interface is down, the CAN controller might be powered down and its clocks gated. Don't call dogetberrcounter() to read the bus error counters if the interface is down, and adjust cangetsize() to match.
This removes one trigger for a synchronous external abort seen on i.MX8QXP when "ip link show" is run on a flexcan interface that was never brought up. The underlying cause is platform-specific: on i.MX8QXP the CAN clocks are gated through the SCU LPCG and the subsystem shares the IMXSCRCAN0 power domain, and there is a window after pmruntimeresumeandget() returns where the clock has not reached the module yet. This patch avoids the netlink query path while the interface is down, but does not root-cause the LPCG window itself.
As a result, IFLACANBERRCOUNTER is no longer reported for down interfaces. Userspace must treat the attribute as optional.
The issue was triggered on an i.MX8QXP board by running "ip link show" without ever bringing the interface up:
Internal error: synchronous external abort: 0000000096000210
pc : flexcanreadle+0x0/0x18 lr : flexcangetberrcounter+0x4c/0x8c Call trace: flexcanreadle+0x0/0x18 flexcangetberrcounter+0x4c/0x8c canfillinfo+0x1f8/0x434 rtnlfillifinfo+0x8fc/0xbb4 rtnldumpifinfo+0x364/0x448
This is the same class of problem fixed for mcan in commit 91a55c72a821 ("can: mcan: mcangetberrcounter(): don't wake up controller if interface is down").
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.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 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.5-1 - Compensating control
In can_fill_info(), do not call do_get_berr_counter() or otherwise query CAN bus-error counters when the interface is down; avoid waking the controller.
- Compensating control
Userspace must treat the IFLA_CAN_BERR_COUNTER attribute as optional.
Event History
Frequently Asked Questions
Which systems are most likely to be exposed to the reported crash?
The documented trigger is an i.MX8QXP board using a FlexCAN interface that has never been brought up. The platform-specific condition involves gated CAN clocks and the shared IMX_SC_R_CAN_0 power domain.
What action triggers the issue?
Running "ip link show" while the affected FlexCAN interface is down can trigger a netlink query for CAN bus error counters. Reading those counters may access a controller whose power or clocks are not yet available, resulting in a synchronous external abort.
Are down CAN interfaces affected by the fix in any visible way?
Yes. IFLA_CAN_BERR_COUNTER is no longer reported when a CAN interface is down, so userspace must treat this netlink attribute as optional.
Does this change fix the underlying clock-gating problem?
No. The change avoids the bus-error-counter query path for down interfaces, but it does not address the underlying LPCG timing window after pm_runtime_resume_and_get() returns.