Vulnerability · Published Apr 16, 2025 · Assigned by Linux
CVE-2025-22037ksmbd: fix null pointer dereference in alloc_preauth_hash()
High 7.5
In plain English
A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 68.8% (higher than 99.3% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | no fix listed | DEBIAN-CVE-2025-22037 |
| Debian:13 | linux | 6.12.25-1 | DEBIAN-CVE-2025-22037 |
| Debian:14 | linux | 6.12.25-1 | DEBIAN-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux | 6.8.0-101.101 | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux | 6.8.0-101.101 | USN-8059-1 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-aws | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1047.50 | USN-8059-6 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1047.50 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1047.50~22.04.1 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1047.50~22.04.1 | USN-8059-6 |
| Ubuntu:22.04:LTS | linux-azure | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1051.57 | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1051.57 | USN-8125-1 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-azure-6.11 | 6.11.0-1018.18~24.04.1 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-azure-6.8 | 6.8.0-1051.57~22.04.1 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-azure-6.8 | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu:22.04:LTS | linux-azure-fde | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-azure-fde | 6.8.0-1058.65 | UBUNTU-CVE-2025-22037 |
| Ubuntu:25.10 | linux-azure-fde | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.8 | 6.8.0-1058.65~22.04.1 | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-azure-nvidia | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-gcp | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1048.51 | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1048.51 | USN-8059-3 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-gcp-6.11 | 6.11.0-1016.16~24.04.1 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1048.51~22.04.1 | USN-8059-3 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1048.51~22.04.1 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-gke | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1044.49 | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1044.49 | USN-8059-3 |
| Ubuntu:22.04:LTS | linux-gkeop | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1031.34 | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1031.34 | USN-8059-1 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-hwe-6.11 | 6.11.0-28.28~24.04.1 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-101.101~22.04.1 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-101.101~22.04.1 | USN-8059-1 |
| Ubuntu:22.04:LTS | linux-ibm | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1045.45 | USN-8059-6 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1045.45 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-ibm-6.8 | 6.8.0-1045.45~22.04.1 | USN-8059-6 |
| Ubuntu:22.04:LTS | linux-ibm-6.8 | 6.8.0-1045.45~22.04.1 | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-intel | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-intel-iotg | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-kvm | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-lowlatency | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-101.101.1 | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-101.101.1 | USN-8059-1 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-lowlatency-hwe-6.11 | 6.11.0-1015.16~24.04.2 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-101.101.1~22.04.1 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-101.101.1~22.04.1 | USN-8059-1 |
| Ubuntu:22.04:LTS | linux-nvidia | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1047.50 | USN-8059-8 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1047.50 | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-nvidia-6.11 | 6.11.0-1012.12 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1047.50~22.04.1 | USN-8059-8 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1047.50~22.04.1 | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1047.50.1 | USN-8059-8 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1047.50.1 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-nvidia-tegra | 6.8.0-1020.20 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-oem-6.11 | 6.11.0-1024.24 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-oracle | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1044.45 | USN-8059-1 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1044.45 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1044.45~22.04.1 | USN-8059-3 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1044.45~22.04.1 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-raspi | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1048.52 | USN-8059-1 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1048.52 | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-riscv-6.8 | 6.8.0-101.101~22.04.1 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2025-22037 |
| Ubuntu:24.04:LTS | linux-xilinx | 6.8.0-1024.25 | USN-8059-6 |
| Ubuntu:24.04:LTS | linux-xilinx | 6.8.0-1024.25 | UBUNTU-CVE-2025-22037 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | no fix listed | UBUNTU-CVE-2025-22037 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf – before 2d3461d6ae74ebdcd4d65128c855198649bcadcd0626e6641f6b467447c81dd7678a69c66f7746cf – before cce57cd8c5dead24127cf2308fdd60fcad2d6ba60626e6641f6b467447c81dd7678a69c66f7746cf – before ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad0626e6641f6b467447c81dd7678a69c66f7746cf – before 8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d0626e6641f6b467447c81dd7678a69c66f7746cf – before b8eb243e670ecf30e91524dd12f7260dac07d3350626e6641f6b467447c81dd7678a69c66f7746cf – before c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780 |
| Linux | Linux | 5.15 |
References
- https://git.kernel.org/stable/c/2d3461d6ae74ebdcd4d65128c855198649bcadcd
- 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
- https://www.zerodayinitiative.com/advisories/ZDI-25-310/