VDB

CVE-2025-21947

CVE-2025-21947 PUBLISHED CVSS 8.1 HIGH

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.

PackageEcosystemFixed in
linux_kernellinux6.13.7, 6.12.19, 6.6.83, 6.1.131
LinuxLinux76861630b29e51373e73e7b00ad0d467b6941162, 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea

Risk scores

CVSS 3.1
8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux0626e6641f6b467447c81dd7678a69c66f7746cf, 0626e6641f6b467447c81dd7678a69c66f7746cf, 0626e6641f6b467447c81dd7678a69c66f7746cf
LinuxLinux5.15, 0, 6.1.131
LinuxLinux0626e6641f6b467447c81dd7678a69c66f7746cf, 6.6.83, 6.12.19
linuxlinux_kernel5.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›