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

- Severity: High 8.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2025-04-01T15:41:09.457Z
- Modified: 2026-08-05T11:55:32.548Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 0626e6641f6b467447c81dd7678a69c66f7746cf before 6321bbda4244b93802d61cfe0887883aae322f4b; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 76861630b29e51373e73e7b00ad0d467b6941162; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 1e8833c03a38e1d5d5df6484e3f670a2fd38fb76; from 0626e6641f6b467447c81dd7678a69c66f7746cf before e2ff19f0b7a30e03516e6eb73b948e27a55bc9d2; 5.15 (not affected: before 5.15; from 6.1.131 up to 6.1.*; from 6.6.83 up to 6.6.*; from 6.12.19 up to 6.12.*; from 6.13.7 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 5.15 before 6.1.131; from 6.2 before 6.6.83; from 6.7 before 6.12.19; from 6.13 before 6.13.7; 6.14

## Every score

- Linux: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/6321bbda4244b93802d61cfe0887883aae322f4b> (patch)
- <https://git.kernel.org/stable/c/76861630b29e51373e73e7b00ad0d467b6941162> (patch)
- <https://git.kernel.org/stable/c/3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea> (patch)
- <https://git.kernel.org/stable/c/1e8833c03a38e1d5d5df6484e3f670a2fd38fb76> (patch)
- <https://git.kernel.org/stable/c/e2ff19f0b7a30e03516e6eb73b948e27a55bc9d2> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## Sources

- CVE List: [CVE-2025-21947](https://www.cve.org/CVERecord?id=CVE-2025-21947), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-21947](https://nvd.nist.gov/vuln/detail/CVE-2025-21947), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21947 · Whole record: https://cve.day/CVE-2025-21947.json · Rebuilt by cve.day 2026-11-25T22:58:55.901Z
