CVE-2025-40248
Vulnerability Summary
Timeline
Description
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/e07fd95c-9a38-4eea-9638-133e38c2ec9b@rbox.co/ [2]: https://lore.kernel.org/netdev/20250317-vsock-trans-signal-race-v4-0-fc8837f3f1d4@rbox.co/ [3]: https://lore.kernel.org/netdev/60f1b7db-3099-4f6a-875e-af9f6ef194f6@rbox.co/
CVSS Metrics
- v3.1•HIGH•Score: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- v3.1•HIGH•Score: 7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Trends
Current EPSS score: 0.16%• Percentile: 5%
Affected Systems
- debian•linux
< 5.10.247-1 | < 6.1.159-1 | < 6.12.63-1 | < 6.17.10-1
- debian•linux-6.1
< 6.1.159-1~deb11u1
- ubuntu•linux
all | < 5.15.0-173.183 | < 6.8.0-106.106 | < 6.17.0-19.19
- ubuntu•linux-allwinner-5.19
all
- ubuntu•linux-aws
all | < 5.15.0-1103.110 | < 6.8.0-1050.53 | < 6.17.0-1009.9
- ubuntu•linux-aws-5.0
all
- ubuntu•linux-aws-5.11
all
- ubuntu•linux-aws-5.13
all
- ubuntu•linux-aws-5.15
< 5.15.0-1103.110~20.04.1
- ubuntu•linux-aws-5.19
all
- ubuntu•linux-aws-5.3
all
- ubuntu•linux-aws-5.4
all
- ubuntu•linux-aws-5.8
all
- ubuntu•linux-aws-6.14
all
- ubuntu•linux-aws-6.17
< 6.17.0-1009.9~24.04.2
- ubuntu•linux-aws-6.2
all
- ubuntu•linux-aws-6.5
all
- ubuntu•linux-aws-6.8
< 6.8.0-1050.53~22.04.1
- ubuntu•linux-aws-fips
all | < 5.15.0-1103.110+fips1 | < 6.8.0-1050.53+fips1
- ubuntu•linux-aws-hwe
all
- ubuntu•linux-azure
all | all | < 5.15.0-1109.118 | < 6.8.0-1051.57 | < 6.17.0-1010.10
- ubuntu•linux-azure-4.15
all
- ubuntu•linux-azure-5.11
all
- ubuntu•linux-azure-5.13
all
- ubuntu•linux-azure-5.15
< 5.15.0-1110.119~20.04.1
- ubuntu•linux-azure-5.19
all
- ubuntu•linux-azure-5.3
all
- ubuntu•linux-azure-5.4
all
- ubuntu•linux-azure-5.8
all
- ubuntu•linux-azure-6.11
all
- ubuntu•linux-azure-6.14
all
- ubuntu•linux-azure-6.17
< 6.17.0-1010.10~24.04.1
- ubuntu•linux-azure-6.2
all
- ubuntu•linux-azure-6.5
all
- ubuntu•linux-azure-6.8
< 6.8.0-1051.57~22.04.1
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fde
all | all | all | all
- ubuntu•linux-azure-fde-5.19
all
- ubuntu•linux-azure-fde-6.14
all
- ubuntu•linux-azure-fde-6.2
all
- ubuntu•linux-azure-fde-6.8
all
- ubuntu•linux-azure-fips
all | < 5.15.0-1109.118+fips1 | < 6.8.0-1052.58+fips1
- ubuntu•linux-azure-nvidia
all
- ubuntu•linux-azure-nvidia-6.14
all
- ubuntu•linux-bluefield
all | all | < 5.15.0-1086.88 | < 6.8.0-1017.21
- ubuntu•linux-fips
all | < 5.15.0-173.183+fips1 | < 6.8.0-106.106+fips1
- ubuntu•linux-gcp
all | all | < 5.15.0-1103.112 | < 6.8.0-1052.55 | < 6.17.0-1009.9
- ubuntu•linux-gcp-4.15
all
- ubuntu•linux-gcp-5.11
all
- ubuntu•linux-gcp-5.13
all
Showing first 50 affected entries in server-rendered view.
References (60)
- https://git.kernel.org/stable/c/3f71753935d648082a8279a97d30efe6b85be680
- https://git.kernel.org/stable/c/da664101fb4a0de5cb70d2bae6a650df954df2af
- https://git.kernel.org/stable/c/67432915145848658149683101104e32f9fd6559
- https://git.kernel.org/stable/c/eeca93f06df89be5a36305b7b9dae1ed65550dfc
- https://git.kernel.org/stable/c/5998da5a8208ae9ad7838ba322bccb2bdcd95e81
- https://git.kernel.org/stable/c/f1c170cae285e4b8f61be043bb17addc3d0a14b5
- https://git.kernel.org/stable/c/ab6b19f690d89ae4709fba73a3c4a7911f495b7a
- https://git.kernel.org/stable/c/002541ef650b742a198e4be363881439bb9d86b4
- https://cert-portal.siemens.com/productcert/html/ssa-253495.html
- https://access.redhat.com/errata/RHSA-2026:3848
- https://access.redhat.com/security/updates/classification/#important
- https://bugzilla.redhat.com/show_bug.cgi?id=2418872
- https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_3848.json
- https://access.redhat.com/security/cve/CVE-2025-40248
- https://www.cve.org/CVERecord?id=CVE-2025-40248
- https://nvd.nist.gov/vuln/detail/CVE-2025-40248
- https://lore.kernel.org/linux-cve-announce/2025120430-CVE-2025-40248-506e@gregkh/T
- https://access.redhat.com/errata/RHSA-2026:3865
- https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_3865.json
- https://access.redhat.com/errata/RHSA-2026:3866
- https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_3866.json
- https://access.redhat.com/errata/RHSA-2026:3867
- https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_3867.json
- https://access.redhat.com/errata/RHSA-2026:3868
- https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_3868.json
- https://access.redhat.com/errata/RHSA-2026:3873
- https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_3873.json
- https://access.redhat.com/errata/RHSA-2026:3886
- https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_3886.json
- https://access.redhat.com/errata/RHSA-2026:3987
- https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_3987.json
- https://ubuntu.com/security/CVE-2025-40248
- https://git.kernel.org/linus/002541ef650b742a198e4be363881439bb9d86b4
- https://ubuntu.com/security/notices/USN-8094-1
- https://ubuntu.com/security/notices/USN-8095-1
- https://ubuntu.com/security/notices/USN-8096-1
- https://ubuntu.com/security/notices/USN-8100-1
- https://ubuntu.com/security/notices/USN-8095-2
- https://ubuntu.com/security/notices/USN-8096-2
- https://ubuntu.com/security/notices/USN-8094-2
- https://ubuntu.com/security/notices/USN-8095-3
- https://ubuntu.com/security/notices/USN-8096-3
- https://ubuntu.com/security/notices/USN-8096-4
- https://ubuntu.com/security/notices/USN-8116-1
- https://ubuntu.com/security/notices/USN-8095-4
- https://ubuntu.com/security/notices/USN-8096-5
- https://ubuntu.com/security/notices/USN-8094-3
- https://ubuntu.com/security/notices/USN-8094-4
- https://ubuntu.com/security/notices/USN-8125-1
- https://ubuntu.com/security/notices/USN-8126-1
- https://ubuntu.com/security/notices/USN-8094-5
- https://ubuntu.com/security/notices/USN-8095-5
- https://ubuntu.com/security/notices/USN-8141-1
- https://ubuntu.com/security/notices/USN-8152-1
- https://ubuntu.com/security/notices/USN-8163-1
- https://ubuntu.com/security/notices/USN-8165-1
- https://ubuntu.com/security/notices/USN-8163-2
- https://ubuntu.com/security/notices/USN-8243-1
- https://ubuntu.com/security/notices/USN-8261-1
- https://security-tracker.debian.org/tracker/CVE-2025-40248