PT-2025-49078 · Linux+4 · Linux Kernel+4

Published

2025-04-12

·

Updated

2026-05-26

·

CVE-2025-40248

CVSS v2.0

4.6

Medium

VectorAV:L/AC:L/Au:S/C:N/I:N/A:C
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description A flaw exists in the Linux kernel’s vsock implementation. Specifically, the issue arises when handling signals or timeouts during a connect() operation on an already established socket. Acting on a signal or timeout by disconnecting an established socket can lead to race conditions with other operations, such as sendmsg(), potentially causing issues like permanently elevated vvs->bytes unsent, broken sockmap assumptions due to disconnected sockets remaining in the sockmap, and potential use-after-free or null-pointer dereferences if a transport change or drop occurs after TCP ESTABLISHED. The resolution involves preventing disconnection of the socket on signal or timeout, maintaining the existing logic for unconnected sockets. The connect() function may invoke vsock transport cancel pkt() which then calls virtio transport purge skbs(), potentially racing with sendmsg() invoking virtio transport get credit().
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Use After Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2026:1142
ALSA-2026:1143
ALSA-2026:1148
ALSA-2026:1690
AZL-71396
BDU:2026-05107
CVE-2025-40248
DLA-4404-1
ECHO-CC0C-2E61-E81C
MGASA-2026-0017
MGASA-2026-0018
OPENSUSE-SU-2026:20145-1
RHSA-2026:1142
RHSA-2026:1143
RHSA-2026:1148
RHSA-2026:1442
RHSA-2026:1445
RHSA-2026:1494
RHSA-2026:1495
RHSA-2026:1512
RHSA-2026:1581
RHSA-2026:1623
RHSA-2026:1690
RHSA-2026:1703
RHSA-2026:1727
RHSA-2026:1879
RHSA-2026:1886
RHSA-2026:1909
RHSA-2026:1946
RHSA-2026:3848
RHSA-2026:3865
RHSA-2026:3866
RHSA-2026:3867
RHSA-2026:3868
RHSA-2026:3873
RHSA-2026:3886
RHSA-2026:3987
SUSE-SU-2026:0278-1
SUSE-SU-2026:0281-1
SUSE-SU-2026:0315-1
SUSE-SU-2026:0316-1
SUSE-SU-2026:20207-1
SUSE-SU-2026:20220-1
SUSE-SU-2026:20228-1
SUSE-SU-2026:20477-1
SUSE-SU-2026:20498-1
SUSE-SU-2026:20845-1
SUSE-SU-2026:20876-1
USN-8094-1
USN-8094-2
USN-8094-3
USN-8094-4
USN-8094-5
USN-8095-1
USN-8095-2
USN-8095-3
USN-8095-4
USN-8095-5
USN-8096-1
USN-8096-2
USN-8096-3
USN-8096-4
USN-8096-5
USN-8100-1
USN-8116-1
USN-8125-1
USN-8126-1
USN-8141-1
USN-8152-1
USN-8163-1
USN-8163-2
USN-8165-1
USN-8243-1
USN-8261-1

Affected Products

Debian
Linuxmint
Linux Kernel
Rocky Linux
Ubuntu