cbcvebase.
CVE-2025-40248
published 2025-12-04

CVE-2025-40248: In the Linux kernel, the following vulnerability has been resolved: vsock: Ignore signal/timeout on connect() if already established During connect(), acting…

PriorityP339high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.15%
5.0th percentile
In 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]/

Affected

29 ranges· showing 25
VendorProductVersion rangeFixed in
debianlinux< linux 6.1.159-1 (bookworm)linux 6.1.159-1 (bookworm)
debianlinux-6.1< linux 6.1.159-1 (bookworm)linux 6.1.159-1 (bookworm)
linuxlinux
linuxlinux>= d021c344051af91f42c5ba9fdedc176740cbd238 < 3f71753935d648082a8279a97d30efe6b85be6803f71753935d648082a8279a97d30efe6b85be680
linuxlinux>= d021c344051af91f42c5ba9fdedc176740cbd238 < da664101fb4a0de5cb70d2bae6a650df954df2afda664101fb4a0de5cb70d2bae6a650df954df2af
linuxlinux>= d021c344051af91f42c5ba9fdedc176740cbd238 < 67432915145848658149683101104e32f9fd655967432915145848658149683101104e32f9fd6559
linuxlinux>= d021c344051af91f42c5ba9fdedc176740cbd238 < eeca93f06df89be5a36305b7b9dae1ed65550dfceeca93f06df89be5a36305b7b9dae1ed65550dfc
linuxlinux>= d021c344051af91f42c5ba9fdedc176740cbd238 < 5998da5a8208ae9ad7838ba322bccb2bdcd95e815998da5a8208ae9ad7838ba322bccb2bdcd95e81
linuxlinux>= d021c344051af91f42c5ba9fdedc176740cbd238 < f1c170cae285e4b8f61be043bb17addc3d0a14b5f1c170cae285e4b8f61be043bb17addc3d0a14b5
linuxlinux>= d021c344051af91f42c5ba9fdedc176740cbd238 < ab6b19f690d89ae4709fba73a3c4a7911f495b7aab6b19f690d89ae4709fba73a3c4a7911f495b7a
linuxlinux>= d021c344051af91f42c5ba9fdedc176740cbd238 < 002541ef650b742a198e4be363881439bb9d86b4002541ef650b742a198e4be363881439bb9d86b4
linuxlinux_kernel>= 0 < 5.10.247-15.10.247-1
linuxlinux_kernel>= 0 < 6.1.159-16.1.159-1
linuxlinux_kernel>= 0 < 6.12.63-16.12.63-1
linuxlinux_kernel>= 0 < 6.17.10-16.17.10-1
linuxlinux_kernel>= 0 < 5.15.0-173.1835.15.0-173.183
linuxlinux_kernel>= 0 < 6.8.0-106.1066.8.0-106.106
linuxlinux_kernel>= 0 < 6.17.0-19.196.17.0-19.19
linuxlinux_kernel>= 3.9.0 < 5.4.3025.4.302
linuxlinux_kernel>= 5.11.0 < 5.15.1975.15.197
linuxlinux_kernel>= 5.16.0 < 6.1.1596.1.159
linuxlinux_kernel>= 5.5.0 < 5.10.2475.10.247
linuxlinux_kernel>= 6.13.0 < 6.17.106.17.10
linuxlinux_kernel>= 6.2.0 < 6.6.1186.6.118
linuxlinux_kernel>= 6.7.0 < 6.12.606.12.60

CVSS provenance

nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv7.8HIGH
vendor_ubuntu7.8HIGH
vendor_redhat7.0HIGH
vendor_msrc6.3MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.