Skip to contentSkip to conversation

CVE-2026-98597: net: usb: sr9700: include receive overhead in the length check

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

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: sr9700: include receive overhead in the length check

The receive fixup subtracts the Ethernet CRC from the reported packet length, but compares that payload length against the whole remaining receive buffer. The following copy starts after the three-byte header, and the cursor advance consumes both that header and the four-byte CRC.

Require the payload to fit after SR_RX_OVERHEAD before copying it or advancing to the next packet. The loop already ensures that the remaining buffer is larger than the overhead, so the subtraction is safe.

The issue was found by our static-analysis tool.

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

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

	Issue introduced in 3.12 with commit c9b37458e95629b1d1171457afdcc1bf1eb7881d and fixed in 5.10.271 with commit 92d88c88390fc62444c00a1a22078f838e03891f
	Issue introduced in 3.12 with commit c9b37458e95629b1d1171457afdcc1bf1eb7881d and fixed in 5.15.222 with commit baf07d5153d3af8f98e65e2d3566bc0d50c4e3ac
	Issue introduced in 3.12 with commit c9b37458e95629b1d1171457afdcc1bf1eb7881d and fixed in 6.1.189 with commit 8488779d9bddbdb33588c9fc2c0657a3da773f61
	Issue introduced in 3.12 with commit c9b37458e95629b1d1171457afdcc1bf1eb7881d and fixed in 6.6.158 with commit e1f5b74edccf4c9b671b6bce4435a98746fe5167
	Issue introduced in 3.12 with commit c9b37458e95629b1d1171457afdcc1bf1eb7881d and fixed in 6.12.112 with commit 9b59b00890c5dea355b4cc8795ab8eeafc044e48
	Issue introduced in 3.12 with commit c9b37458e95629b1d1171457afdcc1bf1eb7881d and fixed in 6.18.55 with commit 6ab6c9d120b30c94579192ef83a581a3dda6d79c
	Issue introduced in 3.12 with commit c9b37458e95629b1d1171457afdcc1bf1eb7881d and fixed in 7.2.9 with commit 05b442709bd5256c6c0e11fe56b9a0cb2455c245
	Issue introduced in 3.12 with commit c9b37458e95629b1d1171457afdcc1bf1eb7881d and fixed in 7.3-rc5 with commit c06bde80ae7a7b595732f7cabcb92cf08db9d56a

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

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/sr9700.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/92d88c88390fc62444c00a1a22078f838e03891f
	https://git.kernel.org/stable/c/baf07d5153d3af8f98e65e2d3566bc0d50c4e3ac
	https://git.kernel.org/stable/c/8488779d9bddbdb33588c9fc2c0657a3da773f61
	https://git.kernel.org/stable/c/e1f5b74edccf4c9b671b6bce4435a98746fe5167
	https://git.kernel.org/stable/c/9b59b00890c5dea355b4cc8795ab8eeafc044e48
	https://git.kernel.org/stable/c/6ab6c9d120b30c94579192ef83a581a3dda6d79c
	https://git.kernel.org/stable/c/05b442709bd5256c6c0e11fe56b9a0cb2455c245
	https://git.kernel.org/stable/c/c06bde80ae7a7b595732f7cabcb92cf08db9d56a