CVE-2025-40315

Local system crash via FunctionFS endpoint race

Published Dec 8, 2025 · Updated May 23, 2026

A race condition in Linux kernel FunctionFS allows local users to crash the system through concurrent endpoint enable and data reset operations. ffs_data_clear() sets ffs->epfiles to NULL before clearing eps_count, so ffs_func_eps_enable() dereferences epfile->ep after usb_ep_enable() succeeds. Local low-privileged access to a configured USB FunctionFS gadget is required, and the demonstrated consequence is a kernel crash.

CVSS severity5.5
Medium
EPSS probability0.20%
Next 30 days · Sep 16, 2026
Known exploitationUnconfirmed
Based on sourced intelligence
Hinoki checkNot available
Coverage for this vulnerability

See if you're affected

Explore vulnerability checks for your environment with Hinoki.

Book a demo

Summary

What happened

A race condition in Linux kernel FunctionFS allows local users to crash the system through concurrent endpoint enable and data reset operations. ffs_data_clear() sets ffs->epfiles to NULL before clearing eps_count, so ffs_func_eps_enable() dereferences epfile->ep after usb_ep_enable() succeeds. Local low-privileged access to a configured USB FunctionFS gadget is required, and the demonstrated consequence is a kernel crash.

The record

CVE
CVE-2025-40315
Published
Dec 8, 2025
Updated
May 23, 2026
Vendor
The Linux Kernel Organization
Product
Linux
Classifications
T1499.004
Attack vector
local
Privileges
authenticated

Timeline

How it unfolded

  1. Dec 8, 2025CVE publishedPublication date reported by the CVE source.
  2. May 23, 2026Record updatedLatest update available in the CVE record.

Exploitability

Present is not the same as exploitable

Compare your product and version with the public record. A matching version still requires validation against your environment.

Is a vulnerable build present?

Compare these published version ranges with your installed build and any vendor patches.

  1. Affected versionversion=0042178a69eb77a979e36a50dcce9794a3140ef8 <1c0dbd240be3f87cac321b14e17979b7e9cb6a8f
  2. Affected versionversion=32048f4be071f9a6966744243f1786f45bb22dc2
  3. Affected versionversion=3e078b18753669615301d946297bafd69294ad2c
  4. Affected versionversion=4.14.267 <4.15
  5. Affected versionversion=4.19.230 <4.20
  6. Affected versionversion=5.10.101 <5.10.247
  7. Affected versionversion=5.15.24 <5.15.197
  8. Affected versionversion=5.16.10 <5.17
  9. Affected versionversion=5.17
  10. Affected versionversion=5.4.180 <5.4.302
  11. Affected versionversion=72a8aee863af099d4434314c4536d6c9a61dcf3c <9ec40fba7357df2d36f4c2e2f3b9b1a4fba0a272
  12. Affected versionversion=c9fc422c9a43e3d58d246334a71f3390401781dc <b00d2572c16e8e59e979960d3383c2ae9cebd195
  13. Affected versionversion=cfe5f6fd335d882bcc829a1c8a7d462a455c626e
  14. Affected versionversion=ebe2b1add1055b903e2acd86b290a85297edc0b3 <30880e9df27332403dd638a82c27921134b3630b
  15. Affected versionversion=ebe2b1add1055b903e2acd86b290a85297edc0b3 <c53e90563bc148e4e0ad09fe130ba2246d426ea6
  16. Affected versionversion=ebe2b1add1055b903e2acd86b290a85297edc0b3 <cfd6f1a7b42f62523c96d9703ef32b0dbc495ba4
  17. Affected versionversion=ebe2b1add1055b903e2acd86b290a85297edc0b3 <d62b808d5c68a931ad0849a00a5e3be3dd7e0019
  18. Affected versionversion=ebe2b1add1055b903e2acd86b290a85297edc0b3 <fc1141a530dfc91f0ee19b7f422a2d24829584bc

What conditions does exploitation require?

Attack vectorlocal
Required privilegesauthenticated

What is affected?

The Linux Kernel Organization · Linuxversion=0042178a69eb77a979e36a50dcce9794a3140ef8 <1c0dbd240be3f87cac321b14e17979b7e9cb6a8f; version=32048f4be071f9a6966744243f1786f45bb22dc2; version=3e078b18753669615301d946297bafd69294ad2c; version=4.14.267 <4.15; version=4.19.230 <4.20; version=5.10.101 <5.10.247; version=5.15.24 <5.15.197; version=5.16.10 <5.17; version=5.17; version=5.4.180 <5.4.302; version=72a8aee863af099d4434314c4536d6c9a61dcf3c <9ec40fba7357df2d36f4c2e2f3b9b1a4fba0a272; version=c9fc422c9a43e3d58d246334a71f3390401781dc <b00d2572c16e8e59e979960d3383c2ae9cebd195; version=cfe5f6fd335d882bcc829a1c8a7d462a455c626e; version=ebe2b1add1055b903e2acd86b290a85297edc0b3 <30880e9df27332403dd638a82c27921134b3630b; version=ebe2b1add1055b903e2acd86b290a85297edc0b3 <c53e90563bc148e4e0ad09fe130ba2246d426ea6; version=ebe2b1add1055b903e2acd86b290a85297edc0b3 <cfd6f1a7b42f62523c96d9703ef32b0dbc495ba4; version=ebe2b1add1055b903e2acd86b290a85297edc0b3 <d62b808d5c68a931ad0849a00a5e3be3dd7e0019; version=ebe2b1add1055b903e2acd86b290a85297edc0b3 <fc1141a530dfc91f0ee19b7f422a2d24829584bc

Published CVSS scores

5.5Amazon LinuxCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CVSS describes severity. EPSS estimates exploitation probability.

Attacks

What attackers are doing with it

Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.

Daily unique IPsNo honeypot observations are available for this CVE in the selected window.

No observations available

Sep 9, 2026Sep 15, 2026
Latest reporting daySep 15, 2026
Latest daily unique IPsUnavailable
Prior 30-day averageUnavailable
SourceShadowserver honeypots (KEV)
Vectorlocal
Privilegesauthenticated
Known exploitationUnconfirmed
Public exploitUnconfirmed

Weakness, pattern, technique

T1499.004Application or System Exploitation

Public exploit references

No public exploit references are available in this record.

Labels summarize the accepted research assessment. They do not indicate a test against your environment.

Technologies

Your stack

See the directory against your own environment.

Your stack

Check the software in your environment

Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.

Book a demo