Skip to content
High 8.8

Linux kernelのksmbdに解放後使用の脆弱性、認証済みの利用者によるメモリ破壊のおそれ

CVE-2026-99556 First seen on SecPulse

Summary

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 summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

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が修正版です。修正版への更新を進めてください。

Affected packages

PackageAffected → Fixed
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

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details