CVE-2022-1348
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.
How to fix
- logrotate_project logrotate3.20.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| logrotate_project logrotate | 3.17.0 ≤ v < 3.20.0 | 3.20.0 |
| fedoraproject fedora | 35, 36 | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.