CVE-2022-1348

logrotate: potential DoS from unprivileged users via the state file

Published May 25, 2022 CVSS 3.1 · 6.5 Medium EPSS 1.7% KEV · Not listed
Description
A vulnerability was found in logrotate in 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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-24670 A vulnerability was found in logrotate in 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.
Ubuntu USN Ubuntu USN USN-5447-1 logrotate vulnerability
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Jun 9, 2025, 2:55 PM
Reserved
Apr 13, 2022, 12:00 AM
Status
Modified
Published
May 25, 2022, 4:15 PM
Modified
Jun 17, 2026, 4:22 AM
Severity
Moderate
Public date
May 25, 2022, 12:00 AM