First published: Wed May 25 2022(Updated: )
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.
Credit: secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
Logrotate | >=3.17.0<3.20.0 | |
Red Hat Fedora | =35 | |
Red Hat Fedora | =36 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2022-1348 has been classified as a medium severity vulnerability due to the potential for unauthorized access to sensitive information.
To fix CVE-2022-1348, ensure that logrotate is updated to a version that addresses this issue, specifically versions higher than 3.20.0.
CVE-2022-1348 affects logrotate versions from 3.17.0 to 3.20.0, as well as Fedora versions 35 and 36.
CVE-2022-1348 can potentially expose logrotate state files, which may contain sensitive information regarding log processing.
A potential workaround for CVE-2022-1348 is to manually adjust the permissions of the state file to limit access until a proper update is applied.