CVE-2024-49902
kernel: jfs: check if leafidx greater than num leaves per dmap tree
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · October 21, 2024
Updated · September 14, 2026
Description
A flaw was found in the Linux kernel's JFS file system. A local attacker could exploit an out-of-bounds write vulnerability in the dbSplit and dbFindLeaf functions due to improper validation of leaf indices. This could lead to a denial of service (DoS) or potentially information disclosure.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
To mitigate this issue, prevent the jfs kernel module from loading if the JFS filesystem is not in use. This can be achieved by creating a modprobe configuration file.
Create /etc/modprobe.d/disable-jfs.conf with the following content:
install jfs /bin/true
blacklist jfs
After creating the file, regenerate the initramfs and reboot the system for the changes to take effect.
dracut -f -v
reboot
This mitigation may impact systems that rely on the JFS filesystem.
CVSS / CWE
CVSS 3.1 · 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
CWE-125 · Out-of-bounds Read