Skip to content
OpenAdvisories
Medium · 6.5 CVE-2022-1348 EUVD-2022-24670GHSA-4c4j-w8hm-rjgv

A vulnerability was found in logrotate in how the state file is created. The state file is used to prevent parallel executions of multiple …

Published May 25, 2022 · Updated Jun 9, 2025 · Assigned by redhat

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.

Affected products

VendorProductAffectedFixed
— logrotate logrotate versions before 3.20.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 logrotate 3.20.1-1 —
Debian 13 logrotate 3.20.1-1 —
Debian 12 logrotate 3.20.1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS logrotate 3.19.0-1ubuntu1.1 USN-5447-1
ReleasePackageFixed inAdvisory
RHEL 9 logrotate 3.18.0-7.el9 RHSA-2022:8393

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 logrotate 3.18.0-7.el9 ALSA-2022:8393

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 logrotate 3.18.0-7.el9 RLSA-2022:8393
ReleasePackageFixed inAdvisory
SLES 15 SP4 logrotate 3.18.1-150400.3.7.1 SUSE-SU-2022:2396-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed logrotate 3.20.1-1.1 openSUSE-SU-2024:12108-1
openSUSE Leap 15.4 logrotate 3.18.1-150400.3.7.1 SUSE-SU-2022:2396-1
ReleasePackageFixed inAdvisory
Alpine v3.24 logrotate 3.20.1-r0 —
Alpine v3.23 logrotate 3.20.1-r0 —
Alpine v3.22 logrotate 3.20.1-r0 —
Alpine v3.21 logrotate 3.20.1-r0 —
Alpine v3.20 logrotate 3.20.1-r0 —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 logrotate 3.20.1-r0 —
Alpine v3.18 logrotate 3.20.1-r0 —
Alpine v3.17 logrotate 3.20.1-r0 —
Alpine v3.16 logrotate 3.19.0-r1 —
Alpine v3.15 logrotate 3.18.1-r2 —
Alpine v3.14 logrotate 3.18.1-r2 —
Alpine v3.13 logrotate 3.18.0-r2 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) logrotate 3.20.1-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 logrotate 3.18.0-7.el9 ELSA-2022-8393

Advisories 13

References