CVE-2024-56619·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix potential out-of-bounds memory access in nilfs_find_entry() Syzbot reported that when searching for records in a directory where the inode's i_size is corrupted and has a large value, memory access outside the folio/page range may occur, or a use-after-free bug may be detected if KASAN is enabled. This is because nilfs_last_byte(), which is called by nilfs_find_entry() and others to calculate the number of valid bytes of directory data in a page from i_size and the page index, loses the upper 32 bits of the 64-bit size information due to an inappropriate type of local variable to which the i_size value is assigned. This caused a large byte offset value due to underflow in the end address calculation in the calling nilfs_find_entry(), resulting in memory access that exceeds the folio/page size. Fix this issue by changing the type of the local variable causing the bit loss from "unsigned int" to "u64". The return value of nilfs_last_byte() is also of type "unsigned int", but it is truncated so as not to exceed PAGE_SIZE and no bit loss occurs, so no change is required.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.1.120
- Published
- 2024-12-27
Affected versions
From: 6.7
Until: 6.12.5
Fixed in: 6.1.120
How to fix this CVE
Update your Linux kernel to version 6.1.120 or later to resolve a critical memory access vulnerability in the nilfs2 filesystem driver. This patch corrects a data type issue that caused incorrect calculation of directory boundaries, leading to potential out-of-bounds memory reads. Apply the update immediately on systems using nilfs2 filesystems, particularly those with large or corrupted inode sizes.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version: uname -r | grep -E '^(6\.(7|8|9|10|11|12\.[0-5]))'
- Verify if nilfs2 filesystem is in use: mount | grep nilfs2
- Check if nilfs2 module is loaded: lsmod | grep nilfs2
- After patching, confirm the new kernel version: uname -r and verify it is 6.1.120 or later
FAQ
What is CVE-2024-56619?
CVE-2024-56619 is a memory safety vulnerability in the Linux kernel's nilfs2 filesystem driver where a 32-bit truncation of a 64-bit inode size value causes out-of-bounds memory access when searching directory entries.
Is CVE-2024-56619 being actively exploited?
No, CVE-2024-56619 is not currently being actively exploited in the wild according to CISA KEV data, and no public exploits are available.
What versions of Kernel are affected by CVE-2024-56619?
Linux kernel versions 6.7 through 6.12.5 are affected. The vulnerability was fixed in version 6.1.120 and corresponding patches were released for affected stable branches.
How do I check if my server is vulnerable to CVE-2024-56619?
Run 'uname -r' to check your kernel version against the affected range (6.7-6.12.5), then run 'mount | grep nilfs2' to confirm if nilfs2 filesystems are in active use on your system.
Does Defensia detect CVE-2024-56619?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-56619 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/09d6d05579fd46e61abf6e457bb100ff11f3a9d3
- https://git.kernel.org/stable/c/31f7b57a77d4c82a34ddcb6ff35b5aa577ef153e
- https://git.kernel.org/stable/c/48eb6e7404948032bbe811c5affbe39f6b316951
- https://git.kernel.org/stable/c/5af8366625182f01f6d8465c9a3210574673af57
- https://git.kernel.org/stable/c/985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-56619. Free for 1 server.
Get started free