CVE-2026-31760: gpib: lpvo_usb: fix memory leak on disconnect
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
gpib: lpvo_usb: fix memory leak on disconnect
The driver iterates over the registered USB interfaces during GPIB attach and takes a reference to their USB devices until a match is found. These references are never released which leads to a memory leak when devices are disconnected.
Fix the leak by dropping the unnecessary references.
The Linux kernel CVE team has assigned CVE-2026-31760 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.13 with commit fce79512a96afacbe297ba3c5c2f7ed34944540d and fixed in 6.18.22 with commit 21f942879f86108b300a23683e67483f8c358fc7 Issue introduced in 6.13 with commit fce79512a96afacbe297ba3c5c2f7ed34944540d and fixed in 6.19.12 with commit 706f4fe2dacc95d65e7c8dff321711f024bb8d20 Issue introduced in 6.13 with commit fce79512a96afacbe297ba3c5c2f7ed34944540d and fixed in 7.0 with commit 5cefb52c1af6f69ea719e42788f6ec6a087eb74c
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-31760
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/gpib/lpvo_usb_gpib/lpvo_usb_gpib.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/21f942879f86108b300a23683e67483f8c358fc7 https://git.kernel.org/stable/c/706f4fe2dacc95d65e7c8dff321711f024bb8d20 https://git.kernel.org/stable/c/5cefb52c1af6f69ea719e42788f6ec6a087eb74c