Skip to main content

Linux Kernel CVE-2026-64416

| EUVDEUVD-2026-48960 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-07-25 Linux GHSA-fp4w-89fw-h8p4
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Separate kernel or hardware bug corrupts a PTE into type-0 swap entry
  2. Delivery
    Unprivileged process exits normally
  3. Exploit
    exit_mmap triggers zap_pte_range
  4. Install
    swap_pte_batch encounters corrupted PTE
  5. C2
    lookup_swap_cgroup_id called without NULL guard
  6. Execute
    NULL ctrl->map dereferenced at scaled offset
  7. Impact
    Kernel BUG crashes host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Two simultaneous conditions are required for the crash to occur: first, the Linux host must have no swap configured (swapless), so that swap_cgroup_ctrl[type].map is NULL for all swap types; second, at least one page-table entry in any user process must be corrupted into a valid-looking type-0 swap entry - this is explicitly described as a separate, prerequisite bug. The kernel version must be at or after commit bea67dcc5eea and before the applicable fix commit for the running stable series. Hosts with swap enabled are fully protected because swap_cgroup_swapon() allocates the map on swap activation. A low-privilege local process triggering normal exit is sufficient to manifest the crash once the PTE corruption condition exists, but that low-privilege user cannot independently create the PTE corruption; the crash cannot be initiated from an unauthenticated network position.

Impact

The CVSS 5.5 (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) accurately reflects a local, low-privilege, availability-only denial of service - there is no confidentiality or integrity impact. EPSS at 0.21% (11th percentile) aligns with the low weaponization probability: triggering the crash requires both a swapless host and a separately-introduced PTE corruption, the latter being an independent prerequisite bug rather than something this CVE enables. No public exploit code exists and the vulnerability is not listed in CISA KEV. In practice, the crash is hard to exploit intentionally but can be triggered accidentally whenever memory corruption elsewhere in the kernel produces a fake type-0 swap entry on a swapless host - a scenario that occurred spontaneously in production. Swapless deployments are common in container-focused and cloud-native environments where swap is disabled for latency reasons, meaning even a mid-sized municipal IT team in tczew running Kubernetes nodes on kernel 6.12.x through 6.12.96 is genuinely exposed to inadvertent crash cascades during process teardown. Patching is a scheduled rather than emergency priority given the low EPSS and absence of active exploitation, but the confirmed production impact warrants prompt attention for swapless kernel deployments.

Exploit ScenarioDerived

On a swapless Linux host running kernel 6.12.58 through 6.12.96, a hardware error, firmware bug, or separate kernel memory-corruption defect produces a page-table entry in a user process that decodes as a type-0 swap entry. When that process exits normally - even as an unprivileged user - exit_mmap() calls zap_pte_range(), which invokes swap_pte_batch() on the corrupted entry; lookup_swap_cgroup_id() then dereferences the NULL ctrl->map at an offset derived from the fake swap offset, triggering an unhandled page fault and kernel BUG, crashing the entire host. No public exploit code exists; the scenario was observed organically in production.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 04, 2026

NULL pointer dereference in the Linux kernel's swap cgroup subsystem (mm/swap_cgroup.c) causes a kernel panic and full system crash on swapless hosts running kernel versions after commit bea67dcc5eea. The batched PTE zap path introduced by that commit calls lookup_swap_cgroup_id() without validating the swap entry against swap_info[], so any process exit involving a PTE corrupted into a type-0 swap entry dereferences the uninitialized ctrl->map pointer and takes the host down. The crash pattern was confirmed in production on kernel 6.12.58 and independently reproduced by syzbot; no public exploit exists, but the kernel teardown path is deterministically vulnerable once the prerequisite conditions are present.

RemediationAI

Upgrade to a patched stable kernel release: 6.12.97 or later, 6.18.39 or later, 7.1.4 or later, or 7.2-rc1 or later. The four upstream fix commits are available at https://git.kernel.org/stable/c/818416fef38759f23210de449663cd9d7e293d39, https://git.kernel.org/stable/c/b415c00bf23df577a4a95673d00ae76687bcc1d4, https://git.kernel.org/stable/c/6a4196d19f477524d2f92adca90fc1fbe9a0420a, and https://git.kernel.org/stable/c/63b02a9409cb5180398491b093e48bcb5315f5fb. As a temporary workaround on systems where an immediate kernel upgrade is not feasible, enabling a small swap device (e.g., a swap file of even 64 MiB) causes swap_cgroup_swapon() to allocate the map and prevents the NULL dereference; this introduces minor swap I/O overhead but eliminates the crash vector. Restricting use of experimental kernel memory-management modules or untrusted kernel code paths that could corrupt PTEs is prudent but not a stand-alone mitigation since PTE corruption sources are independent.

