Skip to content
High 7.0

Linux Kernelのshmem_writeout()に解放後使用の脆弱性、システム停止の恐れ

CVE-2026-139799 First seen on SecPulse

Summary

Linux Kernelのshmem_writeout()で、ページキャッシュからスワップキャッシュへ移したあとの処理でinodeが解放済みになり、解放後使用が起きる脆弱性です。影響を受けるのは6.17.0以降6.18.65未満と6.19.0以降7.3.6未満のLinux Kernelで、修正版は6.18.65と7.3.6です。CVSSは7.0で、公表から日が浅いため、修正版への更新を急ぐことをおすすめします。

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のshmem_writeout()で、ページキャッシュからスワップキャッシュへ移したあとの処理でinodeが解放済みになり、解放後使用が起きる脆弱性です。影響を受けるのは6.17.0以降6.18.65未満と6.19.0以降7.3.6未満のLinux Kernelで、修正版は6.18.65と7.3.6です。CVSSは7.0で、公表から日が浅いため、修正版への更新を急ぐことをおすすめします。

Affected packages

PackageAffected → Fixed
LinuxLinux —
LinuxKernel
≥ 6.17.0, < 6.18.65→ 6.18.65
≥ 6.19.0, < 7.3.6→ 7.3.6

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:

mm/shmem: hold off eviction in shmem_writeout()

Once shmem_writeout() has moved the folio from the page cache to the
swap cache, the folio lock no longer keeps the inode alive: truncation
and eviction find a swap entry, free it and do not wait for anybody.
That did not matter as long as swap_writeout() was the last thing the
function did. But since it puts the folio back when swap_writeout()
returns AOP_WRITEPAGE_ACTIVATE, it uses the mapping and the inode
afterwards:

reclaim last close of an unlinked file
shmem_writeout()
shmem_delete_from_page_cache()
swap_writeout()
zswap_store() fails shmem_evict_inode()
writeback is disabled shmem_truncate_range()
return AOP_WRITEPAGE_ACTIVATE shmem_free_swap()
destroy_inode()
... RCU grace period, freed
shmem_add_to_page_cache(mapping)
xas_lock_irq() <- use after free

swap_writeout() behaves that way if zswap is enabled, cannot take the
folio and the memcg or one of its ancestors has memory.zswap.writeback
set to 0.

shmem_unuse() already added infrastructure to deal with that.
Reuse info->stop_eviction to protect the inode during writeout. Increment
it before removing the folio from the page cache, and decrement it after
swap_writeout() and any attempted reinsertion and…

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