Skip to content

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

MediumCVSS 6.5 EPSS 1.7%
Published
Updated
Exploit status
No public exploit known

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

ProductAffected versionsFixed in
ubuntu/logrotate(Ubuntu:22.04) < 3.19.0-1ubuntu1.1 3.19.0-1ubuntu1.1
logrotate project logrotate >= 3.17.0, < 3.20.0 3.20.0
fedoraproject fedora = 35 No fix listed
fedoraproject fedora = 36 No fix listed
alpine/logrotate(Alpine:v3.13) >= 3.17.0, < 3.18.0-r2 3.18.0-r2
alpine/logrotate(Alpine:v3.14) >= 3.17.0, < 3.18.1-r2 3.18.1-r2
alpine/logrotate(Alpine:v3.15) >= 3.17.0, < 3.18.1-r2 3.18.1-r2
alpine/logrotate(Alpine:v3.16) >= 3.17.0, < 3.19.0-r1 3.19.0-r1
alpine/logrotate(Alpine:v3.17) >= 3.17.0, < 3.20.1-r0 3.20.1-r0
alpine/logrotate(Alpine:v3.18) >= 3.17.0, < 3.20.1-r0 3.20.1-r0
alpine/logrotate(Alpine:v3.19) >= 3.17.0, < 3.20.1-r0 3.20.1-r0
alpine/logrotate(Alpine:v3.20) >= 3.17.0, < 3.20.1-r0 3.20.1-r0
alpine/logrotate(Alpine:v3.21) >= 3.17.0, < 3.20.1-r0 3.20.1-r0
alpine/logrotate(Alpine:v3.22) >= 3.17.0, < 3.20.1-r0 3.20.1-r0
alpine/logrotate(Alpine:v3.23) >= 3.17.0, < 3.20.1-r0 3.20.1-r0
alpine/logrotate(Alpine:v3.24) >= 3.17.0, < 3.20.1-r0 3.20.1-r0
debian/logrotate(Debian:12) < 3.20.1-1 3.20.1-1
debian/logrotate(Debian:14) < 3.20.1-1 3.20.1-1
debian/logrotate(Debian:13) < 3.20.1-1 3.20.1-1

References