CVE-2026-64108 in Linux
要約
〜によって VulDB • 2026年07月20日
Linuxカーネルにおいて、以下の脆弱性が修正されました:
cifs: アンマウント後に使用中のdentryが使用される問題を修正
コミット 340cea84f691c(「cifs: open files should not hold ref on superblock」)以降、CIFSファイルはdentryのref_cntのみを保持しており、アンマウント後にcifsファイルクローズ処理(cfile->deferred)が実行される可能性があります。これにより、generic_shutdown_superで警告が発生します:
BUG: Dentry 00000000a14a6845{i=c,n=file} still in use (1) [unmount of cifs cifs]
詳細なプロセスは以下の通りです: プロセスA プロセスB kworker fd = open(PATH) vfs_open file->__f_path = *path // dentry->d_lockref.count = 1 cifs_open cifs_new_fileinfo cfile->dentry = dget(dentry) // dentry->d_lockref.count = 2 close(fd) __fput cifs_close queue_delayed_work(deferredclose_wq, cfile->deferred) dput(dentry) // dentry->d_lockref.count = 1 smb2_deferred_work_close _cifsFileInfo_put list_del(&cifs_file->flist) umount cleanup_mnt deactivate_super cifs_kill_sb cifs_close_all_deferred_files_sb cifs_close_all_deferred_files // cfileが見つからないため、_cifsFileInfo_putをスキップ kill_anon_super generic_shutdown_super shrink_dcache_for_umount umount_check WARN ! // dentry->d_lockref.count = 1 cifsFileInfo_put_final dput(cifs_file->dentry) // dentry->d_lockref.count = 0
kill_anon_superを呼び出す前に'deferredclose_wq'をフラッシュすることで、これを修正します。
再現手順は https://bugzilla.kernel.org/show_bug.cgi?id=221548 から取得できます。
If you want to get best quality of vulnerability data, you may have to visit VulDB.