vsock: Ignore signal/timeout on connect() if already established

Summary

CVECVE-2025-40248
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-12-04 16:16:18 UTC
Updated2026-06-02 14:16:30 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: vsock: Ignore signal/timeout on connect() if already established During connect(), acting on a signal/timeout by disconnecting an already established socket leads to several issues: 1. connect() invoking vsock_transport_cancel_pkt() -> virtio_transport_purge_skbs() may race with sendmsg() invoking virtio_transport_get_credit(). This results in a permanently elevated `vvs->bytes_unsent`. Which, in turn, confuses the SOCK_LINGER handling. 2. connect() resetting a connected socket's state may race with socket being placed in a sockmap. A disconnected socket remaining in a sockmap breaks sockmap's assumptions. And gives rise to WARNs. 3. connect() transitioning SS_CONNECTED -> SS_UNCONNECTED allows for a transport change/drop after TCP_ESTABLISHED. Which poses a problem for any simultaneous sendmsg() or connect() and may result in a use-after-free/null-ptr-deref. Do not disconnect socket on signal/timeout. Keep the logic for unconnected sockets: they don't linger, can't be placed in a sockmap, are rejected by sendmsg(). [1]: https://lore.kernel.org/netdev/[email protected]/ [2]: https://lore.kernel.org/netdev/[email protected]/ [3]: https://lore.kernel.org/netdev/[email protected]/

Risk And Classification

EPSS: 0.000880000 probability, percentile 0.250730000 (date 2026-06-08)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected d021c344051af91f42c5ba9fdedc176740cbd238 3f71753935d648082a8279a97d30efe6b85be680 git Not specified
CNA Linux Linux affected d021c344051af91f42c5ba9fdedc176740cbd238 da664101fb4a0de5cb70d2bae6a650df954df2af git Not specified
CNA Linux Linux affected d021c344051af91f42c5ba9fdedc176740cbd238 67432915145848658149683101104e32f9fd6559 git Not specified
CNA Linux Linux affected d021c344051af91f42c5ba9fdedc176740cbd238 eeca93f06df89be5a36305b7b9dae1ed65550dfc git Not specified
CNA Linux Linux affected d021c344051af91f42c5ba9fdedc176740cbd238 5998da5a8208ae9ad7838ba322bccb2bdcd95e81 git Not specified
CNA Linux Linux affected d021c344051af91f42c5ba9fdedc176740cbd238 f1c170cae285e4b8f61be043bb17addc3d0a14b5 git Not specified
CNA Linux Linux affected d021c344051af91f42c5ba9fdedc176740cbd238 ab6b19f690d89ae4709fba73a3c4a7911f495b7a git Not specified
CNA Linux Linux affected d021c344051af91f42c5ba9fdedc176740cbd238 002541ef650b742a198e4be363881439bb9d86b4 git Not specified
CNA Linux Linux affected 3.9 Not specified
CNA Linux Linux unaffected 3.9 semver Not specified
CNA Linux Linux unaffected 5.4.302 5.4.* semver Not specified
CNA Linux Linux unaffected 5.10.247 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.197 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.159 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.118 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.60 6.12.* semver Not specified
CNA Linux Linux unaffected 6.17.10 6.17.* semver Not specified
CNA Linux Linux unaffected 6.18 * original_commit_for_fix Not specified
ADP Siemens RUGGEDCOM RST2428P affected V4.0 custom Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/67432915145848658149683101104e32f9fd6559 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/da664101fb4a0de5cb70d2bae6a650df954df2af 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/002541ef650b742a198e4be363881439bb9d86b4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f1c170cae285e4b8f61be043bb17addc3d0a14b5 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
cert-portal.siemens.com/productcert/html/ssa-253495.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
git.kernel.org/stable/c/5998da5a8208ae9ad7838ba322bccb2bdcd95e81 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/eeca93f06df89be5a36305b7b9dae1ed65550dfc 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/ab6b19f690d89ae4709fba73a3c4a7911f495b7a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/3f71753935d648082a8279a97d30efe6b85be680 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report