Skip to contentSkip to conversation

CVE-2026-46109: usb: ulpi: fix memory leak on ulpi_register() error paths

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

lore
Share & tools
lore
#0 lore raw

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

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

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

usb: ulpi: fix memory leak on ulpi_register() error paths

Commit 01af542392b5 ("usb: ulpi: fix double free in ulpi_register_interface() error path") removed kfree(ulpi) from ulpi_register_interface() to fix a double-free when device_register() fails.

But when ulpi_of_register() or ulpi_read_id() fail before device_register() is called, the ulpi allocation is leaked.

Add kfree(ulpi) on both error paths to properly clean up the allocation.

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

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

	Issue introduced in 6.6.134 with commit aaeae6533d77e6ed4def85baec01e2815ebbef61 and fixed in 6.6.140 with commit b0c0d44adb55c66663886cb6e30ee92cbb0f5385
	Issue introduced in 6.12.81 with commit 8763f8317bb389aded32a32b08f6751cfff657d2 and fixed in 6.12.88 with commit be2c1d825f54277472c87019e82013ac534ddc4c
	Issue introduced in 6.18.22 with commit 38c28fe25611099230f0965c925499bfcf46a795 and fixed in 6.18.30 with commit 2a71e01b2cf9b4329ff67102c1bea7448c2a2d2d
	Issue introduced in 7.0 with commit 01af542392b5d41fd659d487015a71f627accce3 and fixed in 7.0.7 with commit f30ccfc2985590b33a23a3d8bed7ca16c0af551b
	Issue introduced in 7.0 with commit 01af542392b5d41fd659d487015a71f627accce3 and fixed in 7.1-rc3 with commit 0b9fcab1b8608d429e5f239afb197de928d4de7d
	Issue introduced in 5.10.253 with commit 2f70ba9dae13a190673cc3f9b4aad52179738f60
	Issue introduced in 5.15.203 with commit ee248e6e941e4f2e634df2bd43e5f1ef810ab6df
	Issue introduced in 6.1.168 with commit 272a9b26c336a295e4e209157fed809706c1b1f7
	Issue introduced in 6.19.12 with commit a6e5461f076c2ef63159f18e5cdbd30b50f0bc15

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-46109

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/b0c0d44adb55c66663886cb6e30ee92cbb0f5385
	https://git.kernel.org/stable/c/be2c1d825f54277472c87019e82013ac534ddc4c
	https://git.kernel.org/stable/c/2a71e01b2cf9b4329ff67102c1bea7448c2a2d2d
	https://git.kernel.org/stable/c/f30ccfc2985590b33a23a3d8bed7ca16c0af551b
	https://git.kernel.org/stable/c/0b9fcab1b8608d429e5f239afb197de928d4de7d