CVE-2023-52848 in Linux
Tóm tắt
Bởi VulDB • 30/06/2026
Trong kernel Linux, lỗ hổng sau đây đã được khắc phục:
f2fs: sửa lỗi để xóa bộ nhớ đệm trang (page cache) của meta_inode trong f2fs_put_super()
syzbot báo cáo một lỗi kernel như dưới đây:
F2FS-fs (loop1): phát hiện rò rỉ tham chiếu filesystem trong quá trình umount, type: 10, count: 1 kernel BUG tại fs/f2fs/super.c:1639! CPU: 0 PID: 15451 Comm: syz-executor.1 Not tainted 6.5.0-syzkaller-09338-ge0152e7481c6 #0 RIP: 0010:f2fs_put_super+0xce1/0xed0 fs/f2fs/super.c:1639 Call Trace: generic_shutdown_super+0x161/0x3c0 fs/super.c:693 kill_block_super+0x3b/0x70 fs/super.c:1646 kill_f2fs_super+0x2b7/0x3d0 fs/f2fs/super.c:4879 deactivate_locked_super+0x9a/0x170 fs/super.c:481 deactivate_super+0xde/0x100 fs/super.c:514 cleanup_mnt+0x222/0x3d0 fs/namespace.c:1254 task_work_run+0x14d/0x240 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x210/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296 do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd
Trong f2fs_put_super(), hàm này cố gắng thực hiện kiểm tra tính hợp lệ (sanity check) trên bộ đếm tham chiếu dirty và IO của f2fs; nếu có bất kỳ rò rỉ nào trong bộ đếm tham chiếu, nó sẽ kích hoạt panic.
Nguyên nhân gốc rễ là: trong quá trình f2fs_put_super(), nếu xảy ra lỗi IO trong f2fs_wait_on_all_pages(), chúng ta đã bỏ sót việc cắt ngắn (truncate) bộ nhớ đệm trang của meta_inode sau đó, dẫn đến panic. Sửa lỗi này.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.