Skip to content
High 7.1

Out-of-Bounds Write in Linux kernel

CVE-2024-35797 First seen on SecPulse

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.

A vulnerability tracked as CVE-2024-35797 has been found in Linux kernel.
Confidential information can be exposed externally. CVSS score: 7.1/10.
What to do: apply the vendor's official patched release.
If unsure, ask your IT team or search "Linux kernel CVE-2024-35797" on the vendor's site.

CVE-2024-35797 (Linux kernel) — CWE-787 / CVSS v3 7.1
Attack vector: local / no user interaction
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

What is the problem

Out-of-bounds write (CWE-787) exists in Linux kernel.

Affected scope

Check the vendor advisory for the affected versions of Linux kernel.

Severity

Severity: High (CVSS 7.1/10). Confidential information can be exposed externally.

How to fix

Update to the patched release per vendor advisory.

Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Audit SBOM/dependencies to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposureidentify
    Audit SBOM/dependencies for affected components.

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

  2. 2
    Post-deployment verificationverify
    Confirm patched version is live in production

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

Affected packages

PackageAffected → Fixed
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

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: 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.

Source: NIST National Vulnerability Database NVD

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details