CVE-2023-52810 fs/jfs: Add check for negative db_l2nbperpage
A negative shift exponent in the JFS filesystem can cause a kernel crash, leading to denial of service.
- 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-52810?
CVE-2023-52810 is a high-severity vulnerability in Linux kernel, published on 21 May 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/jfs: Add check for negative db_l2nbperpage
l2nbperpage is log2(number of blks per page), and the minimum legal value should be 0, not negative.
In the case of l2nbperpage being negative, an error will occur when subsequently used as shift exponent.
Syzbot reported this bug:
UBSAN: shift-out-of-bounds in fs/jfs/jfs_dmap.c:799:12 shift exponent -16777216 is negative
Weakness: CWE-1335
Which versions are affected by CVE-2023-52810?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-52810?
Apply the vendor's patch.
Is CVE-2023-52810 being exploited?
There is no known exploitation of CVE-2023-52810 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-52810, DEBIAN-CVE-2023-52810, GHSA-8gjf-xqc3-q68r, UBUNTU-CVE-2023-52810.