CVE-2026-23021: net: usb: pegasus: fix memory leak in update_eth_regs_async()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: usb: pegasus: fix memory leak in update_eth_regs_async()
When asynchronously writing to the device registers and if usb_submit_urb() fail, the code fail to release allocated to this point resources.
The Linux kernel CVE team has assigned CVE-2026-23021 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.10 with commit 323b34963d113efb566635f43858f40cce01d5f9 and fixed in 5.10.248 with commit 5397ea6d21c35a17707e201a60761bdee00bcc4e Issue introduced in 3.10 with commit 323b34963d113efb566635f43858f40cce01d5f9 and fixed in 5.15.198 with commit a40af9a2904a1ab8ce61866ebe2a894ef30754ba Issue introduced in 3.10 with commit 323b34963d113efb566635f43858f40cce01d5f9 and fixed in 6.1.161 with commit ac5d92d2826dec51e5d4c6854865bc5817277452 Issue introduced in 3.10 with commit 323b34963d113efb566635f43858f40cce01d5f9 and fixed in 6.6.121 with commit 93f18eaa190374e0f2d253e3b1a65cee19a7abe6 Issue introduced in 3.10 with commit 323b34963d113efb566635f43858f40cce01d5f9 and fixed in 6.12.66 with commit 471dfb97599eec74e0476046b3ef8e7037f27b34 Issue introduced in 3.10 with commit 323b34963d113efb566635f43858f40cce01d5f9 and fixed in 6.18.6 with commit ce6eef731aba23a988decea1df3b08cf978f7b01 Issue introduced in 3.10 with commit 323b34963d113efb566635f43858f40cce01d5f9 and fixed in 6.19-rc5 with commit afa27621a28af317523e0836dad430bec551eb54
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-23021
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/usb/pegasus.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/5397ea6d21c35a17707e201a60761bdee00bcc4e https://git.kernel.org/stable/c/a40af9a2904a1ab8ce61866ebe2a894ef30754ba https://git.kernel.org/stable/c/ac5d92d2826dec51e5d4c6854865bc5817277452 https://git.kernel.org/stable/c/93f18eaa190374e0f2d253e3b1a65cee19a7abe6 https://git.kernel.org/stable/c/471dfb97599eec74e0476046b3ef8e7037f27b34 https://git.kernel.org/stable/c/ce6eef731aba23a988decea1df3b08cf978f7b01 https://git.kernel.org/stable/c/afa27621a28af317523e0836dad430bec551eb54