CVE-2024-26954

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

State
Published
Severity
8.1 High
Published
May 1, 2024
Updated
Aug 5, 2026
Reserved
Feb 19, 2024

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.18.1 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before d70c2e0904ab3715c5673fd45788a464a246d1dbAffected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 9e4937cbc150f9d5a9b5576e1922ef0b5ed2eb72Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 3b8da67191e938a63d2736dabb4ac5d337e5de57Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 4f97e6a9d62cb1fce82fbf4baff44b83221bc178Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before a80a486d72e20bd12c335bcd38b6e6f19356b0aaAffected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 6.1.119 through 6.1.*Not affected
  • 6.6.32 through 6.6.*Not affected
  • 6.7.12 through 6.7.*Not affected
  • 6.8.3 through 6.8.*Not affected
  • 6.9 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.