CVE-2025-21947

ksmbd: fix type confusion via race condition when using ipc_msg_send_request

State
Published
Severity
8.1 High
Published
Apr 1, 2025
Updated
Aug 5, 2026
Reserved
Dec 29, 2024

Read the record on cve.org

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

CVSSScoreVectorSource
3.18.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
3.14.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

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

Affected Products

ProductVersions
LinuxLinux
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 6321bbda4244b93802d61cfe0887883aae322f4bAffected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 76861630b29e51373e73e7b00ad0d467b6941162Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aeaAffected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 1e8833c03a38e1d5d5df6484e3f670a2fd38fb76Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before e2ff19f0b7a30e03516e6eb73b948e27a55bc9d2Affected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 6.1.131 through 6.1.*Not affected
  • 6.6.83 through 6.6.*Not affected
  • 6.12.19 through 6.12.*Not affected
  • 6.13.7 through 6.13.*Not affected
  • 6.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.