CVE-2023-52631 fs/ntfs3: Fix an NULL dereference bug
Integer overflow in NTFS3 driver causes null pointer dereference and kernel crash on 32-bit systems when processing attribute lists.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-52631?
CVE-2023-52631 is a medium-severity vulnerability in Linux kernel, published on 2 Apr 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
fs/ntfs3: Fix an NULL dereference bug
The issue here is when this is called from ntfs_load_attr_list(). The "size" comes from le32_to_cpu(attr->res.data_size) so it can't overflow on a 64bit systems but on 32bit systems the "+ 1023" can overflow and the result is zero. This means that the kmalloc will succeed by returning the ZERO_SIZE_PTR and then the memcpy() will crash with an Oops on the next line.
Weakness: CWE-476
Which versions are affected by CVE-2023-52631?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-52631?
Apply the vendor's patch.
Is CVE-2023-52631 being exploited?
There is no known exploitation of CVE-2023-52631 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-52631, DEBIAN-CVE-2023-52631, GHSA-pwxx-fx4j-ffv3, UBUNTU-CVE-2023-52631.