Skip to main content

Linux Kernel EUVDEUVD-2025-201631

| CVE-2025-40314
2025-12-08 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Vulnerability Assessment

Impact

Memory corruption that can be exploited for arbitrary code execution, information disclosure, or denial of service.

Exploit ScenarioDerived

An attacker triggers a specific sequence of operations that causes the application to free a memory block and then reference it again, potentially executing attacker-controlled data.

Monitor Track and reassess. Why: No CVSS yet + weak signal (CWE or non-zero EPSS).
Patch available 0.0% 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: cdns3: gadget: Use-after-free during failed initialization and exit of cdnsp gadget

In the __cdnsp_gadget_init() and cdnsp_gadget_exit() functions, the gadget structure (pdev->gadget) was freed before its endpoints. The endpoints are linked via the ep_list in the gadget structure. Freeing the gadget first leaves dangling pointers in the endpoint list. When the endpoints are subsequently freed, this results in a use-after-free.

Fix: By separating the usb_del_gadget_udc() operation into distinct "del" and "put" steps, cdnsp_gadget_free_endpoints() can be executed prior to the final release of the gadget structure with usb_put_gadget().

A patch similar to bb9c74a5bd14("usb: dwc3: gadget: Free gadget structure only after freeing endpoints").

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

RemediationAI

Use memory-safe languages. Implement proper object lifecycle management. Use static and dynamic analysis tools to detect UAF patterns.

Affected VersionsENISA

Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <9c52f01429c377a2d32cafc977465f37b5384f77
Linux patch: 6.12.58
Linux 8bc1901ca7b07d864fca11461b3875b31f949765 <fdf573c517627a96f5040f988e9b21267806be5c
Linux patch: 5.15.197
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <fdf573c517627a96f5040f988e9b21267806be5c
Linux patch: 0
Linux 8bc1901ca7b07d864fca11461b3875b31f949765 <37158ce6ba964b62d1e3eebd11f03c6900a52dd1
Linux patch: 6.1.159
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <87c5ff5615dc0a37167e8faf3adeeddc6f1344a3
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <0cf9a50af91fbdac3849f8d950e883a3eaa3ecea
Linux patch: 6.6.117
Linux 8bc1901ca7b07d864fca11461b3875b31f949765 <0cf9a50af91fbdac3849f8d950e883a3eaa3ecea
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <ea37884097a0931abb8e11e40eacfb25e9fdb5e9
Linux patch: 6.17.8
Linux 8bc1901ca7b07d864fca11461b3875b31f949765 <ea37884097a0931abb8e11e40eacfb25e9fdb5e9
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <37158ce6ba964b62d1e3eebd11f03c6900a52dd1
Linux 8bc1901ca7b07d864fca11461b3875b31f949765 <9c52f01429c377a2d32cafc977465f37b5384f77
Linux 5.3
Linux 8bc1901ca7b07d864fca11461b3875b31f949765 <87c5ff5615dc0a37167e8faf3adeeddc6f1344a3
Linux patch: 6.18

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 use-after-free vulnerability occurs when a program continues to use a pointer after the referenced memory has been freed, leading to undefined behavior.

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.0%
Top 90% 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.0%
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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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