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

- Severity: High 8.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2025-08-16T13:27:58.227Z
- Modified: 2026-08-15T13:17:39.713Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before aeb974907642be095e38ecb1a400ca583958b2b0; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before f339d76a3a972601d0738b881b099d49ebbdc3a2; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 4bf629262f9118ee91b1c3a518ebf2b3bcb22180; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 79ed288cef201f1f212dfb934bcaac75572fb8f6; 5.15 (not affected: before 5.15; from 5.15.127 up to 5.15.*; from 6.1.46 up to 6.1.*; from 6.4.11 up to 6.4.*; from 6.5 up to *)
- linux linux_kernel: from 5.15 before 5.15.127; from 5.16 before 6.1.46; from 6.2 before 6.4.11; 6.5

## Every score

- Linux: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/aeb974907642be095e38ecb1a400ca583958b2b0> (patch)
- <https://git.kernel.org/stable/c/f339d76a3a972601d0738b881b099d49ebbdc3a2> (patch)
- <https://git.kernel.org/stable/c/4bf629262f9118ee91b1c3a518ebf2b3bcb22180> (patch)
- <https://git.kernel.org/stable/c/79ed288cef201f1f212dfb934bcaac75572fb8f6> (patch)

## Sources

- CVE List: [CVE-2023-4130](https://www.cve.org/CVERecord?id=CVE-2023-4130), CVE Terms of Use, modified 2026-08-15
- NVD: [CVE-2023-4130](https://nvd.nist.gov/vuln/detail/CVE-2023-4130), Public domain, modified 2026-08-15

---

Page: https://cve.day/CVE-2023-4130 · Whole record: https://cve.day/CVE-2023-4130.json · Rebuilt by cve.day 2026-11-25T22:58:34.736Z
