Cloudanix VulnDB

CVE-2026-64297

Medium · 5.5

CVSS

5.5

EPSS

0.2%

Published

Jul 25, 2026

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A flaw in how Linux loads compressed kernel components can let someone with local influence crash a system under memory pressure.

Exploitation
Local Privilege
Attacker needs
Local User
Complexity
Moderate
Impact
Denial Of Service
Component
OS kernel
Class
Denial of service
Remediation
Patch
Effort
Low
Patch risk
Low

What it actually does

This Linux kernel flaw is a denial-of-service condition in the compressed kernel module loading path. When the kernel expands the internal page-tracking array used while decompressing a module, an allocation failure from module_extend_max_pages() was not checked. If that allocation fails, later module loading logic can treat an invalid zero-size allocation result as success and dereference it, causing a kernel oops. The practical result is a local or locally-triggered kernel crash or instability during module load or module autoload under memory pressure.

Why it matters to the business

Successful exploitation can crash or destabilize Linux systems, interrupting workloads, services, containers, appliances, or infrastructure that depend on kernel availability. Because exploitation appears to require local influence over module loading and/or memory pressure, the risk is lower than a remote code execution issue, but it is still operationally important for multi-user systems, shared compute platforms, and systems where untrusted users or workloads can trigger kernel module autoloading. The vulnerability is not currently listed in CISA KEV, is not known to be used in ransomware campaigns, has low EPSS probability, and has no public exploit maturity reported, so remediation should be scheduled through normal kernel patch cycles unless exposed systems support untrusted local workloads.

How an attack unfolds

An attacker first needs a way to influence kernel module loading, typically by invoking functionality that causes the kernel to load or autoload a compressed module, or by operating in a context with permission to request module loading. The attacker then attempts to create memory pressure so that the kernel allocation inside module_extend_max_pages() fails while the module decompression path is initializing its page array. Because the failure is not handled correctly, subsequent code attempts to grow or use the page array from an invalid zero-size allocation state. This can lead to a dereference of ZERO_SIZE_PTR and a kernel oops, causing denial of service. There is no indication from the provided data that this issue enables privilege escalation or code execution.

How to fix it

Upgrade to a Linux kernel version that includes the fix for this module decompression error-handling bug. The fix adds a missing return-value check after module_extend_max_pages() and aborts module loading immediately on allocation failure. Because exact affected products and fixed package versions were not provided, obtain patched kernel packages from the relevant Linux distribution or kernel vendor advisory, then reboot into the updated kernel. Where immediate patching is not possible, reduce exposure by limiting local shell access, restricting untrusted workloads, disabling or minimizing automatic module loading where operationally feasible, preloading required modules during controlled maintenance windows, enforcing module-loading controls such as module signing and least-privilege administration, and monitoring for repeated module-load failures or kernel oops events.

How to confirm the fix worked

Confirm the running kernel is a vendor build that includes the upstream fix for the module decompression path. Validate that the system has rebooted into the patched kernel, not merely installed it, by comparing the running kernel version with the installed patched package. Review vendor changelogs or source patches for the added error check after module_extend_max_pages() in the compressed module loading code. Operationally, verify that module loading still functions normally for required modules and that kernel logs do not show oops traces involving module decompression, module_get_next_page(), module_extend_max_pages(), kvrealloc(), or ZERO_SIZE_PTR after patching.

Typical attack path

  1. Gain local execution or access to a workload/user context capable of triggering kernel module loading or module autoloading.
  2. Identify kernel features, device classes, filesystems, network protocols, or other operations that cause compressed modules to be loaded on demand.
  3. Create memory pressure to increase the chance that kvrealloc() fails inside the module decompression page-array expansion logic.
  4. Trigger loading or autoloading of a compressed kernel module.
  5. Cause the unchecked allocation failure path to proceed into module_get_next_page() and dereference an invalid ZERO_SIZE_PTR.
  6. Crash or destabilize the kernel, resulting in service interruption or host reboot/oops handling.

How to detect it

To determine whether this was already exploited or triggered, review kernel and system logs for oops, panic, or page-fault events occurring during kernel module loading or autoloading. Relevant log sources include journalctl/kern.log/messages/syslog, crash dump facilities such as kdump/vmcore, hypervisor or cloud console logs, endpoint telemetry that records reboots or kernel panics, and audit logs for module loading activity. Look for stack traces or messages referencing module decompression, module_get_next_page(), module_extend_max_pages(), kvrealloc(), ZERO_SIZE_PTR, load_module(), finit_module(), init_module(), or request_module() around the time of an unexpected reboot or service outage. Correlate those events with signs of deliberate memory pressure, repeated module-load attempts, suspicious local user activity, container workloads consuming excessive memory, or audit events showing module insertion requests. Absence of these artifacts does not prove non-exploitation, because kernel crashes may prevent complete log flushing unless persistent journaling, serial console logging, netconsole, pstore, or kdump is enabled.

  • module_get_next_page
  • module_extend_max_pages
  • ZERO_SIZE_PTR
  • kvrealloc
  • load_module
  • finit_module
  • init_module
  • request_module
  • kernel oops
  • Oops:
  • BUG: unable to handle page fault
  • Unable to handle kernel NULL pointer dereference
  • module: decompress
  • Kernel panic - not syncing

What your security team should do

  • Inventory Linux systems and identify those running vendor kernels that have not yet received the module decompression fix.
  • Prioritize patching multi-user servers, shared compute hosts, container platforms, build systems, research/HPC clusters, and systems where untrusted users or workloads can trigger kernel module autoloading.
  • Apply patched kernel packages from the appropriate distribution or vendor and reboot into the fixed kernel.
  • If patching is delayed, restrict local access, reduce untrusted workload placement, and review controls around kernel module loading and autoloading.
  • Monitor kernel logs and centralized logging for oops events or stack traces involving module_get_next_page(), module_extend_max_pages(), kvrealloc(), ZERO_SIZE_PTR, and compressed module loading.
  • Treat repeated kernel oops events during module loading under memory pressure as suspicious and investigate for local denial-of-service attempts.
  • Because this issue is not KEV-listed, not known ransomware-used, and has low EPSS, handle through standard vulnerability management unless local untrusted execution materially increases exposure.

The record

In the Linux kernel, the following vulnerability has been resolved: module: decompress: check return value of module_extend_max_pages() module_extend_max_pages() calls kvrealloc() internally and returns -ENOMEM on allocation failure. The return value is never checked. If the initial allocation fails, info->pages remains NULL and info->max_pages remains 0. Subsequent calls to module_get_next_page() will attempt to dynamically grow the array by calling module_extend_max_pages(info, 0) since info->used_pages is 0. This results in kvrealloc(NULL, 0) returning ZERO_SIZE_PTR, which is treated as a success, leading to a dereference of ZERO_SIZE_PTR and a kernel oops. Fix: add the missing error check after module_extend_max_pages() and return immediately on failure. This matches the pattern used by every other kvrealloc() caller in the module loading path. [Sami: Corrected the analysis in the commit message.]

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities