CVE-2024-26954 json
ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()
published 2y ago modified 3mo ago also EUVD-2024-24216
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 53%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()
If ->NameOffset of smb2_create_req is smaller than Buffer offset of smb2_create_req, slab-out-of-bounds read can happen from smb2_open. This patch set the minimum value of the name offset to the buffer offset to validate name length of smb2_create_req().
Patch / fix
- Linux Linux 6.1.119, 6.6.32, 6.7.12, 6.8.3, 6.9
- linux Debian 12 6.1.119-1
- linux Debian 14, Debian 13 6.7.12-1
debian advisories DEBIAN-CVE-2024-26954
- linux Ubuntu 24.04 LTS 6.8.0-35.35
- linux-aws Ubuntu 24.04 LTS 6.8.0-1009.9
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1008.9
- linux-gke Ubuntu 24.04 LTS 6.8.0-1004.7
- linux-ibm Ubuntu 24.04 LTS 6.8.0-1006.6
- linux-azure Ubuntu 24.04 LTS 6.8.0-1008.8
- linux-raspi Ubuntu 24.04 LTS 6.8.0-1005.5
- linux-riscv Ubuntu 24.04 LTS 6.8.0-35.35.1
ubuntu advisories UBUNTU-CVE-2024-26954
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/d70c2e0904ab3715c5673fd45788a464a246d1db commit
- git.kernel.org/stable/c/9e4937cbc150f9d5a9b5576e1922ef0b5ed2eb72 commit
- git.kernel.org/stable/c/3b8da67191e938a63d2736dabb4ac5d337e5de57 commit
- git.kernel.org/stable/c/4f97e6a9d62cb1fce82fbf4baff44b83221bc178 commit
- git.kernel.org/stable/c/a80a486d72e20bd12c335bcd38b6e6f19356b0aa commit
Is CVE-2024-26954 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor 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-26954 updated cvss 7.1
kernel: ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()
-
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
- 2y ago
Exploit prediction
0.70% chance of exploitation in the next 30 days, higher than 53% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| NVD | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
- Technology feeds
References
-
git.kernel.org
/stable/c/d70c2e0904ab3715c5673fd45788a464a246d1db
mailing-list, patch
- git.kernel.org /stable/c/9e4937cbc150f9d5a9b5576e1922ef0b5ed2eb72
-
git.kernel.org
/stable/c/3b8da67191e938a63d2736dabb4ac5d337e5de57
mailing-list, patch
-
git.kernel.org
/stable/c/4f97e6a9d62cb1fce82fbf4baff44b83221bc178
mailing-list, patch
-
git.kernel.org
/stable/c/a80a486d72e20bd12c335bcd38b6e6f19356b0aa
mailing-list, patch
- lists.debian.org /debian-lts-announce/2025/01/msg00001.html
Sources
- CVE List CVE-2024-26954
- NVD CVE-2024-26954
Fencer Intel 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.