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-2022-1348

CVE-2022-1348: Logrotate Privilege Escalation Vulnerability

CVE-2022-1348 is a privilege escalation vulnerability in Logrotate where unprivileged users can lock the state file and prevent log rotation. This article covers the technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-1348 Overview

A vulnerability was discovered in logrotate affecting how the state file is created. The state file is used to prevent parallel executions of multiple instances of logrotate by acquiring and releasing a file lock. When the state file does not exist, it is created with world-readable permission, allowing an unprivileged user to lock the state file, stopping any rotation. This flaw affects logrotate versions before 3.20.0.

Critical Impact

An unprivileged local attacker can exploit improper file permissions to lock the logrotate state file, causing a denial of service by preventing all log rotation operations across the system.

Affected Products

  • logrotate versions before 3.20.0
  • Fedora 35
  • Fedora 36

Discovery Timeline

  • 2022-05-25 - CVE-2022-1348 published to NVD
  • 2025-06-09 - Last updated in NVD database

Technical Details for CVE-2022-1348

Vulnerability Analysis

This vulnerability is classified under CWE-732 (Incorrect Permission Assignment for Critical Resource). The core issue lies in how logrotate handles the creation of its state file, which serves as a critical synchronization mechanism to prevent multiple logrotate instances from running simultaneously.

When logrotate initializes and the state file does not already exist, the application creates this file with world-readable permissions (typically 0644 or similar). This permissive file creation allows any unprivileged user on the system to read and potentially manipulate the file. More critically, since the state file utilizes file locking to coordinate between logrotate instances, an unprivileged attacker can acquire and hold a lock on this file indefinitely.

By maintaining this lock, the attacker prevents legitimate logrotate processes from acquiring the necessary lock to perform log rotation. This results in a denial of service condition where logs are never rotated, potentially leading to disk space exhaustion, loss of log data due to size limits, or system instability.

Root Cause

The root cause is improper permission assignment during state file creation. When logrotate creates a new state file (typically located at /var/lib/logrotate/logrotate.status or similar paths), it fails to set restrictive permissions that would prevent unprivileged users from accessing the file. The file should be created with permissions that only allow the root user or the logrotate service account to read and write to it.

Attack Vector

The attack can be executed by any local user with access to the system. The attacker identifies the location of the logrotate state file and either waits for it to be created with weak permissions or triggers its creation. Once the file exists with world-readable permissions, the attacker opens the file and acquires a file lock using standard POSIX locking mechanisms (such as flock() or fcntl()).

By holding this lock indefinitely (for example, through a simple script that opens the file and sleeps), the attacker prevents all subsequent logrotate executions from acquiring the lock. Since logrotate is typically run via cron jobs on a schedule, every scheduled rotation attempt will fail to acquire the lock and exit without performing any rotation.

The vulnerability requires local access with low privileges and no user interaction, making it straightforward for malicious insiders or compromised low-privilege accounts to exploit.

Detection Methods for CVE-2022-1348

Indicators of Compromise

  • Unusual file locks held on /var/lib/logrotate/logrotate.status or /var/lib/logrotate.status by non-root processes
  • Log files growing beyond expected sizes without rotation occurring
  • Failed logrotate executions in system logs indicating inability to acquire state file lock
  • Persistent processes from unprivileged users holding open handles to logrotate state files

Detection Strategies

  • Monitor logrotate execution logs for repeated failures to acquire the state file lock
  • Implement file integrity monitoring on the logrotate state file to detect unexpected access patterns
  • Use lsof or similar tools to periodically check for processes holding locks on the state file
  • Alert on disk space utilization anomalies in log directories that could indicate rotation failures

Monitoring Recommendations

  • Configure monitoring for logrotate cron job exit codes and execution status
  • Set up alerts for log directories approaching capacity thresholds
  • Implement audit logging on the logrotate state file to track access by unprivileged users
  • Monitor system logs for repeated logrotate lock acquisition failures

How to Mitigate CVE-2022-1348

Immediate Actions Required

  • Upgrade logrotate to version 3.20.0 or later which addresses this vulnerability
  • Verify and correct permissions on existing state files to be accessible only by root
  • Review Fedora package updates if running Fedora 35 or 36

Patch Information

The vulnerability has been addressed in logrotate version 3.20.0. Organizations should update to this version or later to receive the fix. Additional information is available through the Red Hat Bug Report for CVE-2022-1348 and the Openwall OSS Security Advisory. Fedora users can obtain updated packages through the standard Fedora package repositories.

Workarounds

  • Manually set restrictive permissions on the state file: chmod 600 /var/lib/logrotate/logrotate.status
  • Ensure the state file is owned by root: chown root:root /var/lib/logrotate/logrotate.status
  • Move the state file to a directory only accessible by root if the default location is world-accessible
  • Implement a monitoring script to detect and alert on unauthorized locks on the state file
bash
# Configuration example: Secure the logrotate state file permissions
chmod 600 /var/lib/logrotate/logrotate.status
chown root:root /var/lib/logrotate/logrotate.status

# Verify no unauthorized processes hold locks on the state file
lsof /var/lib/logrotate/logrotate.status

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechLogrotate

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.11%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-732
  • Technical References
  • Openwall OSS Security Update 3

  • Openwall OSS Security Update 4

  • Fedora Package Announcement

  • Fedora Package Announcement
  • Vendor Resources
  • Openwall OSS Security Update 5

  • Red Hat Bug Report CVE-2022-1348
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
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