CVE-2025-22037
ksmbd: fix null pointer dereference in alloc_preauth_hash()
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 2d3461d6ae74ebdcd4d65128c855198649bcadcd; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < cce57cd8c5dead24127cf2308fdd60fcad2d6ba6; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < b8eb243e670ecf30e91524dd12f7260dac07d335; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780
- Anyone running Linux 5.15
Vulnerability facts
- Affected
- Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 2d3461d6ae74ebdcd4d65128c855198649bcadcd; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < cce57cd8c5dead24127cf2308fdd60fcad2d6ba6; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < b8eb243e670ecf30e91524dd12f7260dac07d335; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780; Linux 5.15
- Fixed in
- Linux 2d3461d6ae74ebdcd4d65128c855198649bcadcd, Linux 8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 1.21% chance of exploitation in 30 days (percentile 68, 2026-11-26)
- CWE
- CWE-476
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix null pointer dereference in alloc_preauth_hash() The Client send malformed smb2 negotiate request. ksmbd return error response. Subsequently, the client can send smb2 session setup even thought conn->preauth_info is not allocated. This patch add KSMBD_SESS_NEED_SETUP status of connection to ignore session setup request if smb2 negotiate phase is not complete.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 2d3461d6ae74ebdcd4d65128c855198649bcadcd; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < cce57cd8c5dead24127cf2308fdd60fcad2d6ba6; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < b8eb243e670ecf30e91524dd12f7260dac07d335; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780 | — | 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-22037. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-22037.md Affected: Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 2d3461d6ae74ebdcd4d65128c855198649bcadcd; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < cce57cd8c5dead24127cf2308fdd60fcad2d6ba6; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad; >= 0626e6641f6b467447c81dd… Fixed in: Linux 2d3461d6ae74ebdcd4d65128c855198649bcadcd, Linux 8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d 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
Patches
- https://git.kernel.org/stable/c/cce57cd8c5dead24127cf2308fdd60fcad2d6ba6
- https://git.kernel.org/stable/c/ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad
- https://git.kernel.org/stable/c/8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d
- https://git.kernel.org/stable/c/b8eb243e670ecf30e91524dd12f7260dac07d335
- https://git.kernel.org/stable/c/c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780
FAQ
Is CVE-2025-22037 being exploited?
There is no confirmed exploitation: CVE-2025-22037 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.21% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-22037?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2025-22037?
Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 2d3461d6ae74ebdcd4d65128c855198649bcadcd; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < cce57cd8c5dead24127cf2308fdd60fcad2d6ba6; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < b8eb243e670ecf30e91524dd12f7260dac07d335; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780; Linux 5.15.
Is there a fix for CVE-2025-22037?
Yes. Fixed in Linux 2d3461d6ae74ebdcd4d65128c855198649bcadcd, Linux 8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-22037?
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.