Skip to contentSkip to conversation

CVE-2026-97540: net: usb: pegasus: don't rely on id table pointer arithmetic

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

lore
Share & tools
lore
#0 lore raw

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

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

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

net: usb: pegasus: don't rely on id table pointer arithmetic

The current code is broken when dynamic ID is involved; in such cases usb_device_id parameter of probe lives on the heap and the pointer arithmetic will get an index that is wildly out of bound. Instead of keeping a side table for additional information, use driver_info field of the usb_device_id.

The dynamic ID parsing code needs to be updated for this; convert it to just write to the reserved entry for dynamic ID and remove the weird loop.

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

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

	Fixed in 6.12.111 with commit 9425a13960ef38bac237608f25c9ee64ff113086
	Fixed in 6.18.53 with commit 7654812b65047349ea4c111eed42c4315a00e462
	Fixed in 7.2.7 with commit 61b84e964a829d534f24eab4cbd4035d22b52601
	Fixed in 7.3-rc1 with commit ce8101c331956bbd3e20681331dfd22eb7c1c1ea

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

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
drivers/net/usb/pegasus.h

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/9425a13960ef38bac237608f25c9ee64ff113086
	https://git.kernel.org/stable/c/7654812b65047349ea4c111eed42c4315a00e462
	https://git.kernel.org/stable/c/61b84e964a829d534f24eab4cbd4035d22b52601
	https://git.kernel.org/stable/c/ce8101c331956bbd3e20681331dfd22eb7c1c1ea