Use-after-free in Linux kernel - CVE-2025-40248
Published: December 4, 2025
Vulnerability identifier: #VU119165
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2025-40248
CWE-ID: CWE-416
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vendor: Linux Foundation
Affected software:
Linux kernel
Linux kernel
Detailed vulnerability description
The vulnerability allows a local user to escalate privileges on the system.
The vulnerability exists due to a use-after-free error within the vsock_connect() function in net/vmw_vsock/af_vsock.c. A local user can escalate privileges on the system.
How to mitigate CVE-2025-40248
Install update from vendor's repository.
Sources
- https://git.kernel.org/stable/c/002541ef650b742a198e4be363881439bb9d86b4
- https://git.kernel.org/stable/c/3f71753935d648082a8279a97d30efe6b85be680
- https://git.kernel.org/stable/c/5998da5a8208ae9ad7838ba322bccb2bdcd95e81
- https://git.kernel.org/stable/c/ab6b19f690d89ae4709fba73a3c4a7911f495b7a
- https://git.kernel.org/stable/c/f1c170cae285e4b8f61be043bb17addc3d0a14b5