Affected VersionsENISA

Linux bea67dcc5eea0f6a213897a59b9e644977cd07e6 <63b02a9409cb5180398491b093e48bcb5315f5fb
Linux patch: 0
Linux patch: 7.1.4
Linux bea67dcc5eea0f6a213897a59b9e644977cd07e6 <6a4196d19f477524d2f92adca90fc1fbe9a0420a
Linux 6.12
Linux bea67dcc5eea0f6a213897a59b9e644977cd07e6 <b415c00bf23df577a4a95673d00ae76687bcc1d4
Linux patch: 7.2-rc1
Linux patch: 6.12.97
Linux bea67dcc5eea0f6a213897a59b9e644977cd07e6 <818416fef38759f23210de449663cd9d7e293d39
Linux patch: 6.18.39

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in mm/swap_cgroup.c. The Linux kernel memory controller tracks per-cgroup swap usage through a per-swap-type map (swap_cgroup_ctrl[type].map) that is only allocated when swap is activated via swap_cgroup_swapon(). On hosts with no swap configured, every ctrl->map remains NULL. CWE-476 (NULL Pointer Dereference) describes the root cause: lookup_swap_cgroup_id() passes ctrl->map directly to __swap_cgroup_id_lookup() without a NULL guard. The regression was introduced by commit bea67dcc5eea ('mm: attempt to batch free swap entries for zap_pte_range()'), which added a batched PTE teardown path in zap_pte_range() → swap_pte_batch() that bypasses the get_swap_device() validation every other caller relies on to confirm entry legitimacy before accessing cgroup metadata. Affected CPE: cpe:2.3:a:linux:linux:*, spanning stable series 6.12 and 6.18 and development branches 7.1 and 7.2-rc1.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.5 MEDIUM

Local process exit triggers crash; low-privilege user sufficient; no confidentiality or integrity impact, only availability loss via kernel panic.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 5.5 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
CVSS changed
Sep 04, 2026 - 15:37 NVD
5.5 (MEDIUM)
Patch available
Jul 25, 2026 - 11:18 EUVD
CVE Published
Jul 25, 2026 - 08:50 nvd
MEDIUM 5.5
CVE Published
Jul 25, 2026 - 08:50 cve.org
UNKNOWN (no severity yet)

DescriptionNVD

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

mm: swap_cgroup: fix NULL deref in lookup_swap_cgroup_id on swapless host

lookup_swap_cgroup_id() passes swap_cgroup_ctrl[type].map to __swap_cgroup_id_lookup() without checking that the type was ever registered via swap_cgroup_swapon(). On a swapless host every ctrl->map is NULL, so __swap_cgroup_id_lookup() dereferences NULL + a scaled swp_offset().

Since commit bea67dcc5eea ("mm: attempt to batch free swap entries for zap_pte_range()"), zap_pte_range() -> swap_pte_batch() calls lookup_swap_cgroup_id() on any non-present, non-none PTE that decodes as a real swap entry, without first validating it against swap_info[]. A single PTE corrupted into a type-0 swap entry takes the host down at process exit.

We hit this in production on a swapless 6.12.58 host: ~1s of "get_swap_device: Bad swap file entry 3f800204222bb" (do_swap_page() being correctly defensive about the same entry) followed by

BUG: unable to handle page fault for address: 000003f800204220 RIP: 0010:lookup_swap_cgroup_id+0x2b/0x60 Call Trace: swap_pte_batch+0xbf/0x230 zap_pte_range+0x4c8/0x780 unmap_page_range+0x190/0x3e0 exit_mmap+0xd9/0x3c0 do_exit+0x20c/0x4b0

syzbot has reported the identical stack.

The source of the PTE corruption is a separate bug; this change makes the teardown path as robust as the fault path already is. Every other caller of lookup_swap_cgroup_id() is downstream of a get_swap_device() that has already validated the entry, so the new branch is cold.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Ubiquitous
Linux kernel underlies virtually all server and cloud infrastructure
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy