CVE-2025-40315: usb: gadget: f_fs: Fix epfile null pointer access after ep enable.
Noroxi assessment
Priority: Monitor (action score 0/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.21% (FIRST EPSS).
- Fixed version: Linux Linux 1c0dbd240be3f87cac321b14e17979b7e9cb6a8f, 30880e9df27332403dd638a82c27921134b3630b, 4.15.
Low priority for now. Upgrade to Linux Linux 1c0dbd240be3f87cac321b14e17979b7e9cb6a8f, 30880e9df27332403dd638a82c27921134b3630b, 4.15 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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
- Published
- Dec 8, 2025
- Updated
- Oct 14, 2026
- EPSS
- 0.2% · 12th percentile
- CWE
- —
Report tools
Action score
0
Monitor
Low priority for now.
- CVSS
- 0 / 40 · —
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.2%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
—
Versions reported by the vendor
Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.
Linux Linux
- 32048f4be071f9a6966744243f1786f45bb22dc2, cfe5f6fd335d882bcc829a1c8a7d462a455c626e, 3e078b18753669615301d946297bafd69294ad2c, 5.17affected
- c9fc422c9a43e3d58d246334a71f3390401781dc and later · before b00d2572c16e8e59e979960d3383c2ae9cebd195affected · git
- 0042178a69eb77a979e36a50dcce9794a3140ef8 and later · before 1c0dbd240be3f87cac321b14e17979b7e9cb6a8faffected · git
- 72a8aee863af099d4434314c4536d6c9a61dcf3c and later · before 9ec40fba7357df2d36f4c2e2f3b9b1a4fba0a272affected · git
- ebe2b1add1055b903e2acd86b290a85297edc0b3 and later · before c53e90563bc148e4e0ad09fe130ba2246d426ea6affected · git
- ebe2b1add1055b903e2acd86b290a85297edc0b3 and later · before fc1141a530dfc91f0ee19b7f422a2d24829584bcaffected · git
- ebe2b1add1055b903e2acd86b290a85297edc0b3 and later · before d62b808d5c68a931ad0849a00a5e3be3dd7e0019affected · git
- ebe2b1add1055b903e2acd86b290a85297edc0b3 and later · before 30880e9df27332403dd638a82c27921134b3630baffected · git
- ebe2b1add1055b903e2acd86b290a85297edc0b3 and later · before cfd6f1a7b42f62523c96d9703ef32b0dbc495ba4affected · git
- 5.4.180 and later · before 5.4.302affected · semver
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | linux | before 6.1.159-1 | 6.1.159-1 |
| Debian:13 | linux | before 6.12.63-1 | 6.12.63-1 |
| Debian:14 | linux | before 6.17.8-1 | 6.17.8-1 |
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-74705udp: fix potential use-after-free in tunnel segmentation40Plan
- CVE-2026-74612veth: fix skb length accounting after XDP frag adjustment40Plan
- CVE-2026-74475vxlan: use neigh_ha_snapshot() in route_shortcircuit()40Plan
Published before and after this one in the same product
- ← EarlierCVE-2025-40313Dec 8, 2025 · ntfs3: pretend $Extend records as regular files0Monitor
- ← EarlierCVE-2025-40314Dec 8, 2025 · usb: cdns3: gadget: Use-after-free during failed initialization and exit of cdnsp gadget0Monitor
- Later →CVE-2025-40316Dec 8, 2025 · drm/mediatek: Fix device use-after-free on unbind0Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Linux Linux | 1c0dbd240be3f87cac321b14e17979b7e9cb6a8f | Vendor (CNA) |
| Linux Linux | 30880e9df27332403dd638a82c27921134b3630b | Vendor (CNA) |
| Linux Linux | 4.15 | Vendor (CNA) |
| Linux Linux | 4.20 | Vendor (CNA) |
| Linux Linux | 5.10.247 | Vendor (CNA) |
| Linux Linux | 5.15.197 | Vendor (CNA) |
| Linux Linux | 5.17 | Vendor (CNA) |
| Linux Linux | 5.4.302 | Vendor (CNA) |
| Linux Linux | 9ec40fba7357df2d36f4c2e2f3b9b1a4fba0a272 | Vendor (CNA) |
| Linux Linux | b00d2572c16e8e59e979960d3383c2ae9cebd195 | Vendor (CNA) |
| Linux Linux | c53e90563bc148e4e0ad09fe130ba2246d426ea6 | Vendor (CNA) |
| Linux Linux | cfd6f1a7b42f62523c96d9703ef32b0dbc495ba4 | Vendor (CNA) |
| Linux Linux | d62b808d5c68a931ad0849a00a5e3be3dd7e0019 | Vendor (CNA) |
| Linux Linux | fc1141a530dfc91f0ee19b7f422a2d24829584bc | Vendor (CNA) |
| debian:linux | 6.1.159-1 · Debian:12 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
No CVSS vector for this record, so attack conditions can't be derived.
Weakness class (CWE)
—
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (7 more)Show less
- git.kernel.org/stable/c/30880e9df27332403dd638a82c27921134b3630b
- git.kernel.org/stable/c/9ec40fba7357df2d36f4c2e2f3b9b1a4fba0a272
- git.kernel.org/stable/c/b00d2572c16e8e59e979960d3383c2ae9cebd195
- git.kernel.org/stable/c/c53e90563bc148e4e0ad09fe130ba2246d426ea6
- git.kernel.org/stable/c/cfd6f1a7b42f62523c96d9703ef32b0dbc495ba4
- git.kernel.org/stable/c/d62b808d5c68a931ad0849a00a5e3be3dd7e0019
- git.kernel.org/stable/c/fc1141a530dfc91f0ee19b7f422a2d24829584bc
Vendor advisories and official records. Exploit/PoC links are deliberately left out.