CVE-2025-40095
Unknown Unknown - Not Provided

BaseFortify

Vulnerability report for CVE-2025-40095, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2025-10-30

Last updated on: 2025-10-30

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_rndis: Refactor bind path to use __free() After an bind/unbind cycle, the rndis->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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2025-10-30
Last Modified
2025-10-30
Generated
2026-07-06
AI Q&A
2025-10-30
EPSS Evaluated
2026-07-05
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability occurs in the Linux kernel's USB gadget function f_rndis. After a bind/unbind cycle, a stale notify request (rndis->notify_req) remains. If a subsequent bind operation fails, the error handling code tries to free this stale request, which leads to a NULL pointer dereference when accessing ep->ops->free_request. This can cause a crash or instability in the kernel. The fix refactors the bind path to use an automatic cleanup mechanism (__free()) to prevent this issue.

Impact Analysis

This vulnerability can cause a NULL pointer dereference in the Linux kernel, potentially leading to a kernel crash or system instability. This could result in denial of service or unexpected behavior on systems using the affected USB gadget functionality.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-40095. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart