[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2026013120-CVE-2026-23031-9e82@gregkh>
Date: Sat, 31 Jan 2026 12:44:31 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2026-23031: can: gs_usb: gs_usb_receive_bulk_callback(): fix URB memory leak
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
can: gs_usb: gs_usb_receive_bulk_callback(): fix URB memory leak
In gs_can_open(), the URBs for USB-in transfers are allocated, added to the
parent->rx_submitted anchor and submitted. In the complete callback
gs_usb_receive_bulk_callback(), the URB is processed and resubmitted. In
gs_can_close() the URBs are freed by calling
usb_kill_anchored_urbs(parent->rx_submitted).
However, this does not take into account that the USB framework unanchors
the URB before the complete function is called. This means that once an
in-URB has been completed, it is no longer anchored and is ultimately not
released in gs_can_close().
Fix the memory leak by anchoring the URB in the
gs_usb_receive_bulk_callback() to the parent->rx_submitted anchor.
The Linux kernel CVE team has assigned CVE-2026-23031 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.16 with commit d08e973a77d128b25e01a08c34d89593fdf222da and fixed in 6.6.122 with commit f905bcfa971edb89e398c98957838d8c6381c0c7
Issue introduced in 3.16 with commit d08e973a77d128b25e01a08c34d89593fdf222da and fixed in 6.12.67 with commit 08624b7206ddb9148eeffc2384ebda2c47b6d1e9
Issue introduced in 3.16 with commit d08e973a77d128b25e01a08c34d89593fdf222da and fixed in 6.18.7 with commit 9f669a38ca70839229b7ba0f851820850a2fe1f7
Issue introduced in 3.16 with commit d08e973a77d128b25e01a08c34d89593fdf222da and fixed in 6.19-rc6 with commit 7352e1d5932a0e777e39fa4b619801191f57e603
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-23031
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/gs_usb.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/f905bcfa971edb89e398c98957838d8c6381c0c7
https://git.kernel.org/stable/c/08624b7206ddb9148eeffc2384ebda2c47b6d1e9
https://git.kernel.org/stable/c/9f669a38ca70839229b7ba0f851820850a2fe1f7
https://git.kernel.org/stable/c/7352e1d5932a0e777e39fa4b619801191f57e603
Powered by blists - more mailing lists