CVE-2025-21947: ksmbd: fix type confusion via race condition when using ipc_msg_send_request
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix type confusion via race condition when using ipcmsgsendrequest
req->handle is allocated using ksmbdacquireid(&ipcida), based on idaalloc. req->handle from ksmbdipcloginrequest and FSCTLPIPETRANSCEIVE 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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.6.85.1-2
Event History
Frequently Asked Questions
What is the severity of CVE-2025-21947?
CVE-2025-21947 is classified with a severity level that indicates it can potentially lead to type confusion and exploitability in the Linux kernel.
How do I fix CVE-2025-21947?
To mitigate CVE-2025-21947, it is recommended to update the Linux kernel to the latest version where the vulnerability has been addressed.
What platforms are affected by CVE-2025-21947?
CVE-2025-21947 affects multiple versions of the Linux kernel that utilize the ksmbd subsystem.
What are the potential impacts of CVE-2025-21947?
Exploitation of CVE-2025-21947 could lead to unauthorized access or control over the affected systems due to type confusion.
When was CVE-2025-21947 disclosed?
CVE-2025-21947 was disclosed as part of security updates in the Linux kernel and is documented in official security advisories.