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-2023-42465

CVE-2023-42465: Sudo Authentication Bypass Vulnerability

CVE-2023-42465 is an authentication bypass flaw in Sudo before version 1.9.15 that enables row hammer attacks for privilege escalation. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 11, 2026

CVE-2023-42465 Overview

CVE-2023-42465 is a vulnerability in Sudo versions prior to 1.9.15 that could allow row hammer attacks to bypass authentication or achieve privilege escalation. The vulnerability exists because the application logic in Sudo's authentication mechanisms is based on checking whether return values do not equal an error value, rather than explicitly verifying they equal a success value. This design flaw, combined with the use of values that do not resist single-bit flips, makes the authentication process susceptible to hardware-based row hammer attacks.

Row hammer attacks exploit physical characteristics of modern DRAM to cause bit flips in adjacent memory rows through repeated memory accesses. When applied to Sudo's authentication logic, an attacker could potentially flip a single bit in the authentication result variable, transforming a failure condition into a success condition.

Critical Impact

Local attackers with low privileges could potentially bypass sudo authentication or escalate privileges through hardware-based row hammer attacks targeting authentication return values.

Affected Products

  • Sudo versions prior to 1.9.15
  • Systems using Sudo for privilege escalation
  • Linux and Unix-like operating systems with vulnerable Sudo installations

Discovery Timeline

  • 2023-12-22 - CVE-2023-42465 published to NVD
  • 2025-11-04 - Last updated in NVD database

Technical Details for CVE-2023-42465

Vulnerability Analysis

The vulnerability stems from a fundamental design issue in how Sudo's authentication subsystem validates the success or failure of authentication attempts. The code compares return values against error constants (checking != AUTH_FAILURE) rather than explicitly verifying success (== AUTH_SUCCESS). This negative logic pattern creates a critical weakness: if an attacker can induce a single-bit flip in memory containing the authentication result variable through row hammer techniques, they could potentially change an authentication failure into an apparent success.

Row hammer attacks work by rapidly accessing the same memory row, causing electrical disturbance that can flip bits in physically adjacent rows. The practical exploitability depends on hardware characteristics, memory layout, and the attacker's ability to influence memory allocation patterns. The attack requires local access and the ability to execute code that triggers sufficient memory accesses.

Root Cause

The root cause is the use of negative authentication logic combined with values that are susceptible to single-bit manipulation. When authentication functions check if a return value does not equal an error code rather than explicitly checking for a success code, any unexpected value (including those caused by bit flips) may be interpreted as success. The authentication status variables were not designed with bit-flip resistance in mind.

Attack Vector

The attack requires local access to the target system. An attacker with low-privilege access would need to:

  1. Identify memory regions used by Sudo's authentication variables
  2. Execute row hammer sequences to induce bit flips in adjacent memory
  3. Time the attack to coincide with an authentication attempt
  4. Exploit the resulting bit flip to bypass authentication checks

The following patch from the Sudo project demonstrates the vulnerable pattern and its fix in plugins/sudoers/auth/passwd.c:

c
     char des_pass[9], *epass;
     char *pw_epasswd = auth->data;
     size_t pw_len;
-    int matched = 0;
+    int ret;
     debug_decl(sudo_passwd_verify, SUDOERS_DEBUG_AUTH);

     /* An empty plain-text password must match an empty encrypted password. */

Source: GitHub Commit for Sudo Project

The authentication flow was also updated in plugins/sudoers/auth/sudo_auth.c to use explicit success checking:

c
 	if (auth->init && !IS_DISABLED(auth)) {
 	    /* Disable if it failed to init unless there was a fatal error. */
 	    status = (auth->init)(ctx, pw, auth);
-	    if (status == AUTH_FAILURE)
+	    switch (status) {
+	    case AUTH_SUCCESS:
+		break;
+	    case AUTH_FAILURE:
 		SET(auth->flags, FLAG_DISABLED);
-	    else if (status == AUTH_ERROR)
-		break;		/* assume error msg already printed */
+		break;
+	    default:
+		/* Assume error msg already printed. */
+		debug_return_int(-1);
+	    }
 	}
     }

Source: GitHub Commit for Sudo Project

Detection Methods for CVE-2023-42465

Indicators of Compromise

  • Unusual memory access patterns indicative of row hammer attempts
  • Unexpected successful sudo authentication events from unauthorized users
  • Abnormal privilege escalation activities without corresponding valid authentication
  • High-frequency memory access operations prior to sudo invocations

Detection Strategies

  • Monitor for processes exhibiting memory access patterns consistent with row hammer attacks
  • Implement audit logging for all sudo authentication attempts and correlate with system behavior
  • Use hardware-based memory integrity checking where available (ECC memory can mitigate some bit-flip attacks)
  • Deploy file integrity monitoring on sudo binaries and configuration files

Monitoring Recommendations

  • Enable comprehensive sudo logging via sudoers configuration directives
  • Implement real-time alerting on authentication anomalies in centralized logging systems
  • Monitor for unusual patterns of failed authentication followed by unexpected successes
  • Track process behavior for memory thrashing patterns that could indicate exploitation attempts

How to Mitigate CVE-2023-42465

Immediate Actions Required

  • Upgrade Sudo to version 1.9.15 or later immediately
  • Audit systems for signs of unauthorized privilege escalation
  • Review sudo logs for suspicious authentication patterns
  • Consider deploying ECC memory on critical systems to reduce row hammer effectiveness

Patch Information

The Sudo project has released version 1.9.15 which addresses this vulnerability by changing the authentication logic to explicitly check for success values rather than checking for the absence of failure values. The patch modifies multiple authentication modules to use a switch statement pattern that handles AUTH_SUCCESS, AUTH_FAILURE, and treats any other value as an error condition.

Patches are available from the Sudo Project Release Notes. Additional security advisories have been published by Fedora, Gentoo, and NetApp.

Workarounds

  • Deploy ECC (Error-Correcting Code) memory to detect and correct single-bit errors caused by row hammer
  • Limit local access to systems running vulnerable Sudo versions
  • Implement additional authentication layers beyond sudo where possible
  • Consider kernel-level mitigations for row hammer attacks if available for your platform
bash
# Check current sudo version
sudo --version

# Update sudo on Debian/Ubuntu
sudo apt update && sudo apt install sudo

# Update sudo on RHEL/CentOS/Fedora
sudo dnf update sudo

# Update sudo on Arch Linux
sudo pacman -Syu sudo

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechSudo

  • SeverityHIGH

  • CVSS Score7.0

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • ArXiv Research Paper

  • Sudo Project Release Notes

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA Advisory

  • NetApp Security Advisory

  • Openwall OSS-Security Discussion

  • Sudo Project Changelog

  • Openwall OSS-Security Discussion

  • Openwall OSS-Security Discussion

  • Fedora Package Announcement

  • Fedora Package Announcement
  • Vendor Resources
  • GitHub Commit for Sudo Project
  • Related CVEs
  • CVE-2026-35535: Sudo Privilege Escalation Vulnerability

  • CVE-2021-3156: Sudo Privilege Escalation Vulnerability

  • CVE-2025-32463: Sudo Privilege Escalation Vulnerability

  • CVE-2025-32462: Sudo Privilege Escalation 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