CVE-2026-64350: usb: cdnsp: fix stream context array leak in cdnsp_alloc_stream_info()

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

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

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

usb: cdnsp: fix stream context array leak in cdnsp_alloc_stream_info()

cdnsp_alloc_stream_info() allocates stream_info->stream_ctx_array with
cdnsp_alloc_stream_ctx(). If a later stream ring allocation or stream
mapping update fails, the error path frees the allocated stream rings
and stream_rings array, but leaves stream_ctx_array allocated.

Free the stream context array before falling through to the stream_rings
cleanup path.

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


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

	Issue introduced in 5.12 with commit 3d82904559f4f5a2622db1b21de3edf2eded7664 and fixed in 5.15.212 with commit 37283f5a47127fbdea567749a2110766af53d18d
	Issue introduced in 5.12 with commit 3d82904559f4f5a2622db1b21de3edf2eded7664 and fixed in 6.1.178 with commit cb8e9391b7f4f77d112c51910cd7c355a337ef76
	Issue introduced in 5.12 with commit 3d82904559f4f5a2622db1b21de3edf2eded7664 and fixed in 6.6.145 with commit fde3c095e1d48e0ac3ab8bc32905da42fe58a36a
	Issue introduced in 5.12 with commit 3d82904559f4f5a2622db1b21de3edf2eded7664 and fixed in 6.12.96 with commit d9643bbe93a6aee24edee1a86e0303aa74bcd320
	Issue introduced in 5.12 with commit 3d82904559f4f5a2622db1b21de3edf2eded7664 and fixed in 6.18.39 with commit c00826e87bb75e14e0381b05da5f18ffd0241ab6
	Issue introduced in 5.12 with commit 3d82904559f4f5a2622db1b21de3edf2eded7664 and fixed in 7.1.4 with commit 963075c4da0cd43b3d17b107c355e1eb0ee64a58
	Issue introduced in 5.12 with commit 3d82904559f4f5a2622db1b21de3edf2eded7664 and fixed in 7.2-rc3 with commit 3348f444a4ce43dd5c2d1aa41634cb6eff33aa64

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-64350
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/cdns3/cdnsp-mem.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/37283f5a47127fbdea567749a2110766af53d18d
	https://git.kernel.org/stable/c/cb8e9391b7f4f77d112c51910cd7c355a337ef76
	https://git.kernel.org/stable/c/fde3c095e1d48e0ac3ab8bc32905da42fe58a36a
	https://git.kernel.org/stable/c/d9643bbe93a6aee24edee1a86e0303aa74bcd320
	https://git.kernel.org/stable/c/c00826e87bb75e14e0381b05da5f18ffd0241ab6
	https://git.kernel.org/stable/c/963075c4da0cd43b3d17b107c355e1eb0ee64a58
	https://git.kernel.org/stable/c/3348f444a4ce43dd5c2d1aa41634cb6eff33aa64