CVE-2026-31616
usb: gadget: f_phonet: fix skb frags[] overflow in pn_rx_complete()
Check your servers for CVE-2026-31616
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31616 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: f_phonet: fix skb frags[] overflow in pn_rx_complete()
A broken/bored/mean USB host can overflow the skb_shared_info->frags[] array on a Linux gadget exposing a Phonet function by sending an unbounded sequence of full-page OUT transfers.
pn_rx_complete() finalizes the skb only when req->actual < req->length, where req->length is set to PAGE_SIZE by the gadget. If the host always sends exactly PAGE_SIZE bytes per transfer, fp->rx.skb will never be reset and each completion will add another fragment via skb_add_rx_frag(). Once nr_frags exceeds MAX_SKB_FRAGS (default 17), subsequent frag stores overwrite memory adjacent to the shinfo on the heap.
Drop the skb and account a length error when the frag limit is reached, matching the fix applied in t7xx by commit f0813bcd2d9d ("net: wwan: t7xx: fix potential skb->frags overflow in RX path").
Exploitation
EPSS 0.13%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 2.85% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from b91cd1440870f7a0649e570498b7b93caf9f781c, before 3d7f7e0c842242878c24b2facff8d6eda23ee1e9 affected from b91cd1440870f7a0649e570498b7b93caf9f781c, before b5ec49fa198bd08967a3102bd41f53ccadce72c9 affected from b91cd1440870f7a0649e570498b7b93caf9f781c, before 7424f0287da73d3d8c5fa5e9d25d26fce762708e affected from b91cd1440870f7a0649e570498b7b93caf9f781c, before 9ceff1251904901b0b4e5fe6350fcaffa368ce83 affected from b91cd1440870f7a0649e570498b7b93caf9f781c, before c9315ce9da3632c591666a29de82d3e92d46bec1 affected from b91cd1440870f7a0649e570498b7b93caf9f781c, before 4e476c25bfcab0535ba7c76a903ae77ca8747711 affected from b91cd1440870f7a0649e570498b7b93caf9f781c, before bd44ce09b9b569f49ed13e2d87d23d853fc7d6a7 affected from b91cd1440870f7a0649e570498b7b93caf9f781c, before 66f7471c4042e4eb300e30b5b9d87d1406862673 affected from b91cd1440870f7a0649e570498b7b93caf9f781c, before c088d5dd2fffb4de1fb8e7f57751c8b82942180a
Other versions: unaffected
|
| Linux |
affected 2.6.32 unaffected before 2.6.32 unaffected from 5.10.258 up to and including 5.10.* unaffected from 5.15.209 up to and including 5.15.* unaffected from 6.1.175 up to and including 6.1.* unaffected from 6.6.136 up to and including 6.6.* unaffected from 6.12.83 up to and including 6.12.* unaffected from 6.18.24 up to and including 6.18.* unaffected from 6.19.14 up to and including 6.19.* unaffected from 7.0.1 up to and including 7.0.* unaffected 7.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31616 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31616
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-31616
trivy image --scanners vuln IMAGE | grep CVE-2026-31616
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/3d7f7e0c842242878c24b2facff8d6eda23ee1e9 git.kernel.org
- https://git.kernel.org/stable/c/b5ec49fa198bd08967a3102bd41f53ccadce72c9 git.kernel.org
- https://git.kernel.org/stable/c/7424f0287da73d3d8c5fa5e9d25d26fce762708e git.kernel.org
- https://git.kernel.org/stable/c/9ceff1251904901b0b4e5fe6350fcaffa368ce83 git.kernel.org
- https://git.kernel.org/stable/c/c9315ce9da3632c591666a29de82d3e92d46bec1 git.kernel.org
- https://git.kernel.org/stable/c/4e476c25bfcab0535ba7c76a903ae77ca8747711 git.kernel.org
- https://git.kernel.org/stable/c/bd44ce09b9b569f49ed13e2d87d23d853fc7d6a7 git.kernel.org
- https://git.kernel.org/stable/c/66f7471c4042e4eb300e30b5b9d87d1406862673 git.kernel.org
- https://git.kernel.org/stable/c/c088d5dd2fffb4de1fb8e7f57751c8b82942180a git.kernel.org
Source: the record CVE-2026-31616 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse