CVE-2023-52441 ksmbd: fix out of bounds in init_smb2_rsp_hdr()
An out-of-bounds write in the Linux kernel ksmbd module allows attackers to cause memory corruption, potentially leading to code execution or system crashes.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-52441?
CVE-2023-52441 is a critical memory corruption vulnerability in Linux kernel, published on 21 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-119
Which versions are affected by CVE-2023-52441?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-52441?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2023-52441 being exploited?
There is no known exploitation of CVE-2023-52441 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-52441, CVE-2023-39178, DEBIAN-CVE-2023-52441, GHSA-x6xm-ghm9-28cr, UBUNTU-CVE-2023-52441.