Skip to content
A detailed explainer is available in Japanese. Read the Japanese explainer
Critical 9.1

Linuxカーネルのnilfs2に重大な脆弱性、修正版あり

CVE-2026-138871 First seen on SecPulse

Summary

nilfs2を使うLinuxサーバーで、ディレクトリ一覧の読み出しからカーネルのメモリ内容が漏れ、ボリュームが読み取り専用になる脆弱性です。nilfs2の利用有無を確認し、使っていれば修正版のカーネルへ更新してください。

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.

nilfs2を使うLinuxサーバーで、ディレクトリ一覧の読み出しからカーネルのメモリ内容が漏れ、ボリュームが読み取り専用になる脆弱性です。nilfs2の利用有無を確認し、使っていれば修正版のカーネルへ更新してください。

Affected packages

PackageAffected → Fixed
LinuxLinux —
LinuxKernel
≥ 2.6.30, < 5.10.275→ 5.10.275
≥ 5.11.0, < 5.15.226→ 5.15.226
≥ 5.16.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.63→ 6.18.63
≥ 6.19.0, < 7.3.4→ 7.3.4

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:

nilfs2: validate directory position after llseek in readdir

nilfs_readdir() uses ctx->pos, which userspace can set to an arbitrary
value via llseek, as an offset into the directory folio and parses
whatever bytes sit there as a directory entry. A position pointing
into the middle of an entry -- or at unused bytes of a corrupted image
that the page validator never inspected -- makes dir_emit() copy up to
255 (name_len) bytes from a bogus entry, possibly reading past the end
of the folio and returning unrelated memory contents to userspace.

Snap unaligned positions onto a valid entry boundary by walking the
rec_len chain from the chunk start before parsing, as ext2 does in
ext2_validate_entry().

[ryusuke: fixed offset wrap-around in nilfs_validate_entry() and
conformed AI tag to guidelines]

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