Skip to main content

Linux Kernel EUVDEUVD-2026-25509

| CVE-2026-31616 MEDIUM
Memory Leak (CWE-401)
2026-04-24 Linux GHSA-h96r-xqwg-w67w
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker gains USB host control
  2. Delivery
    Connects malicious host to gadget USB port
  3. Exploit
    Sends unbounded full-page OUT transfers
  4. Install
    pn_rx_complete() adds fragments without reset
  5. C2
    Fragment count exceeds MAX_SKB_FRAGS
  6. Execute
    Heap memory corruption
  7. Impact
    Denial of service via kernel panic

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
Exploitation Conditions

The vulnerability requires: (1) the Linux kernel to be built with USB_GADGET and USB_PHONET configuration options enabled (CONFIG_USB_PHONET=m or =y); (2) a Phonet gadget function actively configured and exposed on a USB endpoint; (3) attacker control over a USB host connected to the gadget's USB port (achieves attacker's position as malicious USB host-not a remote attacker, but local/device-connected); (4) knowledge of the target's PAGE_SIZE value (almost always 4096 on ARM/x86, but may vary on other architectures); (5) ability to send crafted OUT transfers of exactly PAGE_SIZE bytes without triggering intervening finalization logic. The attack is NOT blocked by standard USB authentication mechanisms, as Phonet is typically exported without credential validation. Exploitation does NOT require user interaction on the gadget side (UI:N per CVSS). Non-default configurations that defeat exploitation include: kernel built without USB_PHONET support, Phonet gadget not registered in configfs, or firewall/USB host policies that prevent arbitrary OUT transfers. Devices not functioning as USB gadgets (standard Linux hosts/servers) are NOT affected; the USB host role is required.

Impact

This vulnerability presents low-to-moderate real-world risk despite affecting a core kernel component. The CVSS score of 5.5 (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) accurately reflects the attack vector: it requires local/device-level access to a USB host interface and valid credentials or USB host privileges (PR:L). The EPSS score of 0.02% (5th percentile) indicates minimal likelihood of widespread automated exploitation, consistent with the specialized nature of the attack-an attacker must have already compromised or control a USB host device connected to a Linux gadget system. The vulnerability is NOT actively exploited per CISA KEV at analysis time, and no public POC is documented. However, the fix was applied across four stable kernel series (6.12.83, 6.18.24, 6.19.14, 7.0.1) with identical commit hashes, signaling upstream maintainer confidence in the severity. The impact is denial of service via heap corruption, not privilege escalation or code execution-attackers cannot escalate from local USB host to kernel execution, limiting practical risk to gadget availability. Organizations deploying Linux gadgets (phones, tablets, IoT devices) with Phonet support in untrusted USB environments (public charging stations, airport kiosks) face higher risk; enterprise server environments exposing Phonet over USB are extremely rare. The CVSS and EPSS signals align: genuine but low-probability vulnerability in a niche gadget function.

Exploit ScenarioDerived

An attacker with physical access to a Linux gadget device (e.g., smartphone or IoT device acting as a USB device) connects a malicious USB host (implemented via a development board, modified USB hub, or compromised computer) to the gadget's USB port. The attacker sends a series of OUT transfers, each exactly PAGE_SIZE (typically 4096) bytes in length, to the endpoint serviced by the Phonet function. The pn_rx_complete() callback handler processes each transfer, and since req->actual equals req->length, the skb is never finalized and released. After 17 consecutive transfers, the fragment array overflows, corrupting adjacent heap memory and triggering a kernel panic or denial of service. The gadget becomes unresponsive, requiring a hard reboot to restore functionality.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 28, 2026

Memory corruption via skb fragment array overflow in the USB Phonet gadget driver allows local attackers with device-level USB host capabilities to cause denial of service. The vulnerability exists in pn_rx_complete() which fails to enforce the MAX_SKB_FRAGS limit when processing unbounded full-page OUT transfers, causing heap memory corruption adjacent to the skb_shared_info structure. A malicious or misconfigured USB host sending continuous PAGE_SIZE byte transfers triggers the flaw in gadgets exposing the Phonet function, confirmed fixed in Linux 6.12.83, 6.18.24, 6.19.14, and 7.0.1.

RemediationAI

Vendor-released patches are available in stable kernel versions 6.12.83, 6.18.24, 6.19.14, and 7.0.1. Immediately upgrade to one of these patched versions or the latest stable branch. The upstream fix (referenced at https://git.kernel.org/stable/c/c088d5dd2fffb4de1fb8e7f57751c8b82942180a and confirmed by https://git.kernel.org/stable/c/9ceff1251904901b0b4e5fe6350fcaffa368ce83) implements bounds checking on the skb fragment count in pn_rx_complete(), dropping the skb and logging a length error when MAX_SKB_FRAGS is exceeded. For organizations unable to patch immediately, disable the USB Phonet gadget function by setting CONFIG_USB_PHONET=n at kernel build time or removing the phonet.ko module on deployed systems-this eliminates the attack surface entirely with no functional impact unless Phonet over USB is actively used. Alternatively, restrict USB device access via Physical Device Access Controls (PDOs) or SELinux policies limiting ioctl access to /sys/bus/usb/devices/ and the gadget configuration interface; however, this is less reliable than patching. Test patches thoroughly in non-production gadget environments before deployment, as USB gadget code changes carry inherent stability risks.

Affected VersionsENISA

Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <66f7471c4042e4eb300e30b5b9d87d1406862673
Linux patch: 7.0.1
Linux patch: 6.12.83
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <c9315ce9da3632c591666a29de82d3e92d46bec1
Linux patch: 6.19.14
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <bd44ce09b9b569f49ed13e2d87d23d853fc7d6a7
Linux patch: 6.18.24
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <4e476c25bfcab0535ba7c76a903ae77ca8747711

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Linux kernel USB gadget subsystem provides a Phonet function (f_phonet) that processes incoming USB transfers via the pn_rx_complete() callback handler. The vulnerability resides in the receive path where skb_add_rx_frag() accumulates fragments from consecutive full-page OUT transfers without validating the fragment count against MAX_SKB_FRAGS (default value 17, defined in include/linux/skbuff.h). The skb_shared_info structure stores fragments in a frags[] array sized for MAX_SKB_FRAGS entries; exceeding this limit via unbounded skb_add_rx_frag() calls causes writes beyond allocated bounds on the heap. The root cause (CWE-401: Missing Release of Memory after Effective Lifetime) stems from improper cleanup logic: pn_rx_complete() only finalizes (releases) the skb when req->actual < req->length, but when a USB host deliberately sends exactly PAGE_SIZE bytes per transfer (matching req->length), the skb is never reset between completions, allowing fragments to accumulate indefinitely.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
SUSE MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
CVSS changed
Apr 28, 2026 - 17:22 NVD
5.5 (MEDIUM)
Patch released
Apr 28, 2026 - 17:21 nvd
Patch available
Patch available
Apr 24, 2026 - 16:16 EUVD
CVE Published
Apr 24, 2026 - 14:42 nvd
MEDIUM 5.5

DescriptionNVD

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

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy