Linux Kernel up to 6.17.7 ffs_func_eps_enable null pointer dereference

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
4.6$0-$5k0.00

Summaryinfo

A vulnerability was found in Linux Kernel up to 6.17.7. It has been rated as critical. The affected element is the function ffs_func_eps_enable. This manipulation causes null pointer dereference. This vulnerability is tracked as CVE-2025-40315. No exploit exists. Upgrading the affected component is advised.

Detailsinfo

A vulnerability classified as critical was found in Linux Kernel up to 6.17.7. Affected by this vulnerability is the function ffs_func_eps_enable. The manipulation with an unknown input leads to a null pointer dereference vulnerability. The CWE definition for the vulnerability is CWE-476. A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit. As an impact it is known to affect availability. The summary by CVE is:

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_fs: Fix epfile null pointer access after ep enable. A race condition occurs when ffs_func_eps_enable() runs concurrently with ffs_data_reset(). The ffs_data_clear() called in ffs_data_reset() sets ffs->epfiles to NULL before resetting ffs->eps_count to 0, leading to a NULL pointer dereference when accessing epfile->ep in ffs_func_eps_enable() after successful usb_ep_enable(). The ffs->epfiles pointer is set to NULL in both ffs_data_clear() and ffs_data_close() functions, and its modification is protected by the spinlock ffs->eps_lock. And the whole ffs_func_eps_enable() function is also protected by ffs->eps_lock. Thus, add NULL pointer handling for ffs->epfiles in the ffs_func_eps_enable() function to fix issues

It is possible to read the advisory at git.kernel.org. This vulnerability is known as CVE-2025-40315 since 04/16/2025. The exploitation appears to be difficult. Technical details of the vulnerability are known, but there is no available exploit.

The vulnerability scanner Nessus provides a plugin with the ID 277728 (Linux Distros Unpatched Vulnerability : CVE-2025-40315), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 5.4.302, 5.10.247, 5.15.197, 6.1.159, 6.6.117, 6.12.58 or 6.17.8 eliminates this vulnerability. Applying the patch b00d2572c16e8e59e979960d3383c2ae9cebd195/1c0dbd240be3f87cac321b14e17979b7e9cb6a8f/9ec40fba7357df2d36f4c2e2f3b9b1a4fba0a272/c53e90563bc148e4e0ad09fe130ba2246d426ea6/fc1141a530dfc91f0ee19b7f422a2d24829584bc/d62b808d5c68a931ad0849a00a5e3be3dd7e0019/30880e9df27332403dd638a82c27921134b3630b/cfd6f1a7b42f62523c96d9703ef32b0dbc495ba4 is able to eliminate this problem. The bugfix is ready for download at git.kernel.org. The best possible mitigation is suggested to be upgrading to the latest version.

The vulnerability is also documented in the databases at Tenable (277728) and CERT Bund (WID-SEC-2025-2756). Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Affected

  • Google Container-Optimized OS
  • Debian Linux
  • Amazon Linux 2
  • Red Hat Enterprise Linux
  • Ubuntu Linux
  • SUSE Linux
  • Oracle Linux
  • NetApp FAS
  • NetApp AFF
  • SUSE openSUSE
  • RESF Rocky Linux
  • Open Source Linux Kernel
  • Microsoft Azure Linux

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 4.8
VulDB Meta Temp Score: 4.6

VulDB Base Score: 4.8
VulDB Temp Score: 4.6
VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Null pointer dereference
CWE: CWE-476 / CWE-404
CAPEC: 🔒
ATT&CK: 🔒

Physical: No
Local: No
Remote: Partially

Availability: 🔒
Status: Not defined

EPSS Score: 🔒
EPSS Percentile: 🔒

Price Prediction: 🔍
Current Price Estimation: 🔒

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 277728
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2025-40315

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: Kernel 5.4.302/5.10.247/5.15.197/6.1.159/6.6.117/6.12.58/6.17.8
Patch: b00d2572c16e8e59e979960d3383c2ae9cebd195/1c0dbd240be3f87cac321b14e17979b7e9cb6a8f/9ec40fba7357df2d36f4c2e2f3b9b1a4fba0a272/c53e90563bc148e4e0ad09fe130ba2246d426ea6/fc1141a530dfc91f0ee19b7f422a2d24829584bc/d62b808d5c68a931ad0849a00a5e3be3dd7e0019/30880e9df27332403dd638a82c27921134b3630b/cfd6f1a7b42f62523c96d9703ef32b0dbc495ba4

Timelineinfo

04/16/2025 CVE reserved
12/08/2025 +236 days Advisory disclosed
12/08/2025 +0 days VulDB entry created
02/23/2026 +77 days VulDB entry last update

Sourcesinfo

Vendor: kernel.org

Advisory: git.kernel.org
Status: Confirmed

CVE: CVE-2025-40315 (🔒)
GCVE (CVE): GCVE-0-2025-40315
GCVE (VulDB): GCVE-100-334747
CERT Bund: WID-SEC-2025-2756 - Linux Kernel: Mehrere Schwachstellen ermöglichen Denial of Service

Entryinfo

Created: 12/08/2025 06:35
Updated: 02/23/2026 08:31
Changes: 12/08/2025 06:35 (58), 12/09/2025 11:52 (2), 01/04/2026 15:14 (7), 01/23/2026 07:50 (1), 02/23/2026 08:31 (1)
Complete: 🔍
Cache ID: 216::103

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!