CVE-2025-22037

Source
https://cve.org/CVERecord?id=CVE-2025-22037
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-22037.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-22037
Downstream
Published
2025-04-16T14:11:55.670Z
Modified
2026-03-20T12:41:17.744513Z
Summary
ksmbd: fix null pointer dereference in alloc_preauth_hash()
Details

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix null pointer dereference in allocpreauthhash()

The Client send malformed smb2 negotiate request. ksmbd return error response. Subsequently, the client can send smb2 session setup even thought conn->preauthinfo is not allocated. This patch add KSMBDSESSNEEDSETUP status of connection to ignore session setup request if smb2 negotiate phase is not complete.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22037.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0626e6641f6b467447c81dd7678a69c66f7746cf
Fixed
cce57cd8c5dead24127cf2308fdd60fcad2d6ba6
Fixed
ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad
Fixed
8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d
Fixed
b8eb243e670ecf30e91524dd12f7260dac07d335
Fixed
c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-22037.json"