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

0.0 CVSS

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

Classification

CVE ID: CVE-2024-26954

CVSS Base Severity: LOW

CVSS Base Score: 0.0

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.05% (probability of being exploited)

EPSS Percentile: 17.81% (scored less or equal to compared to others)

EPSS Date: 2025-02-03 (when was this score calculated)

References

https://git.kernel.org/stable/c/d70c2e0904ab3715c5673fd45788a464a246d1db
https://git.kernel.org/stable/c/3b8da67191e938a63d2736dabb4ac5d337e5de57
https://git.kernel.org/stable/c/4f97e6a9d62cb1fce82fbf4baff44b83221bc178
https://git.kernel.org/stable/c/a80a486d72e20bd12c335bcd38b6e6f19356b0aa

Timeline