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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | logrotate | 3.20.1-1 | — |
| Debian 13 | logrotate | 3.20.1-1 | — |
| Debian 12 | logrotate | 3.20.1-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | logrotate | 3.19.0-1ubuntu1.1 | USN-5447-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | logrotate | 3.18.0-7.el9 | RHSA-2022:8393 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | logrotate | 3.18.0-7.el9 | ALSA-2022:8393 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | logrotate | 3.18.0-7.el9 | RLSA-2022:8393 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP4 | logrotate | 3.18.1-150400.3.7.1 | SUSE-SU-2022:2396-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 2 (CBL-Mariner) | logrotate | 3.20.1-1 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | logrotate | 3.18.0-7.el9 | ELSA-2022-8393 |
Advisories 13
- ALSA-2022:8393 Moderate: logrotate security update AlmaLinux Security Advisories · Oct 29, 2026
- USN-5447-1 logrotate vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- RLSA-2022:8393 Moderate: logrotate security update Rocky Linux Security Advisories · Feb 5, 2026
- SUSE-SU-2022:2396-1 Security update for logrotate SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:12108-1 logrotate-3.20.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- RHSA-2022:8393 Red Hat Security Advisory: logrotate security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- WID-SEC-2023-1542 Red Hat OpenShift: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 18, 2025
- VDE-2023-001 PHOENIX CONTACT: Multiple Vulnerabilities in PLCnext Firmware CERT@VDE · Jun 5, 2025
- WID-SEC-2022-0284 logrotate: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Apr 6, 2025
- ICSA-24-046-11 Siemens SCALANCE XCM-/XRM-300 CISA ICS & IT advisories · Feb 13, 2024
- SSA-806742 SSA-806742: Multiple Vulnerabilities in SCALANCE XCM-/XRM-300 before V2.4 Siemens ProductCERT · Feb 13, 2024
- WID-SEC-2023-0561 Xerox FreeFlow Print Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 18, 2023
- ELSA-2022-8393 Moderate: logrotate security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Nov 22, 2022
References
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2022-1348
- [oss-security] 20220525 Re: CVE-2022-1348 logrotate: potential DoS from unprivileged users via the state file mailing-list
- [oss-security] 20220525 Re: Re: CVE-2022-1348 logrotate: potential DoS from unprivileged users via the state file mailing-list
- [oss-security] 20220525 Re: Re: CVE-2022-1348 logrotate: potential DoS from unprivileged users via the state file mailing-list
- FEDORA-2022-87c0f05204 vendor-advisory
- FEDORA-2022-ff0188b37c vendor-advisory