Linux Kernel Phonet Gadget USB Fragments Overflow Vulnerability

Vulnerability

A vulnerability in the Linux kernel's USB gadget function for Phonet can lead to a heap overflow. This issue arises when a USB host sends an excessive number of full-page OUT transfers. The Phonet gadget does not properly reset the received socket buffer (skb) when the host consistently transmits PAGE_SIZE bytes, causing an accumulation of fragments. Once the number of fragments exceeds the maximum limit, it overwrites adjacent memory on the heap. The vulnerability has been addressed by modifying the fragment handling to prevent overflow.

Impact

Exploitation of this vulnerability can lead to a heap overflow, allowing for potential memory corruption.

Reproduction

The vulnerability can be reproduced by connecting a USB host that sends continuous full-page OUT transfers to a device running the affected Linux kernel version with the Phonet gadget enabled. Monitor the device's memory management to observe the fragment overflow once the maximum fragment limit is exceeded.

Remediation

Users can upgrade to the latest stable version of the Linux kernel where this vulnerability has been fixed.

Added: Apr 24, 2026, 5:30 PM
Updated: Apr 24, 2026, 5:30 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
3.8
exploitability
3.9
remediation
7.7
relevance
6.6
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.