Linux kernelのksmbdに解放後使用の脆弱性、認証済みの利用者によるメモリ破壊のおそれ
概要
Linux kernelのksmbdで、ディレクトリ一覧の取得と削除要求が同時に処理されると、解放済みのメモリを使う解放後使用の脆弱性が見つかりました。認証済みのSMBクライアントが、ext4上の共有でこれを引き起こせるとされ、CVSSは8.8です。影響を受けるのは5.15.0から6.12.117前の版、6.13.0から6.18.61前の版、6.19.0から7.3.2前の版で、6.12.117、6.18.61、7.3.2が修正版です。修正版への更新を進めてください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Linux kernelのksmbdで、ディレクトリ一覧の取得と削除要求が同時に処理されると、解放済みのメモリを使う解放後使用の脆弱性が見つかりました。認証済みのSMBクライアントが、ext4上の共有でこれを引き起こせるとされ、CVSSは8.8です。影響を受けるのは5.15.0から6.12.117前の版、6.13.0から6.18.61前の版、6.19.0から7.3.2前の版で、6.12.117、6.18.61、7.3.2が修正版です。修正版への更新を進めてください。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| LinuxLinux | — | 記載なし |
| LinuxKernel |
5.15.0 以上 6.1.193 未満→ 6.1.193 6.2.0 以上 6.6.163 未満→ 6.6.163 6.7.0 以上 6.12.117 未満→ 6.12.117 6.13.0 以上 6.18.61 未満→ 6.18.61 6.19.0 以上 7.3.2 未満→ 7.3.2 |
6.1.193 6.6.163 6.12.117 6.18.61 7.3.2 |
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。
- BellSoft Alpaquita BELL-CVE-2026-99556 linux-lts 修正版あり
- Debian DEBIAN-CVE-2026-99556 linux-6.12, linux 修正版あり
- Ubuntu UBUNTU-CVE-2026-99556 linux-xilinx-zynqmp, linux-xilinx, linux-vmware ほか 154 件 この記録に修正版の記載なし
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: serialize directory emptiness checks with readdir
SMB2 QUERY_DIRECTORY holds fp->readdir_lock while it calls iterate_dir()
on fp->filp. An SMB2 SET_INFO request with FILE_DISPOSITION_INFORMATION
can resolve the same FileId and call ksmbd_vfs_empty_dir() on the same
filp without that lock.
iterate_dir()'s inode read lock permits concurrent readers and does not
serialize per-file iterator state. ext4 stores its dx readdir cursor and
fname RB tree in file->private_data. Concurrent reset or refill can
therefore free a fname node while the other worker still traverses it or
retains its RB-tree link, resulting in use-after-free accesses.
An authenticated SMB client with list and delete rights on a directory in
a writable KSMBD share backed by ext4 can trigger this when the directory
takes the dx readdir path. The client overlaps an SMB2 QUERY_DIRECTORY
request with an SMB2 SET_INFO request carrying FILE_DISPOSITION_INFORMATION
on one live FileId.
In one x86_64 SMP KASAN multi-shot guest using ksmbd-for-next at
171df27077fb, the unmodified kernel reported a cross-worker use-after-free
before a panic. The first report's access and free stacks show the two
request paths directly (trimmed):
BUG: KASAN: slab-use-after-free in ext4_htree_store_dirent+0x488/0x550
Read of size 8 by task kworker/2:0/29
Workqueue: ksmbd-io handle_ksmbd_work
Call Trace:
ext4_htree_store_dirent+0x488/0x550
htree_dirb…
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory nvd.nist.gov
- package git.kernel.org
- REDHAT Red Hat
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web github.com