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-2026-31698

CVE-2026-31698: Linux Kernel Buffer Overflow Vulnerability

CVE-2026-31698 is a buffer overflow vulnerability in the Linux Kernel crypto subsystem that can lead to kernel memory leaks to userspace. This article covers the technical details, affected versions, and mitigation strategies.

Published: May 7, 2026

CVE-2026-31698 Overview

CVE-2026-31698 is an out-of-bounds read vulnerability [CWE-787] in the Linux kernel's AMD Cryptographic Coprocessor (CCP) driver. The flaw resides in the Secure Encrypted Virtualization (SEV) Platform Diffie-Hellman (PDH) certificate export path within drivers/crypto/ccp/sev-dev.c. When the firmware command fails due to an undersized userspace buffer, the driver still copies the firmware-required byte count to userspace, overflowing the kernel-allocated buffer and leaking adjacent kernel memory.

Critical Impact

A local authenticated user can trigger a kernel slab out-of-bounds read via the SEV_PDH_CERT_EXPORT ioctl, leaking sensitive kernel heap data and potentially crashing the host.

Affected Products

  • Linux Kernel (mainline)
  • Linux Kernel 7.1-rc1
  • Linux Kernel 7.1-rc2

Discovery Timeline

  • 2026-05-01 - CVE-2026-31698 published to NVD
  • 2026-05-06 - Last updated in NVD database

Technical Details for CVE-2026-31698

Vulnerability Analysis

The vulnerability resides in sev_ioctl_do_pdh_export() at drivers/crypto/ccp/sev-dev.c:2347. The function handles the SEV_PDH_CERT_EXPORT ioctl, which retrieves the Platform Diffie-Hellman certificate and certificate chain from AMD Secure Processor firmware. When userspace provides a buffer that is too small, the firmware command fails with an invalid-length error code. The driver did not bail out on this failure path before invoking copy_to_user().

The copy_to_user() call uses the byte count the firmware reports it requires, not the size of the kernel-allocated buffer. KASAN flagged a 2084-byte read at ffff8885c4ab8aa0 originating from _copy_to_user+0x66/0xa0. This results in a slab out-of-bounds read that exfiltrates adjacent kernel heap contents to userspace.

Root Cause

The root cause is a missing error-path check after the PSP firmware command. The driver assumed __sev_do_cmd_locked() would surface firmware errors as -EIO, but the export path proceeded to copy blob data even when the firmware returned an invalid-length status. Combined with using firmware-supplied lengths instead of the kernel buffer size, this produces a slab-out-of-bounds read [CWE-787].

Attack Vector

Exploitation requires local access to /dev/sev and the privileges needed to issue SEV ioctls. An attacker calls the SEV_PDH_CERT_EXPORT ioctl with intentionally undersized buffer length fields. The firmware rejects the request, but the driver still executes copy_to_user() using the firmware's expected length. The attacker receives kernel heap memory beyond the allocated PDH buffer, potentially exposing cryptographic material, pointers useful for KASLR bypass, or other sensitive kernel state.

Detection Methods for CVE-2026-31698

Indicators of Compromise

  • KASAN reports referencing slab-out-of-bounds in instrument_copy_to_user with call stacks containing sev_ioctl_do_pdh_export or sev_ioctl.
  • Kernel log entries showing failed SEV_PDH_CERT_EXPORT ioctl calls followed by anomalous user-space reads.
  • Unexpected processes opening /dev/sev outside of legitimate SEV management tooling.

Detection Strategies

  • Audit ioctl() syscalls targeting /dev/sev with command code SEV_PDH_CERT_EXPORT, correlating caller UID and process lineage.
  • Deploy eBPF or auditd rules to flag non-root or unexpected processes invoking SEV ioctls on AMD EPYC hosts.
  • Run KASAN-enabled kernels in pre-production to surface out-of-bounds reads triggered by fuzzing the SEV ioctl interface.

Monitoring Recommendations

  • Forward kernel ring buffer entries containing KASAN, BUG:, or sev-dev strings to a centralized logging pipeline for alerting.
  • Track running kernel versions across the fleet to confirm patched commits are deployed on all AMD SEV-capable hosts.
  • Alert on repeated failed SEV ioctl invocations from a single PID or container, which can indicate exploitation attempts.

How to Mitigate CVE-2026-31698

Immediate Actions Required

  • Apply the upstream stable kernel patches referenced below and reboot affected hosts running AMD SEV workloads.
  • Restrict access to /dev/sev to trusted administrators and confidential-computing management daemons only.
  • On systems that do not run SEV guests, unload or disable the ccp module to remove the attack surface entirely.

Patch Information

The fix ensures sev_ioctl_do_pdh_export() does not copy blobs to userspace when the PSP command fails, and adds a WARN when the driver and firmware status disagree. Stable backports are available in the following commits: 051e51aa55fd, 50808c13452d, 78b97e43d0b3, b5c14bd4da1f, and e76239fed3cf.

Workarounds

  • Tighten DAC permissions on /dev/sev so only privileged management users can issue ioctls.
  • Use Linux capabilities or seccomp filters to block ioctl syscalls on the SEV device for non-essential workloads.
  • Disable the ccp kernel module on hosts that do not require AMD SEV until the patched kernel is rolled out.
bash
# Restrict /dev/sev access and disable ccp where unused
chown root:root /dev/sev
chmod 0600 /dev/sev
echo "blacklist ccp" | sudo tee /etc/modprobe.d/disable-ccp.conf
sudo modprobe -r ccp 2>/dev/null || true

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLinux Kernel

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-787
  • Vendor Resources
  • Kernel Git Commit Change 1

  • Kernel Git Commit Change 2

  • Kernel Git Commit Change 3

  • Kernel Git Commit Change 4

  • Kernel Git Commit Change 5
  • Related CVEs
  • CVE-2026-31743: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-43051: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31742: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31774: Linux Kernel Buffer Overflow Vulnerability
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