# CVE-2025-21947: ksmbd: fix type confusion via race condition when using ipc\_msg\_send\_request

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2025-04-01 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2025-21947, DEBIAN-CVE-2025-21947
- Record: https://cvemate.com/vulnerability/CVE-2025-21947 · JSON: https://cvemate.com/vulnerability/CVE-2025-21947/json

## Description

```text
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.
```

## Signals

- CVSS: 8.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.392%, percentile 35.41%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 130)

- debian linux (Debian): \< 6.1.133-1 \| \< 6.12.19-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-202.212 \| \< 6.8.0-84.84
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1119.126 \| \< 6.8.0-1039.41
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1119.126~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1039.41~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1119.126+fips1 \| \< 6.8.0-1039.41+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1125.134 \| \< 6.8.0-1038.44
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1125.134~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 33)

- <https://git.kernel.org/stable/c/6321bbda4244b93802d61cfe0887883aae322f4b>
- <https://git.kernel.org/stable/c/76861630b29e51373e73e7b00ad0d467b6941162>
- <https://git.kernel.org/stable/c/3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea>
- <https://git.kernel.org/stable/c/1e8833c03a38e1d5d5df6484e3f670a2fd38fb76>
- <https://git.kernel.org/stable/c/e2ff19f0b7a30e03516e6eb73b948e27a55bc9d2>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://ubuntu.com/security/CVE-2025-21947>
- <https://www.cve.org/CVERecord?id=CVE-2025-21947>
- <https://git.kernel.org/linus/e2ff19f0b7a30e03516e6eb73b948e27a55bc9d2>
- <https://ubuntu.com/security/notices/USN-7605-1>
- <https://ubuntu.com/security/notices/USN-7606-1>
- <https://ubuntu.com/security/notices/USN-7605-2>
- <https://ubuntu.com/security/notices/USN-7628-1>
- <https://ubuntu.com/security/notices/USN-7764-1>
- <https://ubuntu.com/security/notices/USN-7765-1>
- <https://ubuntu.com/security/notices/USN-7766-1>
- <https://ubuntu.com/security/notices/USN-7767-1>
- <https://ubuntu.com/security/notices/USN-7779-1>
- <https://ubuntu.com/security/notices/USN-7767-2>
- <https://ubuntu.com/security/notices/USN-7764-2>

---

Data as of 2026-12-05T04:44:49.361Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
