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
| Product | Affected versions | Fixed 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
- Debian Security Tracker CVE-2022-1348 vendor-advisory
- bugzilla.redhat.com issue-tracking patch third-party-advisory
- [oss-security] 20220525 Re: CVE-2022-1348 logrotate: potential DoS from unprivileged users via the state file mailing-list third-party-advisory
- [oss-security] 20220525 Re: Re: CVE-2022-1348 logrotate: potential DoS from unprivileged users via the state file mailing-list third-party-advisory
- [oss-security] 20220525 Re: Re: CVE-2022-1348 logrotate: potential DoS from unprivileged users via the state file mailing-list patch third-party-advisory
- FEDORA-2022-87c0f05204 vendor-advisory
- FEDORA-2022-ff0188b37c vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-5447-1 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking