CVE-2023-4130

ksmbd: fix wrong next length validation of ea buffer in smb2_set_ea()

State
Published
Severity
8.1 High
Published
Aug 16, 2025
Updated
Aug 15, 2026
Reserved
Aug 3, 2023

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix wrong next length validation of ea buffer in smb2_set_ea()

There are multiple smb2_ea_info buffers in FILE_FULL_EA_INFORMATION request from client. ksmbd find next smb2_ea_info using ->NextEntryOffset of current smb2_ea_info. ksmbd need to validate buffer length Before accessing the next ea. ksmbd should check buffer length using buf_len, not next variable. next is the start offset of current ea that got from previous ea.

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
  • e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before aeb974907642be095e38ecb1a400ca583958b2b0Affected
  • e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before f339d76a3a972601d0738b881b099d49ebbdc3a2Affected
  • e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 4bf629262f9118ee91b1c3a518ebf2b3bcb22180Affected
  • e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 79ed288cef201f1f212dfb934bcaac75572fb8f6Affected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 5.15.127 through 5.15.*Not affected
  • 6.1.46 through 6.1.*Not affected
  • 6.4.11 through 6.4.*Not affected
  • 6.5 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.