Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-21947

HIGH 8.1EPSS 38%

ksmbd: fix type confusion via race condition when using ipc_msg_send_request

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 6321bbda4244b93802d61cfe0887883aae322f4b; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 76861630b29e51373e73e7b00ad0d467b6941162; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 1e8833c03a38e1d5d5df6484e3f670a2fd38fb76; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < e2ff19f0b7a30e03516e6eb73b948e27a55bc9d2
  • Anyone running Linux 5.15

Vulnerability facts

Affected
Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 6321bbda4244b93802d61cfe0887883aae322f4b; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 76861630b29e51373e73e7b00ad0d467b6941162; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 1e8833c03a38e1d5d5df6484e3f670a2fd38fb76; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < e2ff19f0b7a30e03516e6eb73b948e27a55bc9d2; Linux 5.15
Fixed in
Linux 6321bbda4244b93802d61cfe0887883aae322f4b, Linux 76861630b29e51373e73e7b00ad0d467b6941162, Linux 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea, Linux 1e8833c03a38e1d5d5df6484e3f670a2fd38fb76
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.53% chance of exploitation in 30 days (percentile 38, 2026-11-26)
CWE
CWE-362
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 6321bbda4244b93802d61cfe0887883aae322f4b; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 76861630b29e51373e73e7b00ad0d467b6941162; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 1e8833c03a38e1d5d5df6484e3f670a2fd38fb76; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < e2ff19f0b7a30e03516e6eb73b948e27a55bc9d2—cvelist
Linux5.15—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-21947. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21947.md
Affected: Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 6321bbda4244b93802d61cfe0887883aae322f4b; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 76861630b29e51373e73e7b00ad0d467b6941162; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea; >= 0626e6641f6b467447c81dd…
Fixed in: Linux 6321bbda4244b93802d61cfe0887883aae322f4b, Linux 76861630b29e51373e73e7b00ad0d467b6941162, Linux 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea, Linux 1e8833c03a38e1d5d5df6484e3f670a2fd38fb76

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-21947 being exploited?

There is no confirmed exploitation: CVE-2025-21947 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.53% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-21947?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2025-21947?

Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 6321bbda4244b93802d61cfe0887883aae322f4b; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 76861630b29e51373e73e7b00ad0d467b6941162; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 1e8833c03a38e1d5d5df6484e3f670a2fd38fb76; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < e2ff19f0b7a30e03516e6eb73b948e27a55bc9d2; Linux 5.15.

Is there a fix for CVE-2025-21947?

Yes. Fixed in Linux 6321bbda4244b93802d61cfe0887883aae322f4b, Linux 76861630b29e51373e73e7b00ad0d467b6941162, Linux 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea, Linux 1e8833c03a38e1d5d5df6484e3f670a2fd38fb76. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2025-21947?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors