Skip to main content
Mallory
HighVulnerability

CVE-2025-40248: Linux kernel vsock connect() race leading to memory corruption

Published Dec 4, 2025 · Updated 9 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS7.8High · v3.1
EPSS0.24%9th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Linux
IdentifiersCVE-2025-40248CWE-364

CVE-2025-40248 is a race condition in the Linux kernel vsock subsystem's handling of signals and timeouts during connect(). If a socket becomes established before connect() processes a signal or timeout, the operation can incorrectly disconnect it. Packet cancellation through vsock_transport_cancel_pkt() and virtio_transport_purge_skbs() can race with sendmsg() credit accounting in virtio_transport_get_credit(), permanently elevating vvs->bytes_unsent and disrupting SOCK_LINGER handling. Resetting the connected socket can also race with sockmap insertion, leaving a disconnected socket in the map and triggering kernel warnings. Transitioning from SS_CONNECTED to SS_UNCONNECTED permits transport replacement or removal after TCP_ESTABLISHED, potentially causing a use-after-free or null-pointer dereference during concurrent sendmsg() or connect() operations. The issue was introduced in Linux 3.9.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can corrupt kernel memory or socket state, cause kernel warnings, disrupt socket-linger behavior, and potentially crash the kernel, resulting in denial of service. The use-after-free condition may also permit local privilege escalation. Arbitrary code execution or information disclosure is not established by the technical details available.

Mitigation

If you can’t patch tonight, do this now.

No complete temporary workaround is documented. Pending patching, reduce exposure by limiting affected AF_VSOCK functionality and restricting untrusted local workloads or guest/host interactions capable of exercising the vulnerable connect() paths. These restrictions reduce attack surface but do not replace the kernel update.

Remediation

Patch, then assume compromise.

Install a vendor-supported kernel update containing the vsock fix and reboot into the updated kernel, unless an applicable vendor-supported live patch is deployed according to its instructions. Fixed upstream releases include 5.4.302, 6.6.118, 6.12.60, 6.17.10, and 6.18; use the latest supported release for the applicable branch rather than cherry-picking an individual fix. Distribution package versions may differ because of backports. The fix prevents signal or timeout handling from disconnecting an already established socket while preserving existing handling for unconnected sockets.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
LinuxLinux Kerneloperating_system
FAQ

Frequently asked questions

Is CVE-2025-40248 exploited in the wild?
As of Nov 19, 2026, Mallory has no reports of CVE-2025-40248 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2025-40248?
As of Nov 19, 2026, Mallory has found no public exploit for CVE-2025-40248.
Is there a patch for CVE-2025-40248?
Install a vendor-supported kernel update containing the vsock fix and reboot into the updated kernel, unless an applicable vendor-supported live patch is deployed according to its instructions. Fixed upstream releases include 5.4.302, 6.6.118, 6.12.60, 6.17.10, and 6.18; use the latest supported release for the applicable branch rather than cherry-picking an individual fix.
What products are affected by CVE-2025-40248?
Linux Kernel.
How severe is CVE-2025-40248?
CVE-2025-40248 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.24% (9th percentile) as of Nov 19, 2026.
Activity feed

Recent activity

39 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable nessus pluginsNews · Nov 2, 2026Photon OS 5.0: Linux PHSA-2025-5.0-90-0708 | Tenable®A vulnerability addressed by a Linux package security update for Photon OS 5.0. Its technical cause and individual exploit status are not specified.Read more ↗tenable cloud security pluginsNews · Oct 6, 2026Google: sys-kernel/csql-kernel-6_1, sys-kernel/csql-kernel-6_6... | Tenable®A Linux kernel vsock race-condition vulnerability triggered when connect() handles a signal or timeout by disconnecting an already established socket. Concurrent operations can cause incorrect credit accounting, violate sockmap assumptions, or result in use-after-free and null-pointer dereference. The reference assigns a CVSS v3 base score of 7.8, with local access and low privileges required.Read more ↗tenable nessus pluginsNews · Oct 6, 2026Rocky Linux 10.1 [CIQ] Security Update: kernel / kernel-64k / ... | Tenable®A Linux kernel vsock vulnerability that may cause memory corruption. Affected Rocky Linux 10.1 kernel packages have security updates under CIQ advisory crlsa-2026_1690.Read more ↗tenable cloud security pluginsNews · Oct 2, 2026Echo: linux: security update to 6.1.159-1 | Tenable®A Linux kernel vsock race-condition vulnerability occurs when connect() handles a signal or timeout by disconnecting an already established socket. Concurrent socket operations can cause incorrect accounting, inconsistent sockmap state, and use-after-free or null-pointer dereference. The reference assigns a CVSS v3 score of 7.8, with local access and low privileges required. It recommends updating the linux package and related packages to version 6.1.159-1 or later.Read more ↗
+21 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.