CVE-2025-21947
ksmbd: fix type confusion via race condition when using ipc_msg_send_request
Reported by linux · Published April 1, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.13.7, 6.12.19, 6.6.83, 6.1.131 |
| Linux | Linux | 76861630b29e51373e73e7b00ad0d467b6941162, 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf, 0626e6641f6b467447c81dd7678a69c66f7746cf, 0626e6641f6b467447c81dd7678a69c66f7746cf |
| Linux | Linux | 5.15, 0, 6.1.131 |
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf, 6.6.83, 6.12.19 |
| linux | linux_kernel | 5.15, 5.15, 5.15 |
Timeline
- Apr 1, 2025 CVE Published
- Apr 2, 2025 EPSS Score (30 in total, the first dated here)
- Jun 2, 2025 Coalition ESS Score (8 in total, the first dated here)
- Dec 21, 2025 Security Advisory (261 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (235 in total, the first dated here)
- Nov 2, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-21947
vulnetix vdb fixes CVE-2025-21947
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-21947/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart