CVE Database›Document archive›CVE-2025-21947

CVE-2025-21947

kernel: ksmbd: fix type confusion via race condition when using ipc_msg_send_request

Loading…

Severity

Moderate

Red Hat Product Security

4.7

CVSS 3.1

Review impact separately from score.

Published · April 1, 2025

Updated · October 30, 2026

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.

Statement

This vulnerability is rated as having a Moderate impact because exploitation depends on winning a race condition during IPC response processing, which limits reliability and primarily leads to denial-of-service conditions. Red Hat Enterprise Linux does not build or ship the in-kernel SMB server module (ksmbd) in any supported kernel releases. As a result, Red Hat Enterprise Linux products are not vulnerable to this issue.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 4.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-362 · Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')