CVE-2026-31616

Source
https://cve.org/CVERecord?id=CVE-2026-31616
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31616.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-31616
Downstream
Related
Published
2026-04-24T14:42:35.480Z
Modified
2026-06-03T03:54:29.109686039Z
Summary
usb: gadget: f_phonet: fix skb frags[] overflow in pn_rx_complete()
Details

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

usb: gadget: fphonet: fix skb frags[] overflow in pnrx_complete()

A broken/bored/mean USB host can overflow the skbsharedinfo->frags[] array on a Linux gadget exposing a Phonet function by sending an unbounded sequence of full-page OUT transfers.

pnrxcomplete() finalizes the skb only when req->actual < req->length, where req->length is set to PAGESIZE by the gadget. If the host always sends exactly PAGESIZE bytes per transfer, fp->rx.skb will never be reset and each completion will add another fragment via skbaddrxfrag(). Once nrfrags exceeds MAXSKBFRAGS (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").

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31616.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b91cd1440870f7a0649e570498b7b93caf9f781c
Fixed
3d7f7e0c842242878c24b2facff8d6eda23ee1e9
Fixed
b5ec49fa198bd08967a3102bd41f53ccadce72c9
Fixed
7424f0287da73d3d8c5fa5e9d25d26fce762708e
Fixed
9ceff1251904901b0b4e5fe6350fcaffa368ce83
Fixed
c9315ce9da3632c591666a29de82d3e92d46bec1
Fixed
4e476c25bfcab0535ba7c76a903ae77ca8747711
Fixed
bd44ce09b9b569f49ed13e2d87d23d853fc7d6a7
Fixed
66f7471c4042e4eb300e30b5b9d87d1406862673
Fixed
c088d5dd2fffb4de1fb8e7f57751c8b82942180a

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31616.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.32
Fixed
5.10.258
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.209
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.175
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.136
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.83
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.24
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.14
Type
ECOSYSTEM
Events
Introduced
6.20.0
Fixed
7.0.1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31616.json"