CVE-2022-47940 Memory corruption in n/a
An attacker can exploit missing length validation in the Linux kernel's ksmbd SMB2 write handler to cause memory corruption, potentially leading to code execution or system crashes.
- 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-2022-47940?
CVE-2022-47940 is a high-severity memory corruption vulnerability in Linux kernel, published on 23 Dec 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
An issue was discovered in ksmbd in the Linux kernel 5.15 through 5.18 before 5.18.18. fs/ksmbd/smb2pdu.c lacks length validation in the non-padding case in smb2_write.
Weakness: CWE-125
Which versions are affected by CVE-2022-47940?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-47940?
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-2022-47940 being exploited?
There is no known exploitation of CVE-2022-47940 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-12095, AZL-12931, DEBIAN-CVE-2022-47940, GHSA-7q73-76jf-54wg, UBUNTU-CVE-2022-47940.