CVE-2025-40095

HIGHCVSS 7.8/10EPSS 0.19%

Last modified

CVE-2025-40095 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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.. EPSS estimates a 0.19% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
7.8/10

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
0.19%

8.6th percentile

Probability of exploitation in the next 30 days. Learn more

Affected Software

Source: CNA advisory (CVE.org). NVD analysis pending.

VendorProductVersions
LinuxLinux>= 45fe3b8e5342cd1ce307099459c74011d8e01986, < ef81226bb1f8b6e761cd0b53d2696e9c1bc955d1; >= 45fe3b8e5342cd1ce307099459c74011d8e01986, < 5f65c8ad8c7292ed7e3716343fcd590a51818cc3; >= 45fe3b8e5342cd1ce307099459c74011d8e01986, < 380353c3a92be7d928e6f973bd065c5b79755ac3; >= 45fe3b8e5342cd1ce307099459c74011d8e01986, < a8366263b7e5b663d7fb489d3a9ba1e2600049a6; >= 45fe3b8e5342cd1ce307099459c74011d8e01986, < 08228941436047bdcd35a612c1aec0912a29d8cd
LinuxLinux2.6.27

References

Timeline

Published
Last Modified
Status
Deferred

Frequently Asked Questions

What is CVE-2025-40095?
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.
How severe is CVE-2025-40095?
CVE-2025-40095 has a CVSS score of 7.8/10 (HIGH severity). The EPSS model estimates a 0.19% probability of exploitation in the next 30 days.
How do I fix CVE-2025-40095?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2025

Are you affected by CVE-2025-40095?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST