CVE-2025-40315 — usb: gadget: f_fs: Fix epfile null pointer access after ep enable.
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
Who exploits it and how urgent it is
A 0–100 score combining confirmed exploitation, ransomware and APT use, public exploits, EPSS and severity.
How the score was calculated
- EPSS 0.2% (30-day exploitation probability)+1
The score orders the patch queue; it does not replace your asset context (internet exposure, criticality, compensating controls).
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the sources call it.
Remediation
Fixes and mitigations documented by the sources — linked to the original advisory.
No fix documented by the sources we poll. That does not mean none exists: check the vendor advisory.
First 24 hours
Ordered from the record’s own fields — exposure first, because you cannot patch what you have not found. A rule-generated starting point.
- Identify exposed assets running the affected vendor/product/version combinations (Linux Linux).
- No fix documented in the sources: reduce exposure and monitor the vendor advisory.
- Search available logs for exploit probes, errors and authentication anomalies.
Affected scope
Vendor, product and versions as the sources word them.
| Vendor | Product | Versions | Status | Source |
|---|---|---|---|---|
| Linux | Linux |
version cfe5f6fd335d882bcc829a1c8a7d462a455c626eversion 5.17≥ 5.16.10 and < 5.17≥ 4.19.230 and < 4.20≥ 4.14.267 and < 4.15≥ 5.15.24 and < 5.15.197≥ 5.10.101 and < 5.10.247≥ 5.4.180 and < 5.4.302 and 10 moreversion 3e078b18753669615301d946297bafd69294ad2c≥ c9fc422c9a43e3d58d246334a71f3390401781dc and < b00d2572c16e8e59e979960d3383c2ae9cebd195version 32048f4be071f9a6966744243f1786f45bb22dc2≥ ebe2b1add1055b903e2acd86b290a85297edc0b3 and < cfd6f1a7b42f62523c96d9703ef32b0dbc495ba4≥ ebe2b1add1055b903e2acd86b290a85297edc0b3 and < 30880e9df27332403dd638a82c27921134b3630b≥ ebe2b1add1055b903e2acd86b290a85297edc0b3 and < d62b808d5c68a931ad0849a00a5e3be3dd7e0019≥ ebe2b1add1055b903e2acd86b290a85297edc0b3 and < fc1141a530dfc91f0ee19b7f422a2d24829584bc≥ ebe2b1add1055b903e2acd86b290a85297edc0b3 and < c53e90563bc148e4e0ad09fe130ba2246d426ea6≥ 72a8aee863af099d4434314c4536d6c9a61dcf3c and < 9ec40fba7357df2d36f4c2e2f3b9b1a4fba0a272≥ 0042178a69eb77a979e36a50dcce9794a3140ef8 and < 1c0dbd240be3f87cac321b14e17979b7e9cb6a8f |
Vulnerable | CVE Program (cve.org) e CISA ADP |
EPSS over time FIRST
Oct 13, 2026 → Oct 15, 2026 · 3 reading(s) · max 0.20%
Detection
Read off the CVSS vector and the weakness class. Starting points, not tested rules.
- Not enough vector or weakness data: use the affected application’s logs as a starting point.
Timeline
What happened to this CVE, newest first.
- 2026
- Record published
- Affected products added · linux/linux
- Source status changed · → Deferred
- Record created in this database
- 2025
- CVE published
Source activity
Repeated readings are counted rather than listed.
- 1× References added · Oct 14, 2026 – Oct 14, 2026
- 1× Official description updated · Oct 13, 2026 – Oct 13, 2026
References
10 on the record
- github.com/advisories/GHSA-xqq2-8462-xjg2
- git.kernel.org/stable/c/9ec40fba7357df2d36f4c2e2f3b9b1a4fba0a272
- git.kernel.org/stable/c/cfd6f1a7b42f62523c96d9703ef32b0dbc495ba4
- git.kernel.org/stable/c/c53e90563bc148e4e0ad09fe130ba2246d426ea6
- git.kernel.org/stable/c/d62b808d5c68a931ad0849a00a5e3be3dd7e0019
- git.kernel.org/stable/c/b00d2572c16e8e59e979960d3383c2ae9cebd195
- git.kernel.org/stable/c/30880e9df27332403dd638a82c27921134b3630b
- git.kernel.org/stable/c/fc1141a530dfc91f0ee19b7f422a2d24829584bc
- git.kernel.org/stable/c/1c0dbd240be3f87cac321b14e17979b7e9cb6a8f
- nvd.nist.gov/vuln/detail/CVE-2025-40315
Elsewhere on this site
Related CVEs (same products)
- Critical CVE-2026-99999 ipv4: validate checksum_start before completing checksum 1d
- Unknown CVE-2026-98432 ipv4: free inet_opt and ireq_opt after an RCU grace period 1d
- Unknown CVE-2026-98424 wifi: cfg80211: undo netns switch if renaming the wiphy fails 2d
- Unknown CVE-2026-98425 wifi: mac80211: don't warn when an IBSS has no channel to scan 2d
- Unknown CVE-2026-98426 wifi: mwifiex: fix IRQ leak using wrong index in MSI-X error path 2d
- Unknown CVE-2026-98427 net/sched: codel: bound the dropping loop per dequeue call 2d
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No CVSS score published by NVD, the CNA, CISA or GitHub so far.
- No fixed version, patch or mitigation documented.
- No CISA SSVC assessment.
- No CWE classification.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record
Text assembled only from the fields above — no additional claims.
What should defenders know first?
CVE-2025-40315 is "usb: gadget: f_fs: Fix epfile null pointer access after ep enable.", rated Unknown. It affects Linux (Linux); versions are in the scope table. It is not in CISA KEV, which does not rule out exploitation. EPSS 0.20% estimates the probability of exploitation in 30 days; neither replaces your asset context. First verify whether exposed or business-critical assets run the affected versions, apply vendor fixes or mitigations, and preserve logs for review.
Comments
Moderated technical discussion. Read the community guidelines.
No comments yet.
Sign in or create an account to comment and suggest corrections.