A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-45878

CVE-2026-45878: Linux Kernel Buffer Overflow Vulnerability

CVE-2026-45878 is a buffer overflow flaw in the Linux kernel's amdkfd debug address watch functionality that allows invalid memory access via crafted watch_id values. This post covers technical details, affected systems, and patches.

Published: May 28, 2026

CVE-2026-45878 Overview

CVE-2026-45878 is a bounds checking vulnerability in the Linux kernel's AMD Kernel Fusion Driver (amdkfd) debug subsystem. The flaw exists in the address watch handling code within drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_debug.c. The watch_id parameter is received as an unsigned 32-bit value from userspace, but helper functions treat it as a signed integer during bit-shift operations. A sufficiently large watch_id value converts to a negative number, producing undefined behavior through invalid shifts and enabling out-of-bounds access to the pdd->watch_points array.

Critical Impact

Userspace can trigger a buffer overflow in kernel memory by supplying a crafted watch_id, leading to undefined behavior and potential kernel memory corruption.

Affected Products

  • Linux kernel — drm/amdkfd subsystem (AMD Kernel Fusion Driver debug code)
  • Builds containing kfd_dbg_trap_clear_dev_address_watch() and kfd_dbg_owns_dev_watch_id() helpers
  • Systems exposing the KFD debug interface to unprivileged userspace processes

Discovery Timeline

  • 2026-05-27 - CVE-2026-45878 published to NVD
  • 2026-05-27 - Last updated in NVD database

Technical Details for CVE-2026-45878

Vulnerability Analysis

The vulnerability resides in the AMD KFD debug address watch clear path. The function kfd_dbg_trap_clear_dev_address_watch() accepts watch_id as a uint32_t from userspace. Internal helpers including kfd_dbg_owns_dev_watch_id() operate on this value using signed integer arithmetic and bit shifts. When watch_id exceeds INT_MAX, the value sign-extends to a negative integer in signed contexts.

Negative shift operands are undefined behavior in C. Static analysis flagged the issue at line 448, where pdd->watch_points[watch_id] is dereferenced after an incomplete bounds check. The reported analyzer output shows 'pdd->watch_points' 4 <= u32max user_rl='0-3,2147483648-u32max' uncapped, indicating the array of size four can be indexed with attacker-controlled values up to u32max.

Root Cause

The root cause is an input validation error [CWE-129]. kfd_dbg_owns_dev_watch_id() did not validate that watch_id is less than MAX_WATCH_ADDRESSES before performing shift operations. The bounds check was incomplete in both the set and clear paths. A signed/unsigned mismatch between the userspace-supplied u32 and internal signed int handling allowed values above INT_MAX to bypass checks.

Attack Vector

A local userspace process with access to the KFD debug ioctl interface supplies a watch_id value greater than MAX_WATCH_ADDRESSES. The kernel performs an out-of-bounds write into pdd->watch_points[watch_id] using the return value of clear_address_watch(). The patched code adds an early watch_id >= MAX_WATCH_ADDRESSES check in the set path to mirror the clear path, removes the redundant bounds check in kfd_dbg_owns_dev_watch_id(), and uses the BIT(watch_id) macro to test and clear bits safely.

// No verified exploit code available. See kernel commit references for the
// upstream patch and full technical context.

Detection Methods for CVE-2026-45878

Indicators of Compromise

  • Unexpected kernel oops or panic messages referencing kfd_dbg_trap_clear_dev_address_watch or kfd_debug.c in dmesg output.
  • KASAN or UBSAN reports flagging out-of-bounds writes on the pdd->watch_points array or undefined shift operations in the amdkfd debug path.
  • Unprivileged processes issuing repeated KFD debug ioctls with anomalous watch_id parameter values.

Detection Strategies

  • Enable CONFIG_KASAN and CONFIG_UBSAN on test kernels to catch out-of-bounds writes and undefined shift behavior triggered by this code path.
  • Audit kernel package versions across the fleet against the fixed commits listed in the kernel.org references to identify unpatched hosts.
  • Monitor system call telemetry for processes opening /dev/kfd and issuing debug ioctls, correlating with crash events.

Monitoring Recommendations

  • Collect kernel logs centrally and alert on stack traces containing amdkfd or kfd_debug symbols.
  • Track kernel version inventory for AMD GPU compute hosts to confirm patch coverage.
  • Review audit logs for unexpected use of GPU debug interfaces by non-developer accounts.

How to Mitigate CVE-2026-45878

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced in the kernel.org stable commits and rebuild or update affected kernels.
  • Prioritize patching on multi-tenant systems and AI/HPC nodes running AMD GPU compute workloads where untrusted code may execute.
  • Restrict access to the KFD debug interface to trusted users until kernels are updated.

Patch Information

The fix validates watch_id < MAX_WATCH_ADDRESSES in both the set and clear paths, removes the redundant bounds check in kfd_dbg_owns_dev_watch_id(), and replaces manual shifts with the BIT(watch_id) macro. See the upstream commits: Kernel Commit 2b36c0c, Kernel Commit 3c38a0f, Kernel Commit 5a19302c, Kernel Commit 971bf8e6, and Kernel Commit a0d367e1.

Workarounds

  • Limit access to /dev/kfd using filesystem permissions or device cgroup rules so only trusted accounts can invoke KFD debug ioctls.
  • Disable or unload the amdkfd debug functionality on systems that do not require GPU debugging.
  • Apply distribution vendor kernel updates as soon as they include the referenced stable commits.
bash
# Verify the running kernel version and check for amdkfd module
uname -r
lsmod | grep amdkfd

# Restrict access to the KFD device node to a trusted group
sudo chgrp gpu-debug /dev/kfd
sudo chmod 0660 /dev/kfd

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

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.02%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Kernel Commit Ref 2b36c0c

  • Kernel Commit Ref 3c38a0f

  • Kernel Commit Ref 5a19302c

  • Kernel Commit Ref 971bf8e6

  • Kernel Commit Ref a0d367e1
  • Related CVEs
  • CVE-2026-46237: Linux Kernel Buffer Overflow Vulnerability

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

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

  • CVE-2026-46232: Linux Kernel Buffer Overflow Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

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.

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