本文へ移動
English version →
高 7.1

Linux Kernelのcachestatでshmemの脆弱性、情報が漏れるおそれ

CVE-2024-35797 SecPulse初出

概要

2024年5月に公表されたCVE-2024-35797は、Linux Kernelのcachestat機能におけるshmem処理の脆弱性です。不正な領域外アクセスが起き、CVSSは7.1とされています。影響を受けるのは6.5.0以降6.6.24未満、6.7.0以降6.7.12未満、6.8.0以降6.8.3未満の各版で、6.6.24、6.7.12、6.8.3以降の修正版で直せます。

AI要約

SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。

Linux kernel という製品で、CVE-2024-35797 という番号がついた弱点 (脆弱性) が見つかりました。
機密情報が外部に流出する可能性があります。重要度は CVSS スコア 7.1/10 です。
対策: ベンダー公式の修正版に更新してください。
心配なら、システム担当者や製品の公式サイトで「Linux kernel CVE-2024-35797」を検索してください。

CVE-2024-35797 (Linux kernel) — CWE-787 / CVSS v3 7.1
攻撃ベクター: ローカル / 被害者操作不要
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。

何が問題か

Linux kernel に 境界外書き込み (CWE-787) があります。

影響範囲

Linux kernel の影響バージョンはベンダーのアドバイザリで確認してください。

重要度

重要度: 重要 (CVSS 7.1/10)。機密情報が外部に流出する可能性があります。

修正方法

ベンダー公式アドバイザリの修正版に更新してください。

暫定回避

修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。

検知方法

Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。

対応アクション

SOC/SREチームが順番に実行すべき具体的なステップとコマンド例

  1. 1
    影響範囲の特定identify
    Audit SBOM/dependencies for affected components.

    資産台帳・SBOM・依存マニフェストで Linux kernel を使っているサービスとバージョンを洗い出す。

  2. 2
    事後検証verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

影響パッケージ

パッケージ影響を受ける版 → 修正版
LinuxKernel
6.5.0 以上 6.6.24 未満→ 6.6.24
6.7.0 以上 6.7.12 未満→ 6.7.12
6.8.0 以上 6.8.3 未満→ 6.8.3

ディストリビューション別の修正状況

各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。

原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

In the Linux kernel, the following vulnerability has been resolved:

mm: cachestat: fix two shmem bugs

When cachestat on shmem races with swapping and invalidation, there
are two possible bugs:

  1. A swapin error can have resulted in a poisoned swap entry in the
    shmem inode's xarray. Calling get_shadow_from_swap_cache() on it
    will result in an out-of-bounds access to swapper_spaces[].

    Validate the entry with non_swap_entry() before going further.

  2. When we find a valid swap entry in the shmem's inode, the shadow
    entry in the swapcache might not exist yet: swap IO is still in
    progress and we're before __remove_mapping; swapin, invalidation,
    or swapoff have removed the shadow from swapcache after we saw the
    shmem swap entry.

    This will send a NULL to workingset_test_recent(). The latter
    purely operates on pointer bits, so it won't crash - node 0, memcg
    ID 0, eviction timestamp 0, etc. are all valid inputs - but it's a
    bogus test. In theory that could result in a false "recently
    evicted" count.

    Such a false positive wouldn't be the end of the world. But for
    code clarity and (future) robustness, be explicit about this case.

    Bail on get_shadow_from_swap_cache() returning NULL.

出典: NIST National Vulnerability Database NVD

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく