CVE-2026-31616: usb: gadget: f_phonet: fix skb frags[] overflow in pn_rx_complete()

Published Apr 24, 2026
·
Updated

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

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

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").

Affected Software

7 affected componentsFixes available
Linux Linux kernel (usb gadget f_phonet)
Linux Linux kernel>=2.6.32<6.6.136
Linux Linux kernel>=6.7<6.12.83
Linux Linux kernel>=6.13<6.18.24
Linux Linux kernel>=6.19<6.19.14
Linux Linux kernel>=7.0<7.0.1
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1
  2. Upgrade

    Upgrade Linux kernel usb gadget f_phonet to a version that resolves this vulnerability.

    Patch f0813bcd2d9d

Event History

Apr 24, 2026
CVE Published
via MITRE·02:42 PM
Data Sourced
via MITRE·02:42 PM
Description
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 26, 2026
Data Sourced
via Microsoft·08:07 AM
DescriptionSeverityWeakness

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2026-31616?

CVE-2026-31616 is considered a high severity vulnerability due to its potential to allow a malicious USB host to cause an overflow in the skb_shared_info's frags array.

2

How do I fix CVE-2026-31616?

To fix CVE-2026-31616, update the Linux kernel and ensure you are using a patched version that addresses the skb frags array overflow issue.

3

What type of systems are affected by CVE-2026-31616?

CVE-2026-31616 affects Linux kernel systems utilizing the usb gadget f_phonet feature.

4

What is the impact of CVE-2026-31616?

The impact of CVE-2026-31616 includes potential system instability or crashes due to buffer overflow caused by malicious USB hosts.

5

When was CVE-2026-31616 disclosed?

CVE-2026-31616 was disclosed in 2026 as part of ongoing security updates to the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203