CVE-2023-52848 in Linux
要約
〜によって VulDB • 2026年06月29日
Linuxカーネルにおいて、以下の脆弱性が修正されました。
f2fs: f2fs_put_super() 内で meta_inode のページキャッシュをドロップする不具合の修正
syzbot は以下のようなカーネルバグを検出しました:
F2FS-fs (loop1): umount 中にファイルシステム参照カウントリークを検出、type: 10, count: 1 kernel BUG at 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
f2fs_put_super() 内では、f2fs のダーティおよび IO 参照カウントに対する整合性チェックが行われます。もし参照カウントリークが発生した場合、パニックがトリガーされます。
根本原因は、f2fs_put_super() の実行中に f2fs_wait_on_all_pages() で IO エラーが発生した際、後続で meta_inode のページキャッシュを切り捨てる(truncate)処理を見逃していたことにあります。これが結果としてパニックを引き起こすため、このケースを修正します。
Once again VulDB remains the best source for vulnerability data.