The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-38198

CVE-2021-38198: Linux Kernel Privilege Escalation Flaw

CVE-2021-38198 is a privilege escalation vulnerability in the Linux Kernel KVM component that incorrectly computes shadow page access permissions. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-38198 Overview

CVE-2021-38198 is a kernel vulnerability affecting the Linux Kernel's KVM (Kernel-based Virtual Machine) memory management unit implementation. The flaw exists in arch/x86/kvm/mmu/paging_tmpl.h where the access permissions of a shadow page are incorrectly computed. This improper computation leads to missing guest protection page faults, potentially allowing a local attacker to cause a denial of service condition on affected systems running virtualized environments.

Critical Impact

Local attackers with low privileges can exploit incorrect shadow page permission computation in the KVM MMU to cause denial of service conditions on systems running virtual machines.

Affected Products

  • Linux Kernel versions prior to 5.12.11
  • Debian Linux 9.0

Discovery Timeline

  • 2021-08-08 - CVE CVE-2021-38198 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-38198

Vulnerability Analysis

This vulnerability resides in the KVM MMU shadow paging implementation, specifically in the paging_tmpl.h header file. Shadow paging is a technique used by hypervisors to translate guest virtual addresses to host physical addresses when hardware-assisted paging (EPT/NPT) is not available or not used.

The core issue involves how inherited guest access permissions are tracked and applied when constructing shadow page table entries. The original implementation incorrectly stored and propagated permissions, using a single unsigned pt_access variable instead of tracking permissions at each page table level. This meant that when walking the guest page tables, the accumulated permissions from parent entries were not correctly inherited by child entries.

When a guest accesses memory, the KVM MMU should enforce the intersection of all permissions along the page table walk path. Due to this flaw, the shadow page entries could have more permissive access rights than intended, causing the hypervisor to fail in generating appropriate protection page faults when the guest attempts unauthorized memory access.

Root Cause

The root cause is an architectural flaw in how the walker structure in paging_tmpl.h tracked page table access permissions. The original code used a single unsigned pt_access variable to store inherited permissions, which was insufficient for correctly computing the accumulated permissions across all levels of the page table hierarchy.

The fix changes this to an array unsigned int pt_access[PT_MAX_FULL_LEVELS] that properly tracks permissions at each level, ensuring that the intersection of permissions from all parent page table entries is correctly computed for the final shadow page entry.

Attack Vector

This is a local attack vector requiring an attacker to have low-privilege access to a system running KVM virtual machines. The attacker can exploit the permission computation flaw to trigger denial of service conditions affecting the availability of the virtualized environment.

The attack does not require user interaction and operates within the scope of the vulnerable component. While the vulnerability does not directly impact confidentiality or integrity, it can cause significant disruption to systems relying on KVM virtualization.

c
// Security patch showing the fix in arch/x86/kvm/mmu/paging_tmpl.h
// Source: https://github.com/torvalds/linux/commit/b1bd5cba3306691c771d558e94baa73e8b0b96b7

 	gpa_t pte_gpa[PT_MAX_FULL_LEVELS];
 	pt_element_t __user *ptep_user[PT_MAX_FULL_LEVELS];
 	bool pte_writable[PT_MAX_FULL_LEVELS];
-	unsigned pt_access;
-	unsigned pte_access;
+	unsigned int pt_access[PT_MAX_FULL_LEVELS];
+	unsigned int pte_access;
 	gfn_t gfn;
 	struct x86_exception fault;
 };

The documentation was also updated to clarify the proper behavior:

text
// Documentation update in Documentation/virt/kvm/mmu.rst
// Source: https://github.com/torvalds/linux/commit/b1bd5cba3306691c771d558e94baa73e8b0b96b7

     shadow pages) so role.quadrant takes values in the range 0..3.  Each
     quadrant maps 1GB virtual address space.
   role.access:
-    Inherited guest access permissions in the form uwx.  Note execute
-    permission is positive, not negative.
+    Inherited guest access permissions from the parent ptes in the form uwx.
+    Note execute permission is positive, not negative.
   role.invalid:
     The page is invalid and should not be used.  It is a root page that is
     currently pinned (by a cpu hardware register pointing to it); once it is

Detection Methods for CVE-2021-38198

Indicators of Compromise

  • Unexpected crashes or hangs in KVM-based virtual machines
  • Kernel panic messages referencing KVM MMU or shadow paging components
  • Unusual guest memory access patterns that should have triggered page faults
  • System log entries indicating KVM permission validation failures

Detection Strategies

  • Monitor for kernel versions prior to 5.12.11 running KVM workloads
  • Implement kernel log monitoring for KVM MMU-related error messages
  • Use vulnerability scanners to identify unpatched Linux kernel installations
  • Review virtualization host configurations for affected kernel versions

Monitoring Recommendations

  • Enable detailed KVM tracing and logging on virtualization hosts
  • Monitor system stability metrics for KVM-based VMs, particularly unexpected terminations
  • Set up alerts for kernel panics or oops related to KVM subsystem
  • Regularly audit kernel versions across virtualization infrastructure

How to Mitigate CVE-2021-38198

Immediate Actions Required

  • Upgrade the Linux Kernel to version 5.12.11 or later immediately
  • Apply vendor-provided security patches from Debian or your Linux distribution
  • Prioritize patching on systems running KVM virtualization workloads
  • Consider temporarily migrating critical VMs to patched hosts if immediate kernel upgrade is not possible

Patch Information

The vulnerability was addressed in Linux Kernel version 5.12.11. The fix is available in the Linux Kernel ChangeLog 5.12.11 and the specific commit can be reviewed at GitHub Linux Commit b1bd5cba.

For Debian users, security advisories with patched packages are available:

  • Debian LTS Announcement October 2021
  • Debian LTS Announcement December 2021

Workarounds

  • If upgrading is not immediately possible, consider using hardware-assisted virtualization (EPT/NPT) which does not rely on shadow paging
  • Restrict local access to systems running KVM to minimize exposure
  • Implement additional monitoring on virtualization hosts to detect potential exploitation attempts
  • Consider using alternative virtualization technologies temporarily on critical systems
bash
# Check current kernel version
uname -r

# Verify if KVM modules are loaded
lsmod | grep kvm

# Check for available kernel updates (Debian/Ubuntu)
apt update && apt list --upgradable | grep linux-image

# Check for available kernel updates (RHEL/CentOS)
yum check-update kernel

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechLinux Kernel

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • Debian LTS Announcement October 2021

  • Debian LTS Announcement December 2021
  • Vendor Resources
  • Linux Kernel ChangeLog 5.12.11

  • GitHub Linux Commit b1bd5cba
  • Related CVEs
  • CVE-2026-43055: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-43052: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-31724: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-31735: Linux Kernel Privilege Escalation Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English