What’s Vulnerable › Vulnerabilities

CVE-2025-21947: ksmbd: fix type confusion via race condition when using ipc_msg_send_request

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 6.1.131, 6.12.19, 6.13.7, 6.6.83. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-21947 or the next vulnerability affects your stack