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

Published Apr 1, 2025
·
Updated

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

12 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel>=5.15<6.1.131
Linux Linux kernel>=6.2<6.6.83
Linux Linux kernel>=6.7<6.12.19
Linux Linux kernel>=6.13<6.13.7
Linux Linux kernel=6.14-rc1
Linux Linux kernel=6.14-rc2
Linux Linux kernel=6.14-rc3
Linux Linux kernel=6.14-rc4
Linux Linux kernel=6.14-rc5
Microsoft azl3 kernel 6.6.82.1-1<6.6.85.1-2
6.6.85.1-2
Microsoft azl3 kernel 6.6.85.1-2<6.6.85.1-2
6.6.85.1-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.85.1-2

Event History

Apr 1, 2025
CVE Published
via MITRE·03:41 PM
Data Sourced
via MITRE·03:41 PM
DescriptionSeverity
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
May 5, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
SeverityAffected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity

Frequently Asked Questions

1

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.

2

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.

3

What platforms are affected by CVE-2025-21947?

CVE-2025-21947 affects multiple versions of the Linux kernel that utilize the ksmbd subsystem.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203