Skip to contentSkip to conversation

CVE-2026-46103: can: ucan: fix devres lifetime

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

can: ucan: fix devres lifetime

USB drivers bind to USB interfaces and any device managed resources should have their lifetime tied to the interface rather than parent USB device. This avoids issues like memory leaks when drivers are unbound without their devices being physically disconnected (e.g. on probe deferral or configuration changes).

Fix the control message buffer lifetime so that it is released on driver unbind.

The Linux kernel CVE team has assigned CVE-2026-46103 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.19 with commit 9f2d3eae88d26c29d96e42983b755940d9169cd9 and fixed in 6.6.140 with commit 4b7d07747400cfd7eff1ba7b8b5a7c8d5a58f705
	Issue introduced in 4.19 with commit 9f2d3eae88d26c29d96e42983b755940d9169cd9 and fixed in 6.12.86 with commit 10b7b676b78a7bd888d19729b459aad7fc1f428b
	Issue introduced in 4.19 with commit 9f2d3eae88d26c29d96e42983b755940d9169cd9 and fixed in 6.18.27 with commit c524c124e3094d2de12235a513854c03d06a2b58
	Issue introduced in 4.19 with commit 9f2d3eae88d26c29d96e42983b755940d9169cd9 and fixed in 7.0.4 with commit c0d3ccc6929e4509076df8f30a4fb1dc5018b0ae
	Issue introduced in 4.19 with commit 9f2d3eae88d26c29d96e42983b755940d9169cd9 and fixed in 7.1-rc1 with commit fed4626501c871890da287bec62a96e52da1af89

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-46103

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/net/can/usb/ucan.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/4b7d07747400cfd7eff1ba7b8b5a7c8d5a58f705
	https://git.kernel.org/stable/c/10b7b676b78a7bd888d19729b459aad7fc1f428b
	https://git.kernel.org/stable/c/c524c124e3094d2de12235a513854c03d06a2b58
	https://git.kernel.org/stable/c/c0d3ccc6929e4509076df8f30a4fb1dc5018b0ae
	https://git.kernel.org/stable/c/fed4626501c871890da287bec62a96e52da1af89