Linux カーネル NFSv4.0 の LOCK 応答処理でヒープ領域の範囲外書き込みが発生
概要
Linux カーネルの NFSv4.0 サーバー機能(nfsd)で、ロック拒否時の応答を再送用キャッシュに書き込む際にヒープ領域の範囲外書き込みが起きる問題です。認証のない攻撃者が、2 台のクライアントを使って遠隔から悪用するおそれがあり、CVSS 基準の深刻度は 9.8 (緊急)とされています。影響を受けるのは 5.10.253、5.15.210、6.1.167、6.6.130、6.12.78 より前の各系統などで、修正版はこれらの版以降で提供されています。お使いのカーネルを修正版に更新してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Kernel という製品で、CVE-2026-31402 という番号がついた弱点 (脆弱性) が見つかりました。
悪用されるとシステム全体を乗っ取られる可能性があります。重要度は CVSS スコア 9.8/10 です。
対策: Kernel を 5.10.253, 5.15.210, 6.1.167, 6.6.130, 6.12.78, 6.18.20, 6.19.10 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「Kernel CVE-2026-31402」を検索してください。
CVE-2026-31402 (Kernel) — CWE-122 / CVSS v3 9.8
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 認証不要 / 被害者操作不要
修正バージョン: 5.10.253, 5.15.210, 6.1.167, 6.6.130, 6.12.78, 6.18.20, 6.19.10 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
Kernel に 脆弱性 (CWE-122) があります。
Kernel の影響バージョンはベンダーのアドバイザリで確認してください。
重要度: 最重要 (CVSS 9.8/10)。悪用されるとシステム全体を乗っ取られる可能性があります。
5.10.253, 5.15.210, 6.1.167, 6.6.130, 6.12.78, 6.18.20, 6.19.10 に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1
影響範囲の特定identify
grep -r 'Kernel' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
Kernelを grep し、稼働しているサービス・バージョンを把握する。 -
2
パッチ適用patch
Upgrade Kernel to 5.10.253, 5.15.210, 6.1.167, 6.6.130, 6.12.78, 6.18.20, 6.19.10ステージング環境で 5.10.253, 5.15.210, 6.1.167, 6.6.130, 6.12.78, 6.18.20, 6.19.10 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
事後検証verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| LinuxKernel |
2.6.12 以上 5.10.253 未満→ 5.10.253 5.11.0 以上 5.15.210 未満→ 5.15.210 5.16.0 以上 6.1.167 未満→ 6.1.167 6.2.0 以上 6.6.130 未満→ 6.6.130 6.7.0 以上 6.12.78 未満→ 6.12.78 6.13.0 以上 6.18.20 未満→ 6.18.20 6.19.0 以上 6.19.10 未満→ 6.19.10 |
5.10.253 5.15.210 6.1.167 6.6.130 6.12.78 6.18.20 6.19.10 |
| LinuxLinux | — | 記載なし |
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。
- BellSoft Alpaquita BELL-CVE-2026-31402 linux-lts 修正版あり
- Debian DEBIAN-CVE-2026-31402 linux-6.1, linux 修正版あり
- Ubuntu UBUNTU-CVE-2026-31402 linux-xilinx-zynqmp, linux-xilinx, linux-vmware ほか 69 件 修正版あり
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
In the Linux kernel, the following vulnerability has been resolved:
nfsd: fix heap overflow in NFSv4.0 LOCK replay cache
The NFSv4.0 replay cache uses a fixed 112-byte inline buffer
(rp_ibuf[NFSD4_REPLAY_ISIZE]) to store encoded operation responses.
This size was calculated based on OPEN responses and does not account
for LOCK denied responses, which include the conflicting lock owner as
a variable-length field up to 1024 bytes (NFS4_OPAQUE_LIMIT).
When a LOCK operation is denied due to a conflict with an existing lock
that has a large owner, nfsd4_encode_operation() copies the full encoded
response into the undersized replay buffer via read_bytes_from_xdr_buf()
with no bounds check. This results in a slab-out-of-bounds write of up
to 944 bytes past the end of the buffer, corrupting adjacent heap memory.
This can be triggered remotely by an unauthenticated attacker with two
cooperating NFSv4.0 clients: one sets a lock with a large owner string,
then the other requests a conflicting lock to provoke the denial.
We could fix this by increasing NFSD4_REPLAY_ISIZE to allow for a full
opaque, but that would increase the size of every stateowner, when most
lockowners are not that large.
Instead, fix this by checking the encoded response length against
NFSD4_REPLAY_ISIZE before copying into the replay buffer. If the
response is too large, set rp_buflen to 0 to skip caching the replay
payload. The status is still cached, and the client already received the
correct response on th…
出典: GitHub Security Advisories (Global) NVD GitHub Advisory
参照URL
- advisory nvd.nist.gov
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory github.com
- package git.kernel.org
- report bugzilla.redhat.com
- 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 git.kernel.org
- web github.com
- web git.kernel.org
- web security.access.redhat.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com