Skip to content
High 7.8

Linux kernelのio_uringに解放済みメモリを使う脆弱性

CVE-2026-99231 First seen on SecPulse

Summary

io_uringのwaitid処理で、リクエストの所有権を確保する前に状態を消すため、リクエストが解放されたあとも処理が動いてしまう脆弱性です。KASANで解放後のメモリ使用が検出される状況が示されており、影響はLinux kernelです。修正版の有無は事実に含まれていないため、最新の情報を確認してください。

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.

io_uringのwaitid処理で、リクエストの所有権を確保する前に状態を消すため、リクエストが解放されたあとも処理が動いてしまう脆弱性です。KASANで解放後のメモリ使用が検出される状況が示されており、影響はLinux kernelです。修正版の有無は事実に含まれていないため、最新の情報を確認してください。

Affected packages

PackageAffected → Fixed
LinuxLinux —
LinuxKernel
≥ 6.12.113, < 6.12.115→ 6.12.115
≥ 6.18.52, < 6.18.60→ 6.18.60
≥ 6.19.0, < 7.2.14→ 7.2.14
≥ 7.3.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:

io_uring/waitid: own the request before clearing ->head

io_waitid_remove_wq() only takes the wait queue lock if ->head is set.
io_waitid_wait() clears ->head first thing, before it tries to become the
owner of the request by bumping ->refs. If somebody else owns the request
at that point, nothing keeps it from completing the request while the
wake up handler is still going to touch it:

CPU0 (io_waitid_wait) CPU1 (io_waitid, holds a ref)
list_del_init(&wait->entry)
smp_store_release(&iw->head, NULL)
__do_wait() finds another child
io_waitid_remove_wq()
// ->head == NULL, no locking
io_waitid_finish(), IOU_COMPLETE
// request freed and reused
atomic_fetch_inc(&iw->refs)

The same goes for __io_waitid_cancel() if it claims the request in that
window. ->refs is part of the per opcode data of the request, so this
increments whatever the next user of the request keeps there. If that
happens to be zero, the handler concludes that it owns the request, and
queues io_waitid_cb() for it. With the window held open by a delay, and
the request reused for a receive that is waiting for data:

BUG: KASAN: slab-use-after-free in __wake_up_common+0x1ca/0x1f0
__wake_up_sync_key+0x36/0x50
sock_def_readable+0xf1/0x4…

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