# CVE-2023-52441: ksmbd: fix out of bounds in init_smb2_rsp_hdr()

- Severity: Critical 9.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/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.68%, higher than 53% of CVEs (2026-12-01)
- Published: 2024-02-21T07:21:01.075Z
- Modified: 2026-08-15T13:17:41.593Z
- Weaknesses: CWE-119
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

ksmbd: fix out of bounds in init_smb2_rsp_hdr()

If client send smb2 negotiate request and then send smb1 negotiate
request, init_smb2_rsp_hdr is called for smb1 negotiate request since
need_neg is set to false. This patch ignore smb1 packets after ->need_neg
is set to false.

(As written by CVE List.)

## Affected

- Linux Linux: from 51a8534c0f35c0401e45f1055f914729cad98bf9 before 5c0df9d30c289d6b9d7d44e2a450de2f8e3cf40b; from 0b3ec5671ac06829ccebdaeec05acedfec327f42 before 330d900620dfc9893011d725b3620cd2ee0bc2bc; from 39b291b86b5988bf8753c3874d5c773399d09b96 before aa669ef229ae8dd779da9caa24e254964545895f; from 39b291b86b5988bf8753c3874d5c773399d09b96 before 536bb492d39bb6c080c92f31e8a55fe9934f452b; cc32cd98a0aee4cc3eb611cbce11795b1aaa738a; from 5.15.105 before 5.15.145; from 6.1.22 before 6.1.53; from 6.2.9 before 6.3; 6.3 (not affected: before 6.3; from 5.15.145 up to 5.15.*; from 6.1.53 up to 6.1.*; from 6.4.16 up to 6.4.*; from 6.5 up to *)
- linux linux_kernel: from 5.15.0 before 5.15.145; from 5.16.0 before 6.1.53; from 6.2.0 before 6.4.16

## Every score

- Linux: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/5c0df9d30c289d6b9d7d44e2a450de2f8e3cf40b> (patch)
- <https://git.kernel.org/stable/c/330d900620dfc9893011d725b3620cd2ee0bc2bc> (patch)
- <https://git.kernel.org/stable/c/aa669ef229ae8dd779da9caa24e254964545895f> (patch)
- <https://git.kernel.org/stable/c/536bb492d39bb6c080c92f31e8a55fe9934f452b> (patch)

## Sources

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

---

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