CVE-2024-26936

ksmbd: validate request buffer size in smb2_allocate_rsp_buf()

State
Published
Severity
8.2 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: 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.

Scores

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

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 8f3d0bf1d0c62b539d54c5b9108a845cff619b99Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 21ff9d7d223c5c19cb4334009e4c0c83a2f4d674Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 5c20b242d4fed73a93591e48bfd9772e2322fb11Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 2c27a64a2bc47d9bfc7c3cf8be14be53b1ee7cb6Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 17cf0c2794bdb6f39671265aa18aea5c22ee8c4aAffected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 5.15.159 through 5.15.*Not affected
  • 6.1.88 through 6.1.*Not affected
  • 6.6.29 through 6.6.*Not affected
  • 6.8.8 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.