CVE-2023-4130 ksmbd: fix wrong next length validation of ea buffer in smb2_set_ea()

High 8.1 Published Updated

A flaw in the Linux kernel's ksmbd module allows attackers to cause denial of service or potentially execute code via improper buffer length validation in SMB2 requests.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-4130?

CVE-2023-4130 is a high-severity vulnerability in Linux kernel, published on 16 Aug 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2023-4130?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-4130?

Apply the vendor's patch.

Is CVE-2023-4130 being exploited?

There is no known exploitation of CVE-2023-4130 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-4130, DEBIAN-CVE-2023-4130, GHSA-3ccm-2cr5-453p, UBUNTU-CVE-2023-4130.

Is CVE-2023-4130 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free