CVE-2024-26936 json
ksmbd: validate request buffer size in smb2_allocate_rsp_buf()
published 2024-05-01 2 y ago modified 2026-08-05 3 mo ago also EUVD-2024-24198
- cvss
- 8.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 49%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: validate request buffer size in smb2_allocate_rsp_buf()
The response buffer should be allocated in smb2_allocate_rsp_buf before validating request. But the fields in payload as well as smb2 header is used in smb2_allocate_rsp_buf(). This patch add simple buffer size validation to avoid potencial out-of-bounds in request buffer.
Patch / fix
- Linux Linux 5.15.159, 6.1.88, 6.6.29, 6.8.8, 6.9
- linux Debian 12 6.1.90-1
- linux Debian 14, Debian 13 6.8.9-1
debian advisories DEBIAN-CVE-2024-26936
- linux Ubuntu 22.04 LTS 5.15.0-118.128
- linux Ubuntu 24.04 LTS 6.8.0-38.38
- linux-aws Ubuntu 22.04 LTS 5.15.0-1067.73
- linux-aws Ubuntu 24.04 LTS 6.8.0-1011.12
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1066.74
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1010.11
- linux-gke Ubuntu 22.04 LTS 5.15.0-1064.70
- linux-gke Ubuntu 24.04 LTS 6.8.0-1006.9
ubuntu advisories UBUNTU-CVE-2024-26936
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git.kernel.org/stable/c/8f3d0bf1d0c62b539d54c5b9108a845cff619b99 commit
- git.kernel.org/stable/c/21ff9d7d223c5c19cb4334009e4c0c83a2f4d674 commit
- git.kernel.org/stable/c/5c20b242d4fed73a93591e48bfd9772e2322fb11 commit
- git.kernel.org/stable/c/2c27a64a2bc47d9bfc7c3cf8be14be53b1ee7cb6 commit
- git.kernel.org/stable/c/17cf0c2794bdb6f39671265aa18aea5c22ee8c4a commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-26936 updated cvss 7.8
kernel: ksmbd: validate request buffer size in smb2_allocate_rsp_buf()
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.60% chance of exploitation in the next 30 days, higher than 49% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-120 Buffer Copy without Checking Size of Input
- Technology feeds
References
-
git.kernel.org
/stable/c/8f3d0bf1d0c62b539d54c5b9108a845cff619b99
patch
-
git.kernel.org
/stable/c/21ff9d7d223c5c19cb4334009e4c0c83a2f4d674
patch
-
git.kernel.org
/stable/c/5c20b242d4fed73a93591e48bfd9772e2322fb11
patch
-
git.kernel.org
/stable/c/2c27a64a2bc47d9bfc7c3cf8be14be53b1ee7cb6
patch
-
git.kernel.org
/stable/c/17cf0c2794bdb6f39671265aa18aea5c22ee8c4a
patch
Sources
- CVE List CVE-2024-26936
- NVD CVE-2024-26936
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.