CVE-2024-26954
JSON

8.1high

ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()

Severity
8.1high CVSS:3.1 by Linux
Exploit likelihood
0.70% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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().

Affected

Product or packageVersionsReported by
Linux Linuxfrom 0626e6641f6b467447c81dd7678a69c66f7746cf before d70c2e0904ab3715c5673fd45788a464a246d1db, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 9e4937cbc150f9d5a9b5576e1922ef0b5ed2eb72, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 3b8da67191e938a63d2736dabb4ac5d337e5de57, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 4f97e6a9d62cb1fce82fbf4baff44b83221bc178, from 0626e6641f6b467447c81dd7678a69c66f7746cf before a80a486d72e20bd12c335bcd38b6e6f19356b0aa, 5.15
Not affected: before 5.15, from 6.1.119 up to 6.1.*, from 6.6.32 up to 6.6.*, from 6.7.12 up to 6.7.*, from 6.8.3 up to 6.8.*, from 6.9 up to *
CVE List
linux linux_kernelfrom 5.15 before 6.1.119, from 6.2 before 6.7.12, from 6.8 before 6.8.3NVD

All scores

Linux8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
NVD7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Classification

CWE-125

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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().

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: ksmbd: corrige slab-out-of-bounds en smb_strndup_from_utf16() Si ->NameOffset de smb2_create_req es menor que el desplazamiento del búfer de smb2_create_req, puede ocurrir una lectura de slab-out-of-bounds de smb2_open. Este parche establece el valor mínimo del desplazamiento del nombre en el desplazamiento del búfer para validar la longitud del nombre de smb2_create_req().

References

Sources

SourceRecordLicence
CVE ListCVE-2024-26954 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-26954 changed 2026-08-04Public domain