# usb: gadget: f_fs: Fix epfile null pointer access after ep enable.

CVE record · `CVE-2025-40315`

- **Identifiers:** `CVE-2025-40315`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 8 Dec 2025
- **Updated:** 23 May 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 8 Dec 2025, 00:46 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `c9fc422c9a43e3d58d246334a71f3390401781dc to before b00d2572c16e8e59e979960d3383c2ae9cebd195` (git)
  - affected: `0042178a69eb77a979e36a50dcce9794a3140ef8 to before 1c0dbd240be3f87cac321b14e17979b7e9cb6a8f` (git)
  - affected: `72a8aee863af099d4434314c4536d6c9a61dcf3c to before 9ec40fba7357df2d36f4c2e2f3b9b1a4fba0a272` (git)
  - affected: `ebe2b1add1055b903e2acd86b290a85297edc0b3 to before c53e90563bc148e4e0ad09fe130ba2246d426ea6` (git)
  - affected: `ebe2b1add1055b903e2acd86b290a85297edc0b3 to before fc1141a530dfc91f0ee19b7f422a2d24829584bc` (git)
  - affected: `ebe2b1add1055b903e2acd86b290a85297edc0b3 to before d62b808d5c68a931ad0849a00a5e3be3dd7e0019` (git)
  - affected: `ebe2b1add1055b903e2acd86b290a85297edc0b3 to before 30880e9df27332403dd638a82c27921134b3630b` (git)
  - affected: `ebe2b1add1055b903e2acd86b290a85297edc0b3 to before cfd6f1a7b42f62523c96d9703ef32b0dbc495ba4` (git)
  - affected: `32048f4be071f9a6966744243f1786f45bb22dc2` (git)
  - affected: `cfe5f6fd335d882bcc829a1c8a7d462a455c626e` (git)
  - affected: `3e078b18753669615301d946297bafd69294ad2c` (git)
  - affected: `5.4.180 to before 5.4.302` (semver)
  - and 5 more
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.17`
  - unaffected: `before 5.17` (semver)
  - unaffected: `5.4.302 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.247 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.197 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.159 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.117 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.58 to 6.12.*, inclusive` (semver)
  - unaffected: `6.17.8 to 6.17.*, inclusive` (semver)
  - unaffected: `6.18 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0022, the 12th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 8 Dec 2025. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2025-40315](https://www.cve.org/CVERecord?id=CVE-2025-40315)
- [NVD: CVE-2025-40315](https://nvd.nist.gov/vuln/detail/CVE-2025-40315)

### References from the CNA

- <https://git.kernel.org/stable/c/b00d2572c16e8e59e979960d3383c2ae9cebd195>
- <https://git.kernel.org/stable/c/1c0dbd240be3f87cac321b14e17979b7e9cb6a8f>
- <https://git.kernel.org/stable/c/9ec40fba7357df2d36f4c2e2f3b9b1a4fba0a272>
- <https://git.kernel.org/stable/c/c53e90563bc148e4e0ad09fe130ba2246d426ea6>
- <https://git.kernel.org/stable/c/fc1141a530dfc91f0ee19b7f422a2d24829584bc>
- <https://git.kernel.org/stable/c/d62b808d5c68a931ad0849a00a5e3be3dd7e0019>
- <https://git.kernel.org/stable/c/30880e9df27332403dd638a82c27921134b3630b>
- <https://git.kernel.org/stable/c/cfd6f1a7b42f62523c96d9703ef32b0dbc495ba4>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2025-40315>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2025-40315/>. Everything for agents: <https://agentprime.io/llms.txt>.
