CVE-2025-40084
ksmbd: transport_ipc: validate payload size before reading handle
Mitigation
- Upgrade Linux to 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0 or later.
Who should check
- Anyone running Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < a02e432d5130da4c723aabe1205bac805889fdb2; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 2dc125f5da134c0915a840b62565c60a595673dd; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 898d527ed94c19980a4d848f10057f1fed578ffb; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 867ffd9d67285612da3f0498ca618297f8e41f01; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0
- Anyone running Linux 5.15
Vulnerability facts
- Affected
- Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < a02e432d5130da4c723aabe1205bac805889fdb2; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 2dc125f5da134c0915a840b62565c60a595673dd; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 898d527ed94c19980a4d848f10057f1fed578ffb; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 867ffd9d67285612da3f0498ca618297f8e41f01; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0; Linux 5.15
- Fixed in
- Linux 2dc125f5da134c0915a840b62565c60a595673dd, Linux 898d527ed94c19980a4d848f10057f1fed578ffb, Linux 867ffd9d67285612da3f0498ca618297f8e41f01, Linux 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.1 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.22% chance of exploitation in 30 days (percentile 8, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: transport_ipc: validate payload size before reading handle handle_response() dereferences the payload as a 4-byte handle without verifying that the declared payload size is at least 4 bytes. A malformed or truncated message from ksmbd.mountd can lead to a 4-byte read past the declared payload size. Validate the size before dereferencing. This is a minimal fix to guard the initial handle read.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < a02e432d5130da4c723aabe1205bac805889fdb2; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 2dc125f5da134c0915a840b62565c60a595673dd; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 898d527ed94c19980a4d848f10057f1fed578ffb; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 867ffd9d67285612da3f0498ca618297f8e41f01; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0 | — | cvelist |
| Linux | 5.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-40084. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-40084.md Affected: Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < a02e432d5130da4c723aabe1205bac805889fdb2; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 2dc125f5da134c0915a840b62565c60a595673dd; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 898d527ed94c19980a4d848f10057f1fed578ffb; >= 0626e6641f6b467447c81dd… Fixed in: Linux 2dc125f5da134c0915a840b62565c60a595673dd, Linux 898d527ed94c19980a4d848f10057f1fed578ffb, Linux 867ffd9d67285612da3f0498ca618297f8e41f01, Linux 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0 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
Other
- https://git.kernel.org/stable/c/a02e432d5130da4c723aabe1205bac805889fdb2
- https://git.kernel.org/stable/c/2dc125f5da134c0915a840b62565c60a595673dd
- https://git.kernel.org/stable/c/898d527ed94c19980a4d848f10057f1fed578ffb
- https://git.kernel.org/stable/c/867ffd9d67285612da3f0498ca618297f8e41f01
- https://git.kernel.org/stable/c/6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0
FAQ
Is CVE-2025-40084 being exploited?
There is no confirmed exploitation: CVE-2025-40084 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-40084?
High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-40084?
Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < a02e432d5130da4c723aabe1205bac805889fdb2; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 2dc125f5da134c0915a840b62565c60a595673dd; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 898d527ed94c19980a4d848f10057f1fed578ffb; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 867ffd9d67285612da3f0498ca618297f8e41f01; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0; Linux 5.15.
Is there a fix for CVE-2025-40084?
Yes. Fixed in Linux 2dc125f5da134c0915a840b62565c60a595673dd, Linux 898d527ed94c19980a4d848f10057f1fed578ffb, Linux 867ffd9d67285612da3f0498ca618297f8e41f01, Linux 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0. Upgrade Linux to 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0 or later.
How do I check if I'm affected by CVE-2025-40084?
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.