Skip to main content
Vulnerability Database/CVE-2026-93237

CVE-2026-93237: Linux Kernel Privilege Escalation Flaw

CVE-2026-93237 is a privilege escalation vulnerability in the Linux kernel affecting LoongArch architecture memory mapping. The flaw allows memory corruption through improper address space handling. This article covers technical details, affected systems, impact analysis, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-93237 Overview

CVE-2026-93237 is a Linux kernel vulnerability in the LoongArch architecture memory management code. The kernel fails to define DIRECT_MAP_PHYSMEM_END for LoongArch, causing get_free_mem_region() and mhp_get_pluggable_range() to fall back to a compile-time constant based on MAX_PHYSMEM_BITS. This constant does not reflect the actual CPU physical address bits (cpu_pabits) probed from CPUCFG1. On CPUs with fewer physical address bits than MAX_PHYSMEM_BITS, the kernel can allocate ZONE_DEVICE regions outside the vmemmap window, triggering vmemmap_populate() to wrap memmap ranges into low memory and silently corrupt page tables.

Critical Impact

Local attackers or buggy device drivers on affected Loongson systems can trigger silent page table corruption, leading to kernel memory integrity loss and potential privilege escalation.

Affected Products

  • Linux kernel on LoongArch architecture with CONFIG_SPARSEMEM_VMEMMAP
  • Loongson-2K series CPUs with smaller cpu_pabits values
  • Loongson-3C6000 systems using ZONE_DEVICE memory (e.g., amdkfd workloads) prior to the fix

Discovery Timeline

  • 2026-09-24 - CVE-2026-93237 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-93237

Vulnerability Analysis

The LoongArch memory management subsystem lacks an architecture-specific definition of DIRECT_MAP_PHYSMEM_END. Two kernel helpers, get_free_mem_region() and mhp_get_pluggable_range(), use this macro to bound their physical address searches. Without a LoongArch override, the fallback in include/linux/mm.h applies.

Under CONFIG_SPARSEMEM_VMEMMAP, the fallback resolves to (1ULL << MAX_PHYSMEM_BITS) - 1. This is a compile-time constant that does not adapt to the runtime-detected cpu_pabits. The vmemmap window only covers physical addresses below 2^(cpu_pabits+1), defined as VMEMMAP_SIZE.

Root Cause

The mismatch between the compile-time MAX_PHYSMEM_BITS bound and the runtime cpu_pabits value creates an unsafe search range. When get_free_mem_region() returns a ZONE_DEVICE region beyond the vmemmap window, vmemmap_populate() wraps the memmap address range and installs mappings into low memory. This overwrites existing page table entries without any error indication [CWE-787 out-of-bounds write].

Attack Vector

The flaw requires local access with the ability to trigger device memory region allocation, such as loading a driver that requests ZONE_DEVICE memory. On Loongson-2K CPUs with narrow physical address bits, this operation silently corrupts kernel page tables. The amdkfd driver on Loongson-3C6000 previously triggered a memmap_init_zone_device() crash from the same root cause. Technical details are available in the Kernel Git Commit 2677f97 and related upstream commits.

Detection Methods for CVE-2026-93237

Indicators of Compromise

  • Kernel oops or panic messages from memmap_init_zone_device() on LoongArch systems
  • Unexpected page table entries mapping high physical addresses into low virtual memory ranges
  • vmemmap_populate() warnings on Loongson-2K or Loongson-3C6000 hardware under ZONE_DEVICE driver workloads

Detection Strategies

  • Audit running kernel versions on LoongArch hosts against the fixed commits 2677f97a67fd, 55e18311c705, and ab275a23b4d9
  • Compare cpu_pabits reported from CPUCFG1 against MAX_PHYSMEM_BITS to identify at-risk configurations
  • Monitor dmesg for ZONE_DEVICE or vmemmap allocation anomalies after driver loads

Monitoring Recommendations

  • Collect kernel ring buffer logs centrally from LoongArch endpoints and alert on vmemmap or memmap_init_zone_device errors
  • Track driver load events that request device memory regions, particularly GPU and accelerator drivers
  • Baseline physical address ranges returned by get_free_mem_region() using kprobes for anomaly identification

How to Mitigate CVE-2026-93237

Immediate Actions Required

  • Apply the upstream Linux kernel patches that define DIRECT_MAP_PHYSMEM_END for LoongArch
  • Rebuild and deploy fixed kernels across all Loongson-2K and Loongson-3C6000 systems
  • Restrict loading of drivers that allocate ZONE_DEVICE memory until patched kernels are deployed

Patch Information

The fix defines DIRECT_MAP_PHYSMEM_END as (1ULL << (cpu_pabits + 1)) - 1, capped at (1ULL << MAX_PHYSMEM_BITS) - 1 under CONFIG_SPARSEMEM. This mirrors the approach used in commit f3336b48cf9d for RISC-V. Patches are available at Kernel Git Commit 2677f97, Kernel Git Commit 55e1831, and Kernel Git Commit ab275a2.

Workarounds

  • Avoid loading drivers that request ZONE_DEVICE or hot-pluggable memory regions on unpatched LoongArch kernels
  • Where feasible, disable CONFIG_ZONE_DEVICE in kernel builds for affected Loongson platforms until a patched kernel is available
  • Limit local account access on affected LoongArch systems to reduce exposure to local triggering conditions

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.