CVE-2026-64332: USB: ulpi: fix memory leak on registration failure

Greg Kroah-Hartman <[email protected]> Sat, 25 Jul 2026 10:49:09 +0200
Newsgroups org.kernel.vger.linux-cve-announce
Message-ID <2026072514-CVE-2026-64332-f4af@gregkh>
From: Greg Kroah-Hartman <[email protected]>

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

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

USB: ulpi: fix memory leak on registration failure

The allocated device name is never freed on early ULPI device
registration failures.

Fix this by initialising the device structure earlier and releasing the
initial reference whenever registration fails.

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


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

	Issue introduced in 4.2 with commit 289fcff4bcdb1dcc0ce8788b7ea0f58a9e4a495f and fixed in 5.10.261 with commit d5b32f36c50894ac2df8fa184e6f35f3a6665ecd
	Issue introduced in 4.2 with commit 289fcff4bcdb1dcc0ce8788b7ea0f58a9e4a495f and fixed in 5.15.212 with commit 691e61e5d4cfc5a1b061e937f8cbf2126bfc19a0
	Issue introduced in 4.2 with commit 289fcff4bcdb1dcc0ce8788b7ea0f58a9e4a495f and fixed in 6.1.178 with commit 88187a43135c79d0e43573b4d8f880bbb919eceb
	Issue introduced in 4.2 with commit 289fcff4bcdb1dcc0ce8788b7ea0f58a9e4a495f and fixed in 6.6.145 with commit 5c098f20f15db7f9126129686d1c6da2ce8bbeb0
	Issue introduced in 4.2 with commit 289fcff4bcdb1dcc0ce8788b7ea0f58a9e4a495f and fixed in 6.12.96 with commit 624c57147df1977e0d3da53f1da7117861b9cf19
	Issue introduced in 4.2 with commit 289fcff4bcdb1dcc0ce8788b7ea0f58a9e4a495f and fixed in 6.18.39 with commit 1967a7f0cd5c08eb479196daa5aaa4b7b7a7bd04
	Issue introduced in 4.2 with commit 289fcff4bcdb1dcc0ce8788b7ea0f58a9e4a495f and fixed in 7.1.4 with commit e5493c9a98ffe083acf13ac064828ae598ba3c16
	Issue introduced in 4.2 with commit 289fcff4bcdb1dcc0ce8788b7ea0f58a9e4a495f and fixed in 7.2-rc3 with commit 8af6812795869a66e9b26044f455b13deecdb69c

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-64332
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/usb/common/ulpi.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/d5b32f36c50894ac2df8fa184e6f35f3a6665ecd
	https://git.kernel.org/stable/c/691e61e5d4cfc5a1b061e937f8cbf2126bfc19a0
	https://git.kernel.org/stable/c/88187a43135c79d0e43573b4d8f880bbb919eceb
	https://git.kernel.org/stable/c/5c098f20f15db7f9126129686d1c6da2ce8bbeb0
	https://git.kernel.org/stable/c/624c57147df1977e0d3da53f1da7117861b9cf19
	https://git.kernel.org/stable/c/1967a7f0cd5c08eb479196daa5aaa4b7b7a7bd04
	https://git.kernel.org/stable/c/e5493c9a98ffe083acf13ac064828ae598ba3c16
	https://git.kernel.org/stable/c/8af6812795869a66e9b26044f455b13deecdb69c