CVE-2025-40258
A race condition in the Linux kernel's MPTCP implementation can cause a use‑after‑free, potentially allowing arbitrary code execution or denial of service. The flaw occurs when mptcp_schedule_work() schedules work and takes a reference count on a socket, but the worker thread may run before the reference is held, leading to a refcount error. This vulnerability has been resolved in the kernel.
An official fix is available, so this entry is kept for 30 days and then removed automatically.
Who is affected
Linux systems using the MPTCP subsystem.
Real-world impact
An attacker could exploit the race condition to execute arbitrary code or crash the system.
Why this severity
CVSS v3.1 base score 9.8 (Critical) due to network‑adjacent attack vector, low attack complexity, no privileges or user interaction required, and high impact on confidentiality, integrity, and availability.
What to do about it
- 01Upgrade the Linux kernel to a version that includes the fix for the race condition in mptcp_schedule_work() (as referenced in the NVD description).
- 02Reboot the system to load the updated kernel.
NVD-referenced vendor advisory
Timeline
- Dec 4, 2025 · Dec 4, 2025PublishedDisclosed and added to the National Vulnerability Database.
- Jul 30, 2026 · 6d agoAdvisory updatedThe NVD record was last revised.
- Jul 30, 2026 · 6d agoOfficial fix availableA vendor patch or mitigation now exists — see the remediation steps above.
How it’s attacked
References & advisories
- git.kernel.org/stable/c/035bca3f017ee9dea3…
- git.kernel.org/stable/c/3fc7723ed01d1130d4…
- git.kernel.org/stable/c/8f9ba1a99a89feef9b…
- git.kernel.org/stable/c/99908e2d601236842d…
- git.kernel.org/stable/c/ac28dfddedf6f20919…
- git.kernel.org/stable/c/db4f7968a75250ca6c…
- git.kernel.org/stable/c/f865e6595acf330831…
- cert-portal.siemens.com/productcert/html/ssa-253495…