CVE-2024-44942·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to do sanity check on F2FS_INLINE_DATA flag in inode during GC syzbot reports a f2fs bug as below: ------------[ cut here ]------------ kernel BUG at fs/f2fs/inline.c:258! CPU: 1 PID: 34 Comm: kworker/u8:2 Not tainted 6.9.0-rc6-syzkaller-00012-g9e4bc4bcae01 #0 RIP: 0010:f2fs_write_inline_data+0x781/0x790 fs/f2fs/inline.c:258 Call Trace: f2fs_write_single_data_page+0xb65/0x1d60 fs/f2fs/data.c:2834 f2fs_write_cache_pages fs/f2fs/data.c:3133 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3288 [inline] f2fs_write_data_pages+0x1efe/0x3a90 fs/f2fs/data.c:3315 do_writepages+0x35b/0x870 mm/page-writeback.c:2612 __writeback_single_inode+0x165/0x10b0 fs/fs-writeback.c:1650 writeback_sb_inodes+0x905/0x1260 fs/fs-writeback.c:1941 wb_writeback+0x457/0xce0 fs/fs-writeback.c:2117 wb_do_writeback fs/fs-writeback.c:2264 [inline] wb_workfn+0x410/0x1090 fs/fs-writeback.c:2304 process_one_work kernel/workqueue.c:3254 [inline] process_scheduled_works+0xa12/0x17c0 kernel/workqueue.c:3335 worker_thread+0x86d/0xd70 kernel/workqueue.c:3416 kthread+0x2f2/0x390 kernel/kthread.c:388 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 The root cause is: inline_data inode can be fuzzed, so that there may be valid blkaddr in its direct node, once f2fs triggers background GC to migrate the block, it will hit f2fs_bug_on() during dirty page writeback. Let's add sanity check on F2FS_INLINE_DATA flag in inode during GC, so that, it can forbid migrating inline_data inode's data block for fixing.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.10.6
- Published
- 2024-08-26
Affected versions
From: 6.7
Until: 6.10.6
Fixed in: 6.10.6
How to fix this CVE
Update your Linux kernel to version 6.10.6 or later to address a vulnerability where improperly validated F2FS_INLINE_DATA flags can cause kernel crashes during garbage collection. Systems running kernel versions 6.7 through 6.10.5 should prioritize this update, as the flaw allows corrupted filesystem metadata to trigger BUG_ON() assertions during background writeback operations.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` and compare against the affected range (6.7.x through 6.10.5)
- Step 2: Verify if F2FS filesystem is in use with `mount | grep f2fs` or check `/etc/fstab` for f2fs entries
- Step 3: Search system logs for f2fs-related kernel crashes: `sudo grep -i 'f2fs\|inline' /var/log/kern.log | grep -i 'bug\|crash\|oops'`
- Step 4: Confirm the kernel has been updated to 6.10.6+ by running `uname -r` after reboot and verifying the version matches or exceeds the fixed version
FAQ
What is CVE-2024-44942?
This vulnerability occurs in the F2FS filesystem driver when garbage collection attempts to migrate data blocks from inodes with corrupted or fuzzed inline data flags, triggering a kernel panic. The flaw stems from insufficient validation of the F2FS_INLINE_DATA flag before performing block migrations during writeback.
Is CVE-2024-44942 being actively exploited?
No, CVE-2024-44942 is not listed as actively exploited by CISA, and no public exploits are currently available. Exploitation would require malicious filesystem images or direct filesystem corruption.
What versions of Kernel are affected by CVE-2024-44942?
Linux kernel versions 6.7.0 through 6.10.5 are vulnerable. Kernel 6.10.6 and later versions contain the fix.
How do I check if my server is vulnerable to CVE-2024-44942?
Run `uname -r` to check your kernel version. If the output shows a version between 6.7.0 and 6.10.5 inclusive, and you use F2FS filesystems (verify with `mount | grep f2fs`), your system is vulnerable.
Does Defensia detect CVE-2024-44942?
Yes — Defensia's CVE advisory scanner compares installed kernel versions against the NVD database. If a vulnerable kernel is installed on a monitored server, CVE-2024-44942 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-44942. Free for 1 server.
Get started free