CVE-2025-40093

usb: gadget: f_ecm: Refactor bind path to use __free()

HIGH
7.8
CVSS Score
Published: October 30, 2025 at 09:48 AM UTC
Updated: October 19, 2026 at 09:10 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_ecm: Refactor bind path to use __free() After an bind/unbind cycle, the ecm->notify_req is left stale. If a subsequent bind fails, the unified error label attempts to free this stale request, leading to a NULL pointer dereference when accessing ep->ops->free_request. Refactor the error handling in the bind path to use the __free() automatic cleanup mechanism.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.27da741b8c56d612b5dd26ffa31341911a5fea23ee
Vendor states this is fixed in 070f341d86cf2c098d63e484a86c7c1d2696a868 (fixed)
Vendor states this is fixed in 15b9faf53ba8719700596e7ef78879ce200e8c2e (fixed)
Vendor states this is fixed in 42988380ac67c76bb9dff8f77d7ef3eefd50b7b5 (fixed)
Vendor states this is fixed in 4630c68bade82f087eaaab22e9a361da2f18d139 (fixed)
Vendor states this is fixed in d3745aaef19198d0c81637a7dd50ef53c4f879b7 (fixed)
Vendor states this is fixed in 2.6.27 (unaffected)
Vendor states this is fixed in 6.1.158 (unaffected)
Vendor states this is fixed in 6.12.55 (unaffected)
Vendor states this is fixed in 6.17.5 (unaffected)
Vendor states this is fixed in 6.18 (unaffected)
Vendor states this is fixed in 6.6.114 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card