CVE-2023-4130

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

MEDIUM
5.5
CVSS Score
Published: August 16, 2025 at 01:27 PM UTC
Updated: August 15, 2026 at 01:17 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.5%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.15 ≤ v < 5.15.1275.15 ≤ v < 6.1.465.15 ≤ v < 6.4.115.15 ≤ v < 6.55.16 ≤ v < 6.1.466.2 ≤ v < 6.4.116.5 rc16.5 rc26.5 rc36.5 rc46.5 rc5e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9
Vendor states this is fixed in 4bf629262f9118ee91b1c3a518ebf2b3bcb22180 (fixed)
Vendor states this is fixed in 79ed288cef201f1f212dfb934bcaac75572fb8f6 (fixed)
Vendor states this is fixed in aeb974907642be095e38ecb1a400ca583958b2b0 (fixed)
Vendor states this is fixed in f339d76a3a972601d0738b881b099d49ebbdc3a2 (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 5.15.127 (unaffected)
Vendor states this is fixed in 6.1.46 (unaffected)
Vendor states this is fixed in 6.4.11 (unaffected)
Vendor states this is fixed in 6.5 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4bf629262f9118ee91b1c3a518ebf2b3bcb22180
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/79ed288cef201f1f212dfb934bcaac75572fb8f6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/aeb974907642be095e38ecb1a400ca583958b2b0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f339d76a3a972601d0738b881b099d49ebbdc3a2

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card