CVE-2025-21947

HIGH

Linux Kernel 5.15-6.1.130, 6.2-6.6.82, 6.7-6.12.18, 6.13-6.13.6 - Race Condition in ksmbd IPC Message Handling

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix type confusion via race condition when using ipc_msg_send_request req->handle is allocated using ksmbd_acquire_id(&ipc_ida), based on ida_alloc. req->handle from ksmbd_ipc_login_request and FSCTL_PIPE_TRANSCEIVE ioctl can be same and it could lead to type confusion between messages, resulting in access to unexpected parts of memory after an incorrect delivery. ksmbd check type of ipc response but missing add continue to check next ipc reponse.

Scores

CVSS v3 8.1
EPSS 0.0031
EPSS Percentile 22.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-362
Status published
Products (18)
linux/Kernel 5.15.0 - 6.1.131linux
linux/Kernel 6.13.0 - 6.13.7linux
linux/Kernel 6.2.0 - 6.6.83linux
linux/Kernel 6.7.0 - 6.12.19linux
Linux/Linux < 5.15
Linux/Linux 0626e6641f6b467447c81dd7678a69c66f7746cf - 1e8833c03a38e1d5d5df6484e3f670a2fd38fb76
Linux/Linux 0626e6641f6b467447c81dd7678a69c66f7746cf - 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea
Linux/Linux 0626e6641f6b467447c81dd7678a69c66f7746cf - 6321bbda4244b93802d61cfe0887883aae322f4b
Linux/Linux 0626e6641f6b467447c81dd7678a69c66f7746cf - 76861630b29e51373e73e7b00ad0d467b6941162
Linux/Linux 0626e6641f6b467447c81dd7678a69c66f7746cf - e2ff19f0b7a30e03516e6eb73b948e27a55bc9d2
... and 8 more
Published Apr 01, 2025
Tracked Since Feb 18, 2026