CVE-2024-50283
published critical CVSS 3.1 · 9.8ksmbd: fix slab-use-after-free in smb3_preauth_hash_rsp
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0626e6641f6b467447c81dd7678a69c66f7746cf to < cb645064e0811053c94e86677f2e58ed29359d62 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < f7557bbca40d4ca8bb1c6c940ac6c95078bd0827 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < c6cdc08c25a868a08068dfc319fa9fce982b8e7f · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 1b6ad475d4ed577d34e0157eb507be00c588bf5c · 0626e6641f6b467447c81dd7678a69c66f7746cf to < b8fc56fbca7482c1e5c0e3351c6ae78982e25ada · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.174 through 5.15.* (unaffected · semver) · 6.1.117 through 6.1.* (unaffected · semver) · 6.6.61 through 6.6.* (unaffected · semver) · 6.11.8 through 6.11.* (unaffected · semver) · 6.12 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bookworm | linux | Advisory build | 6.1.119-1 | DSA-5818-1 |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Ubuntu | focal | linux-aws-5.15 | Advisory build | 5.15.0-1080.87~20.04.1 | USN-7388-1 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.119-1~deb11u1 | DLA-4008-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uekaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uekx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-corex86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debugaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debugx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debug-coreaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debug-corex86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-develaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-develx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-docaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-docx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-modulesaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-modulesx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-modules-extraaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-modules-extrax86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-corex86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debugaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debugx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debug-coreaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debug-corex86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-develaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-develx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-docaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-docx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-modulesaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-modulesx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-modules-extraaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-modules-extrax86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Ubuntu | focal | linux-aws-5.15-cloud-tools-5.15.0-1080 | Advisory build | 5.15.0-1080.87~20.04.1 | USN-7388-1 |
| Ubuntu | focal | linux-aws-5.15-headers-5.15.0-1080 | Advisory build | 5.15.0-1080.87~20.04.1 | USN-7388-1 |
| Ubuntu | focal | linux-aws-5.15-tools-5.15.0-1080 | Advisory build | 5.15.0-1080.87~20.04.1 | USN-7388-1 |
| Ubuntu | focal | linux-azure-5.15 | Advisory build | 5.15.0-1086.95~20.04.1 | USN-7421-1 |
| Ubuntu | focal | linux-azure-5.15-cloud-tools-5.15.0-1086 | Advisory build | 5.15.0-1086.95~20.04.1 | USN-7421-1 |
| Ubuntu | focal | linux-azure-5.15-headers-5.15.0-1086 | Advisory build | 5.15.0-1086.95~20.04.1 | USN-7421-1 |
| Ubuntu | focal | linux-azure-5.15-tools-5.15.0-1086 | Advisory build | 5.15.0-1086.95~20.04.1 | USN-7421-1 |
| Ubuntu | focal | linux-azure-fde-5.15 | Advisory build | 5.15.0-1086.95~20.04.1.1 | USN-7421-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1074-ibm | Advisory build | 5.15.0-1074.77~20.04.1 | USN-7458-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1077-intel-iotg | Advisory build | 5.15.0-1077.83~20.04.1 | USN-7459-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1077-oracle | Advisory build | 5.15.0-1077.83~20.04.1 | USN-7387-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1080-aws | Advisory build | 5.15.0-1080.87~20.04.1 | USN-7388-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1081-gcp | Advisory build | 5.15.0-1081.90~20.04.1 | USN-7459-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1086-azure | Advisory build | 5.15.0-1086.95~20.04.1 | USN-7421-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-135-lowlatency | Advisory build | 5.15.0-135.146~20.04.1 | USN-7387-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-135-lowlatency-64k | Advisory build | 5.15.0-135.146~20.04.1 | USN-7387-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-136-generic | Advisory build | 5.15.0-136.147~20.04.1 | USN-7407-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-136-generic-64k | Advisory build | 5.15.0-136.147~20.04.1 | USN-7407-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-136-generic-lpae | Advisory build | 5.15.0-136.147~20.04.1 | USN-7407-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1077-intel-iotg | Advisory build | 5.15.0-1077.83~20.04.1 | USN-7459-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1080-aws | Advisory build | 5.15.0-1080.87~20.04.1 | USN-7388-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1086-azure | Advisory build | 5.15.0-1086.95~20.04.1 | USN-7421-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-135-lowlatency | Advisory build | 5.15.0-135.146~20.04.1 | USN-7387-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-136-generic | Advisory build | 5.15.0-136.147~20.04.1 | USN-7407-1 |
| Ubuntu | focal | linux-gcp-5.15 | Advisory build | 5.15.0-1081.90~20.04.1 | USN-7459-2 |
| Ubuntu | focal | linux-gcp-5.15-headers-5.15.0-1081 | Advisory build | 5.15.0-1081.90~20.04.1 | USN-7459-2 |
| Ubuntu | focal | linux-gcp-5.15-tools-5.15.0-1081 | Advisory build | 5.15.0-1081.90~20.04.1 | USN-7459-2 |
| Ubuntu | focal | linux-headers-5.15.0-1074-ibm | Advisory build | 5.15.0-1074.77~20.04.1 | USN-7458-1 |
| Ubuntu | focal | linux-headers-5.15.0-1077-intel-iotg | Advisory build | 5.15.0-1077.83~20.04.1 | USN-7459-1 |
| Ubuntu | focal | linux-headers-5.15.0-1077-oracle | Advisory build | 5.15.0-1077.83~20.04.1 | USN-7387-1 |
| Ubuntu | focal | linux-headers-5.15.0-1080-aws | Advisory build | 5.15.0-1080.87~20.04.1 | USN-7388-1 |
| Ubuntu | focal | linux-headers-5.15.0-1081-gcp | Advisory build | 5.15.0-1081.90~20.04.1 | USN-7459-2 |
| Ubuntu | focal | linux-headers-5.15.0-1086-azure | Advisory build | 5.15.0-1086.95~20.04.1 | USN-7421-1 |
| Ubuntu | focal | linux-headers-5.15.0-135-lowlatency | Advisory build | 5.15.0-135.146~20.04.1 | USN-7387-1 |
| Ubuntu | focal | linux-headers-5.15.0-135-lowlatency-64k | Advisory build | 5.15.0-135.146~20.04.1 | USN-7387-1 |
| Ubuntu | focal | linux-headers-5.15.0-136-generic | Advisory build | 5.15.0-136.147~20.04.1 | USN-7407-1 |
| Ubuntu | focal | linux-headers-5.15.0-136-generic-64k | Advisory build | 5.15.0-136.147~20.04.1 | USN-7407-1 |
| Ubuntu | focal | linux-headers-5.15.0-136-generic-lpae | Advisory build | 5.15.0-136.147~20.04.1 | USN-7407-1 |
| Ubuntu | focal | linux-hwe-5.15 | Advisory build | 5.15.0-136.147~20.04.1 | USN-7407-1 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-5.15.0-136 | Advisory build | 5.15.0-136.147~20.04.1 | USN-7407-1 |
| Ubuntu | focal | linux-hwe-5.15-headers-5.15.0-136 | Advisory build | 5.15.0-136.147~20.04.1 | USN-7407-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix slab-use-after-free in smb3_preauth_hash_rsp ksmbd_user_session_put should be called under smb3_preauth_hash_rsp(). It will avoid freeing session before calling smb3_preauth_hash_rsp().
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The bug is in ksmbd, the in-kernel SMB server, and is reached purely by sending SMB2 NEGOTIATE/SESSION_SETUP packets to TCP port 445 (or SMB-Direct/RDMA). No local access is required. AC:L - The attacker controls both sides of the race — one pipelined SESSION_SETUP is made to fail (marking the session EXPIRED and dropping refcnt to 0 at the premature put), while a second concurrent SESSION_SETUP on the same connection invokes ksmbd_expire_session() to free it, with requests served in parallel by ksmbd-io kworkers. Attempts are cheap and unlimited since no authentication or delay gates the path. PR:N - The entire path is pre-authentication: ksmbd_smb2_session_create() runs on a SESSION_SETUP with SessionId==0 before any credential check, and the failing setup can be triggered by a malformed negotiate blob (-EINVAL) with no valid user. No SMB credentials or local account are needed. UI:N - Exploitation requires only that the target has ksmbd running and reachable; the attacker sends all traffic itself with no victim action involved. S:U - The freed object, the corrupting write, and the impact all reside within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - This is a slab use-after-free on struct ksmbd_session, and after heap reclaim smb3_preauth_hash_rsp() reads the attacker-supplied Preauth_HashValue pointer and feeds 64 bytes from that address into SHA-512, yielding a controlled kernel-memory read primitive on top of the freed-object disclosure. I:H - crypto_shash_final() writes a 64-byte SHA-512 digest through the attacker-controlled Preauth_HashValue pointer taken from the reclaimed session object, giving a remote arbitrary kernel write suitable for control-flow hijacking; the UAF itself also enables standard heap-spray exploitation. A:H - The use-after-free reliably produces a KASAN slab-use-after-free / oops, and the write through a bogus pointer read from freed memory panics the kernel, taking down the whole system remotely and repeatably.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf to < cb645064e0811053c94e86677f2e58ed29359d62 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < f7557bbca40d4ca8bb1c6c940ac6c95078bd0827 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < c6cdc08c25a868a08068dfc319fa9fce982b8e7f (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 1b6ad475d4ed577d34e0157eb507be00c588bf5c (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < b8fc56fbca7482c1e5c0e3351c6ae78982e25ada (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.174 through 5.15.* (unaffected · semver)6.1.117 through 6.1.* (unaffected · semver)6.6.61 through 6.6.* (unaffected · semver)6.11.8 through 6.11.* (unaffected · semver)6.12 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-416 CWE-416 Use After Free
References
6- https://git.kernel.org/stable/c/1b6ad475d4ed577d34e0157eb507be00c588bf5c
- https://git.kernel.org/stable/c/b8fc56fbca7482c1e5c0e3351c6ae78982e25ada
- https://git.kernel.org/stable/c/c6cdc08c25a868a08068dfc319fa9fce982b8e7f
- https://git.kernel.org/stable/c/cb645064e0811053c94e86677f2e58ed29359d62
- https://git.kernel.org/stable/c/f7557bbca40d4ca8bb1c6c940ac6c95078bd0827
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
Provider assertions
3Linux · cna
ksmbd: fix slab-use-after-free in smb3_preauth_hash_rsp
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- fb7264b00b20bb71fa51d45e57777cac662a15c59be1366b29aea7e07c7fc6f9
- Ingested
- 23 Sep 2026, 08:29:52 UTC
- Source record
- Official CVE record