CVE-2024-26980
published high CVSS 3.1 · 8.2ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0626e6641f6b467447c81dd7678a69c66f7746cf to < da21401372607c49972ea87a6edaafb36a17c325 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < b80ba648714e6d790d69610cf14656be222d0248 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 3160d9734453a40db248487f8204830879c207f1 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 0977f89722eceba165700ea384f075143f012085 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < c119f4ede3fa90a9463f50831761c28f989bfb20 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.159 through 5.15.* (unaffected · semver) · 6.1.88 through 6.1.* (unaffected · semver) · 6.6.29 through 6.6.* (unaffected · semver) · 6.8.8 through 6.8.* (unaffected · semver) · 6.9 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.90-1 | DSA-5680-1 |
| Ubuntu | focal | linux-aws-5.15 | Advisory build | 5.15.0-1067.73~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-aws-5.15-cloud-tools-5.15.0-1067 | Advisory build | 5.15.0-1067.73~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-aws-5.15-headers-5.15.0-1067 | Advisory build | 5.15.0-1067.73~20.04.1 | USN-6950-2 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | focal | linux-aws-5.15-tools-5.15.0-1067 | Advisory build | 5.15.0-1067.73~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-azure-5.15 | Advisory build | 5.15.0-1070.79~20.04.1 | USN-6956-1 |
| Ubuntu | focal | linux-azure-5.15-cloud-tools-5.15.0-1070 | Advisory build | 5.15.0-1070.79~20.04.1 | USN-6956-1 |
| Ubuntu | focal | linux-azure-5.15-headers-5.15.0-1070 | Advisory build | 5.15.0-1070.79~20.04.1 | USN-6956-1 |
| Ubuntu | focal | linux-azure-5.15-tools-5.15.0-1070 | Advisory build | 5.15.0-1070.79~20.04.1 | USN-6956-1 |
| Ubuntu | focal | linux-azure-fde-5.15 | Advisory build | 5.15.0-1070.79~20.04.1.1 | USN-6956-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1050-gkeop | Advisory build | 5.15.0-1050.57~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1060-ibm | Advisory build | 5.15.0-1060.63~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1062-intel-iotg | Advisory build | 5.15.0-1062.68~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1065-oracle | Advisory build | 5.15.0-1065.71~20.04.1 | USN-6957-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1066-gcp | Advisory build | 5.15.0-1066.74~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1067-aws | Advisory build | 5.15.0-1067.73~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1070-azure | Advisory build | 5.15.0-1070.79~20.04.1 | USN-6956-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-118-generic | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-buildinfo-5.15.0-118-generic-64k | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-buildinfo-5.15.0-118-generic-lpae | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-buildinfo-5.15.0-118-lowlatency | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-118-lowlatency-64k | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1050-gkeop | Advisory build | 5.15.0-1050.57~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1062-intel-iotg | Advisory build | 5.15.0-1062.68~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1067-aws | Advisory build | 5.15.0-1067.73~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1070-azure | Advisory build | 5.15.0-1070.79~20.04.1 | USN-6956-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-118-generic | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-118-lowlatency | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-gcp-5.15 | Advisory build | 5.15.0-1066.74~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-gcp-5.15-headers-5.15.0-1066 | Advisory build | 5.15.0-1066.74~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-gcp-5.15-tools-5.15.0-1066 | Advisory build | 5.15.0-1066.74~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-gkeop-5.15 | Advisory build | 5.15.0-1050.57~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-gkeop-5.15-cloud-tools-5.15.0-1050 | Advisory build | 5.15.0-1050.57~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-gkeop-5.15-headers-5.15.0-1050 | Advisory build | 5.15.0-1050.57~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-gkeop-5.15-tools-5.15.0-1050 | Advisory build | 5.15.0-1050.57~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-headers-5.15.0-1050-gkeop | Advisory build | 5.15.0-1050.57~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-headers-5.15.0-1060-ibm | Advisory build | 5.15.0-1060.63~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-headers-5.15.0-1062-intel-iotg | Advisory build | 5.15.0-1062.68~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-headers-5.15.0-1065-oracle | Advisory build | 5.15.0-1065.71~20.04.1 | USN-6957-1 |
| Ubuntu | focal | linux-headers-5.15.0-1066-gcp | Advisory build | 5.15.0-1066.74~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-headers-5.15.0-1067-aws | Advisory build | 5.15.0-1067.73~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-headers-5.15.0-1070-azure | Advisory build | 5.15.0-1070.79~20.04.1 | USN-6956-1 |
| Ubuntu | focal | linux-headers-5.15.0-118-generic | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-headers-5.15.0-118-generic-64k | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-headers-5.15.0-118-generic-lpae | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-headers-5.15.0-118-lowlatency | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-headers-5.15.0-118-lowlatency-64k | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-hwe-5.15 | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-5.15.0-118 | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-common | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-hwe-5.15-headers-5.15.0-118 | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-hwe-5.15-source-5.15.0 | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-hwe-5.15-tools-5.15.0-118 | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-hwe-5.15-tools-common | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-hwe-5.15-tools-host | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-ibm-5.15 | Advisory build | 5.15.0-1060.63~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-ibm-5.15-headers-5.15.0-1060 | Advisory build | 5.15.0-1060.63~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-ibm-5.15-source-5.15.0 | Advisory build | 5.15.0-1060.63~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-ibm-5.15-tools-5.15.0-1060 | Advisory build | 5.15.0-1060.63~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-image-5.15.0-118-generic | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-image-5.15.0-118-generic-lpae | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1050-gkeop | Advisory build | 5.15.0-1050.57~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1060-ibm | Advisory build | 5.15.0-1060.63~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1062-intel-iotg | Advisory build | 5.15.0-1062.68~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1065-oracle | Advisory build | 5.15.0-1065.71~20.04.1 | USN-6957-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1066-gcp | Advisory build | 5.15.0-1066.74~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1067-aws | Advisory build | 5.15.0-1067.73~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1070-azure | Advisory build | 5.15.0-1070.79~20.04.1 | USN-6956-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1070-azure-fde | Advisory build | 5.15.0-1070.79~20.04.1.1 | USN-6956-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-118-generic | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-118-generic-64k | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-118-lowlatency | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-118-lowlatency-64k | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-intel-iotg-5.15 | Advisory build | 5.15.0-1062.68~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-5.15.0-1062 | Advisory build | 5.15.0-1062.68~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-common | Advisory build | 5.15.0-1062.68~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-headers-5.15.0-1062 | Advisory build | 5.15.0-1062.68~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-5.15.0-1062 | Advisory build | 5.15.0-1062.68~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-common | Advisory build | 5.15.0-1062.68~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-host | Advisory build | 5.15.0-1062.68~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15 | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-cloud-tools-5.15.0-118 | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-cloud-tools-common | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-headers-5.15.0-118 | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-5.15.0-118 | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-common | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-host | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-modules-5.15.0-1050-gkeop | Advisory build | 5.15.0-1050.57~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-modules-5.15.0-1060-ibm | Advisory build | 5.15.0-1060.63~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-modules-5.15.0-1062-intel-iotg | Advisory build | 5.15.0-1062.68~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-modules-5.15.0-1065-oracle | Advisory build | 5.15.0-1065.71~20.04.1 | USN-6957-1 |
| Ubuntu | focal | linux-modules-5.15.0-1066-gcp | Advisory build | 5.15.0-1066.74~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-modules-5.15.0-1067-aws | Advisory build | 5.15.0-1067.73~20.04.1 | USN-6950-2 |
| Ubuntu | focal | linux-modules-5.15.0-1070-azure | Advisory build | 5.15.0-1070.79~20.04.1 | USN-6956-1 |
| Ubuntu | focal | linux-modules-5.15.0-118-generic | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-modules-5.15.0-118-generic-64k | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-modules-5.15.0-118-generic-lpae | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-4 |
| Ubuntu | focal | linux-modules-5.15.0-118-lowlatency | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-modules-5.15.0-118-lowlatency-64k | Advisory build | 5.15.0-118.128~20.04.1 | USN-6950-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1050-gkeop | Advisory build | 5.15.0-1050.57~20.04.1 | USN-6950-2 |
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-out-of-bounds in smb2_allocate_rsp_buf If ->ProtocolId is SMB2_TRANSFORM_PROTO_NUM, smb2 request size validation could be skipped. if request size is smaller than sizeof(struct smb2_query_info_req), slab-out-of-bounds read can happen in smb2_allocate_rsp_buf(). This patch allocate response buffer after decrypting transform request. smb3_decrypt_req() will validate transform request size and avoid slab-out-of-bound in smb2_allocate_rsp_buf().
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
- 8.2 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
- Scenarios
- en: AV:N - ksmbd is the in-kernel SMB server listening on TCP/445, and the malformed SMB2 transform PDU arrives directly from a remote peer over the network. No local access to the target is required. AC:L - A single hand-crafted 41-byte packet suffices — the attacker deterministically sets ProtocolId to SMB2_TRANSFORM_PROTO_NUM and places 0x0010 (SMB2_QUERY_INFO) in the Signature bytes that alias smb2_hdr->Command, with no race, no memory-layout luck, and no condition outside the attacker's control. PR:N - smb2_allocate_rsp_buf() runs in __handle_ksmbd_work() before decrypt_req(), init_rsp_hdr(), check_user_session() and ksmbd_verify_smb_message(), so the very first packet on a fresh TCP connection reaches it with no NEGOTIATE, session setup, or credentials of any kind. UI:N - The attacker's own TCP connection to port 445 drives the entire sequence; no administrator or local user on the target has to take any action. S:U - The out-of-bounds slab read and any resulting fault occur entirely within the kernel's own security authority, crossing no VM, IOMMU, or sandbox boundary. C:L - Two bytes of adjacent slab memory are read past the undersized request_buf and steer the response-buffer size (448 vs 448 + max_trans_size), which is observable to the remote attacker only as an allocation/timing oracle; the bytes themselves are never returned in the SMB response, so disclosure is limited rather than total. I:N - The defect is purely a read of InfoType/FileInfoClass — nothing is written out of bounds and no kernel state is corrupted on this path. A:H - The read crosses the slab object boundary and faults or reports on KASAN, KFENCE and MTE-instrumented kernels, panicking the box under panic_on_warn=1 or kasan.fault=panic, and an unauthenticated remote attacker can retrigger it from new connections at unlimited rate.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.5 | medium | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf to < da21401372607c49972ea87a6edaafb36a17c325 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < b80ba648714e6d790d69610cf14656be222d0248 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 3160d9734453a40db248487f8204830879c207f1 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 0977f89722eceba165700ea384f075143f012085 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < c119f4ede3fa90a9463f50831761c28f989bfb20 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.159 through 5.15.* (unaffected · semver)6.1.88 through 6.1.* (unaffected · semver)6.6.29 through 6.6.* (unaffected · semver)6.8.8 through 6.8.* (unaffected · semver)6.9 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-noinfo Not enough information
References
8- https://git.kernel.org/stable/c/0977f89722eceba165700ea384f075143f012085
- https://git.kernel.org/stable/c/3160d9734453a40db248487f8204830879c207f1
- https://git.kernel.org/stable/c/b80ba648714e6d790d69610cf14656be222d0248
- https://git.kernel.org/stable/c/c119f4ede3fa90a9463f50831761c28f989bfb20
- https://git.kernel.org/stable/c/da21401372607c49972ea87a6edaafb36a17c325
- https://lists.fedoraproject.org/archives/list/[email protected]/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/
Provider assertions
3Linux · cna
ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 27284bb9c694e06d97390cac9824ee1defc563e8e4972fd262d10b3c171620f2
- Ingested
- 23 Sep 2026, 08:20:34 UTC
- Source record
- Official CVE record