Skip to main content

Linux Kernel CVE-2025-40315

| EUVDEUVD-2025-201630
2025-12-08 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Vulnerability Assessment

Impact

Typically causes application crash (denial of service). In some cases, may be exploitable for code execution on systems without memory protection.

Exploit ScenarioDerived

An attacker provides input that causes a code path where a pointer is dereferenced without a prior NULL check, crashing the application.

Monitor Track and reassess. Why: No CVSS yet + weak signal (CWE or non-zero EPSS).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 15, 2026

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

Earlier versions of this analysis (1)
v1 Mar 15, 2026 - 17:54

RemediationAI

Add NULL checks before pointer dereference operations. Use static analysis to identify potential NULL pointer issues. Enable compiler warnings.

Affected VersionsENISA

Linux patch: 6.17.8
Linux patch: 6.6.117
Linux 72a8aee863af099d4434314c4536d6c9a61dcf3c <9ec40fba7357df2d36f4c2e2f3b9b1a4fba0a272
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <c53e90563bc148e4e0ad09fe130ba2246d426ea6
Linux c9fc422c9a43e3d58d246334a71f3390401781dc <b00d2572c16e8e59e979960d3383c2ae9cebd195
Linux ebe2b1add1055b903e2acd86b290a85297edc0b3 <c53e90563bc148e4e0ad09fe130ba2246d426ea6
Linux patch: 0
Linux cfe5f6fd335d882bcc829a1c8a7d462a455c626e
Linux ebe2b1add1055b903e2acd86b290a85297edc0b3 <cfd6f1a7b42f62523c96d9703ef32b0dbc495ba4
Linux patch: 6.18
Linux 5.17
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <fc1141a530dfc91f0ee19b7f422a2d24829584bc
Linux patch: 6.12.58
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <9ec40fba7357df2d36f4c2e2f3b9b1a4fba0a272
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <1c0dbd240be3f87cac321b14e17979b7e9cb6a8f
Linux patch: 5.15.197
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <d62b808d5c68a931ad0849a00a5e3be3dd7e0019
Linux patch: 5.10.247
Linux 3e078b18753669615301d946297bafd69294ad2c
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <b00d2572c16e8e59e979960d3383c2ae9cebd195
Linux patch: 5.4.302
Linux ebe2b1add1055b903e2acd86b290a85297edc0b3 <30880e9df27332403dd638a82c27921134b3630b
Linux ebe2b1add1055b903e2acd86b290a85297edc0b3 <d62b808d5c68a931ad0849a00a5e3be3dd7e0019
Linux 32048f4be071f9a6966744243f1786f45bb22dc2
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <30880e9df27332403dd638a82c27921134b3630b
Linux ebe2b1add1055b903e2acd86b290a85297edc0b3 <fc1141a530dfc91f0ee19b7f422a2d24829584bc
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <cfd6f1a7b42f62523c96d9703ef32b0dbc495ba4
Linux 0042178a69eb77a979e36a50dcce9794a3140ef8 <1c0dbd240be3f87cac321b14e17979b7e9cb6a8f
Linux patch: 6.1.159

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

A NULL pointer dereference occurs when the application attempts to use a pointer that has not been initialized or has been set to NULL.

Know when Linux Kernel gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Lifecycle Timeline

2
Patch released
Mar 16, 2026 - 15:00 nvd
Patch available
CVE Published
Dec 08, 2025 - 01:16 nvd
N/A

Threat Intelligence Overview

EPSS Score
0.1%
Top 84% exploitable
Data Quality
3 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity Not scored yet
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
No CVSS yet + weak signal (CWE or non-zero EPSS)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2022-0847 HIGH POC
7.8 Mar 10

Linux kernel contains a flaw known as 'Dirty Pipe' where improper pipe buffer flag initialization allows unprivileged lo

CVE-2015-1328 HIGH POC
7.8 Nov 28

The overlayfs implementation in the linux (aka Linux kernel) package before 3.19.0-21.21 in Ubuntu through 15.04 does no

CVE-2017-7308 HIGH POC
7.8 Mar 29

The packet_set_ring function in net/packet/af_packet.c in the Linux kernel through 4.10.6 does not properly validate cer

CVE-2017-16995 HIGH POC
7.8 Dec 27

The check_alu_op function in kernel/bpf/verifier.c in the Linux kernel through 4.4 allows local users to cause a denial

CVE-2017-1000112 HIGH POC
7.0 Oct 05

Linux kernel: Exploitable memory corruption due to UFO to non-UFO path switch. Rated high severity (CVSS 7.0). Public ex

CVE-2015-8660 MEDIUM POC
6.7 Dec 28

The ovl_setattr function in fs/overlayfs/inode.c in the Linux kernel through 4.3.3 attempts to merge distinct setattr op

CVE-2012-0056 MEDIUM POC
6.9 Jan 27

The mem_write function in the Linux kernel before 3.2.2, when ASLR is disabled, does not properly check permissions when

CVE-2014-0038 MEDIUM POC
6.9 Feb 06

The compat_sys_recvmmsg function in net/compat.c in the Linux kernel before 3.13.2, when CONFIG_X86_X32 is enabled, allo

CVE-2016-8655 HIGH POC
7.8 Dec 08

Race condition in net/packet/af_packet.c in the Linux kernel through 4.8.12 allows local users to gain privileges or cau

CVE-2016-0728 HIGH POC
7.8 Feb 08

The join_session_keyring function in security/keys/process_keys.c in the Linux kernel before 4.4.1 mishandles object ref

CVE-2017-0561 CRITICAL POC
9.8 Apr 07

A remote code execution vulnerability in the Broadcom Wi-Fi firmware could enable a remote attacker to execute arbitrary

CVE-2016-10277 HIGH POC
7.8 May 12

An elevation of privilege vulnerability in the Motorola bootloader could enable a local malicious application to execute

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy