Skip to contentSkip to conversation

CVE-2026-31623: net: usb: cdc-phonet: fix skb frags[] overflow in rx_complete()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 24

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: cdc-phonet: fix skb frags[] overflow in rx_complete()

A malicious USB device claiming to be a CDC Phonet modem can overflow the skb_shared_info->frags[] array by sending an unbounded sequence of full-page bulk transfers.

Drop the skb and increment the length error when the frag limit is reached. This matches the same fix that commit f0813bcd2d9d ("net:
wwan: t7xx: fix potential skb->frags overflow in RX path") did for the t7xx driver.

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

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

	Fixed in 6.12.83 with commit a23b1b1aaf41e174181d5853a70e65d4d01e648c
	Fixed in 6.18.24 with commit c183d5775129a0a7495bd61a6e57ec230dcf01e5
	Fixed in 6.19.14 with commit ebf75c6301c4972a87542ebf2d994c6391eb5d46
	Fixed in 7.0.1 with commit 9989938d13cc5ba8447eeed5a61acfcf61bc6801

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

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/cdc-phonet.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/a23b1b1aaf41e174181d5853a70e65d4d01e648c
	https://git.kernel.org/stable/c/c183d5775129a0a7495bd61a6e57ec230dcf01e5
	https://git.kernel.org/stable/c/ebf75c6301c4972a87542ebf2d994c6391eb5d46
	https://git.kernel.org/stable/c/9989938d13cc5ba8447eeed5a61acfcf61bc6801
	https://git.kernel.org/stable/c/600dc40554dc5ad1e6f3af51f700228033f43ea7