CVE-2025-22037

ksmbd: fix null pointer dereference in alloc_preauth_hash()

7.5 high EPSS 69.4%

Published 16 Apr 2025 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2025-22037

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-22037 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.5 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 69.4%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.3% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before 2d3461d6ae74ebdcd4d65128c855198649bcadcd
affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before cce57cd8c5dead24127cf2308fdd60fcad2d6ba6
affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad
affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before 8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d
affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before b8eb243e670ecf30e91524dd12f7260dac07d335
affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780
Other versions: unaffected
Linux
affected 5.15
unaffected before 5.15
unaffected from 6.1.191 up to and including 6.1.*
unaffected from 6.6.107 up to and including 6.6.*
unaffected from 6.12.23 up to and including 6.12.*
unaffected from 6.13.11 up to and including 6.13.*
unaffected from 6.14.2 up to and including 6.14.*
unaffected 6.15 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-22037 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-22037

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-22037
trivy image --scanners vuln IMAGE | grep CVE-2025-22037

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-22037 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.