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
    • 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-2024-22365

CVE-2024-22365: Linux PAM Denial of Service Vulnerability

CVE-2024-22365 is a denial of service vulnerability in Linux PAM that allows attackers to block the login process via mkfifo exploitation. This article covers the technical details, affected versions, and mitigation steps.

Published: January 28, 2026

CVE-2024-22365 Overview

CVE-2024-22365 is a denial of service vulnerability affecting Linux PAM (Pluggable Authentication Modules) versions prior to 1.6.0. The vulnerability allows local attackers to block login processes by exploiting a missing O_DIRECTORY flag in the openat call within the protect_dir function. By using mkfifo to create a named pipe (FIFO) in a specific location, an attacker can cause the authentication process to hang indefinitely, effectively preventing legitimate users from logging into the system.

Critical Impact

Local attackers with low privileges can completely block authentication processes, causing system-wide denial of service for login functionality.

Affected Products

  • Linux PAM versions prior to 1.6.0
  • Linux distributions using vulnerable PAM versions
  • Systems relying on PAM for authentication services

Discovery Timeline

  • 2024-01-18 - Vulnerability disclosed via Openwall OSS-Security Discussion
  • 2024-02-06 - CVE CVE-2024-22365 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2024-22365

Vulnerability Analysis

This vulnerability stems from improper resource control (CWE-664) in Linux PAM's directory protection mechanism. When PAM attempts to open a directory for protection purposes, the openat system call is used without the O_DIRECTORY flag. This oversight allows the function to successfully open non-directory file types, including named pipes (FIFOs).

Named pipes are special file types that block on open operations until both a reader and writer are connected. When an attacker creates a FIFO at a location where PAM expects a directory, the openat call blocks indefinitely waiting for the other end of the pipe to be opened. Since this occurs during the authentication process, the entire login operation hangs, preventing user authentication.

The vulnerability requires local access and low privileges, limiting the attack surface to authenticated local users attempting to disrupt system access for other users or administrators.

Root Cause

The root cause is the missing O_DIRECTORY flag in the openat call within the protect_dir function. Without this flag, the system call does not verify that the target path is actually a directory before attempting to open it. The O_DIRECTORY flag specifically instructs the kernel to fail the operation if the target is not a directory, which would prevent the FIFO blocking attack.

The fix implemented in version 1.6.0 adds the O_DIRECTORY flag to the openat call, ensuring that only actual directories can be opened, and any attempt to open a FIFO or other non-directory file type will fail with an appropriate error rather than blocking.

Attack Vector

The attack requires local access to the system with low-level user privileges. An attacker can exploit this vulnerability through the following method:

  1. Identify the directory path that PAM's protect_dir function will attempt to access during authentication
  2. Use the mkfifo command to create a named pipe at the target location (or a component of the path)
  3. Leave the FIFO in place without opening either end
  4. When a legitimate user attempts to authenticate, PAM's openat call will block indefinitely on the FIFO
  5. The login process becomes stuck, denying access to the user

This attack is particularly effective because it does not require elevated privileges to create the FIFO, and the blocking behavior persists until the attacking user removes the FIFO or the system is rebooted.

Detection Methods for CVE-2024-22365

Indicators of Compromise

  • Presence of unexpected FIFO (named pipe) files in PAM-related directories or authentication paths
  • Users reporting inability to log in while the system appears otherwise functional
  • Hung authentication processes visible in process listings
  • Processes stuck in uninterruptible sleep state related to PAM modules

Detection Strategies

  • Monitor for mkfifo command execution in sensitive system directories using audit logging
  • Implement file integrity monitoring for PAM configuration and module directories
  • Use find commands to periodically scan for unexpected FIFO files: find /etc/security -type p
  • Review system authentication logs for patterns of failed or incomplete login attempts

Monitoring Recommendations

  • Enable auditd rules to track file creation operations in authentication-related directories
  • Configure alerting for processes stuck in authentication-related system calls
  • Monitor PAM module loading and execution for anomalous behavior
  • Implement baseline monitoring for normal login process duration to detect prolonged authentication attempts

How to Mitigate CVE-2024-22365

Immediate Actions Required

  • Upgrade Linux PAM to version 1.6.0 or later immediately
  • Review systems for any existing FIFO files in PAM-related directories
  • Restrict write access to directories involved in PAM authentication paths
  • Monitor authentication services for signs of blocking or hanging

Patch Information

The vulnerability has been addressed in Linux PAM version 1.6.0. The fix adds the O_DIRECTORY flag to the openat call in the protect_dir function, ensuring that only actual directories can be opened. The specific commit addressing this issue is available in the GitHub Linux-PAM Commit Update.

Organizations should update to the patched version through their distribution's package manager or by obtaining the release from the GitHub Linux-PAM Release v1.6.0. Debian users should consult the Debian LTS Announcement for distribution-specific updates.

Workarounds

  • Restrict directory permissions on PAM-related paths to prevent unauthorized file creation
  • Implement SELinux or AppArmor policies to prevent FIFO creation in sensitive directories
  • Use file system quotas and monitoring to detect and alert on unexpected file type creation
  • Consider implementing additional access controls on authentication-critical directories
bash
# Check for unexpected FIFO files in PAM directories
find /etc/pam.d /etc/security /lib/security /lib64/security -type p 2>/dev/null

# Audit rule to monitor file creation in PAM directories
auditctl -w /etc/security -p wa -k pam_security_changes

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechLinux Pam

  • 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

  • CWE-664
  • Technical References
  • GitHub Linux-PAM Repository

  • GitHub Linux-PAM Release v1.6.0

  • Debian LTS Announcement
  • Vendor Resources
  • Openwall OSS-Security Discussion

  • GitHub Linux-PAM Commit Update
  • Related CVEs
  • CVE-2025-8941: Linux PAM Privilege Escalation Vulnerability

  • CVE-2025-6020: Linux PAM Privilege Escalation Vulnerability

  • CVE-2024-10041: Linux-pam Information Disclosure Flaw

  • CVE-2020-27780: Linux-PAM Auth Bypass 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