CVE-2022-1348
published medium CVSS 3.1 · 6.5logrotate: potential DoS from unprivileged users via the state file
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | logrotatelogrotate versions before 3.20.0 | Affected | Not stated | redhat |
| AlmaLinux | 9 | logrotate | Advisory build | 3.18.0-7.el9 | ALSA-2022:8393 |
| Alpine Linux | edge | logrotate | Fixed | 3.20.1-r0 | Package fix record |
| Oracle Linux | 9 | logrotateaarch64 | Advisory build | 0:3.18.0-7.el9 | ELSA-2022-8393 |
| Red Hat Enterprise Linux | RHEL-9 | logrotateaarch64 | Advisory build | 3.18.0-7.el9 | RHSA-2022:8393 |
| SUSE / openSUSE | SLE-15-SP4 | logrotateaarch64 | Advisory build | 3.18.1-150400.3.7.1 | SUSE-SU-2022:2396-1 |
| Ubuntu | jammy | logrotate | Advisory build | 3.19.0-1ubuntu1.1 | USN-5447-1 |
| Rocky Linux | 9 | logrotateaarch64 | Listed in advisory | Not stated | RLSA-2022:8393 |
Show 48 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.13 | logrotate | Fixed | 3.18.0-r2 | Package fix record |
| Alpine Linux | v3.14 | logrotate | Fixed | 3.18.1-r2 | Package fix record |
| Alpine Linux | v3.15 | logrotate | Fixed | 3.18.1-r2 | Package fix record |
| Alpine Linux | v3.16 | logrotate | Fixed | 3.19.0-r1 | Package fix record |
| Alpine Linux | v3.17 | logrotate | Fixed | 3.20.1-r0 | Package fix record |
| Alpine Linux | v3.18 | logrotate | Fixed | 3.20.1-r0 | Package fix record |
| Alpine Linux | v3.19 | logrotate | Fixed | 3.20.1-r0 | Package fix record |
| Alpine Linux | v3.20 | logrotate | Fixed | 3.20.1-r0 | Package fix record |
| Alpine Linux | v3.21 | logrotate | Fixed | 3.20.1-r0 | Package fix record |
| Alpine Linux | v3.22 | logrotate | Fixed | 3.20.1-r0 | Package fix record |
| Alpine Linux | v3.23 | logrotate | Fixed | 3.20.1-r0 | Package fix record |
| Alpine Linux | v3.24 | logrotate | Fixed | 3.20.1-r0 | Package fix record |
| Oracle Linux | 9 | logrotatex86_64 | Advisory build | 0:3.18.0-7.el9 | ELSA-2022-8393 |
| Red Hat Enterprise Linux | RHEL-9 | logrotateppc64le | Advisory build | 3.18.0-7.el9 | RHSA-2022:8393 |
| Red Hat Enterprise Linux | RHEL-9 | logrotates390x | Advisory build | 3.18.0-7.el9 | RHSA-2022:8393 |
| Red Hat Enterprise Linux | RHEL-9 | logrotatesrc | Advisory build | 3.18.0-7.el9 | RHSA-2022:8393 |
| Red Hat Enterprise Linux | RHEL-9 | logrotatex86_64 | Advisory build | 3.18.0-7.el9 | RHSA-2022:8393 |
| SUSE / openSUSE | SLE-15-SP4 | logrotateppc64le | Advisory build | 3.18.1-150400.3.7.1 | SUSE-SU-2022:2396-1 |
| SUSE / openSUSE | SLE-15-SP4 | logrotates390x | Advisory build | 3.18.1-150400.3.7.1 | SUSE-SU-2022:2396-1 |
| SUSE / openSUSE | SLE-15-SP4 | logrotatex86_64 | Advisory build | 3.18.1-150400.3.7.1 | SUSE-SU-2022:2396-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | logrotateaarch64 | Advisory build | 3.18.1-150400.3.7.1 | SUSE-SU-2022:2396-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | logrotateppc64le | Advisory build | 3.18.1-150400.3.7.1 | SUSE-SU-2022:2396-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | logrotates390x | Advisory build | 3.18.1-150400.3.7.1 | SUSE-SU-2022:2396-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | logrotatex86_64 | Advisory build | 3.18.1-150400.3.7.1 | SUSE-SU-2022:2396-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | logrotateaarch64 | Advisory build | 3.20.1-1.1 | OPENSUSE-SU-2024:12108-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | logrotateppc64le | Advisory build | 3.20.1-1.1 | OPENSUSE-SU-2024:12108-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | logrotates390x | Advisory build | 3.20.1-1.1 | OPENSUSE-SU-2024:12108-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | logrotatex86_64 | Advisory build | 3.20.1-1.1 | OPENSUSE-SU-2024:12108-1 |
| Red Hat Enterprise Linux | RHEL-9 | logrotate-debuginfoaarch64 | Advisory build | 3.18.0-7.el9 | RHSA-2022:8393 |
| Red Hat Enterprise Linux | RHEL-9 | logrotate-debuginfoppc64le | Advisory build | 3.18.0-7.el9 | RHSA-2022:8393 |
| Red Hat Enterprise Linux | RHEL-9 | logrotate-debuginfos390x | Advisory build | 3.18.0-7.el9 | RHSA-2022:8393 |
| Red Hat Enterprise Linux | RHEL-9 | logrotate-debuginfox86_64 | Advisory build | 3.18.0-7.el9 | RHSA-2022:8393 |
| Red Hat Enterprise Linux | RHEL-9 | logrotate-debugsourceaarch64 | Advisory build | 3.18.0-7.el9 | RHSA-2022:8393 |
| Red Hat Enterprise Linux | RHEL-9 | logrotate-debugsourceppc64le | Advisory build | 3.18.0-7.el9 | RHSA-2022:8393 |
| Red Hat Enterprise Linux | RHEL-9 | logrotate-debugsources390x | Advisory build | 3.18.0-7.el9 | RHSA-2022:8393 |
| Red Hat Enterprise Linux | RHEL-9 | logrotate-debugsourcex86_64 | Advisory build | 3.18.0-7.el9 | RHSA-2022:8393 |
| Rocky Linux | 9 | logrotateppc64le | Listed in advisory | Not stated | RLSA-2022:8393 |
| Rocky Linux | 9 | logrotates390x | Listed in advisory | Not stated | RLSA-2022:8393 |
| Rocky Linux | 9 | logrotatesrc | Listed in advisory | Not stated | RLSA-2022:8393 |
| Rocky Linux | 9 | logrotatex86_64 | Listed in advisory | Not stated | RLSA-2022:8393 |
| Rocky Linux | 9 | logrotate-debuginfoaarch64 | Listed in advisory | Not stated | RLSA-2022:8393 |
| Rocky Linux | 9 | logrotate-debuginfoppc64le | Listed in advisory | Not stated | RLSA-2022:8393 |
| Rocky Linux | 9 | logrotate-debuginfos390x | Listed in advisory | Not stated | RLSA-2022:8393 |
| Rocky Linux | 9 | logrotate-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8393 |
| Rocky Linux | 9 | logrotate-debugsourceaarch64 | Listed in advisory | Not stated | RLSA-2022:8393 |
| Rocky Linux | 9 | logrotate-debugsourceppc64le | Listed in advisory | Not stated | RLSA-2022:8393 |
| Rocky Linux | 9 | logrotate-debugsources390x | Listed in advisory | Not stated | RLSA-2022:8393 |
| Rocky Linux | 9 | logrotate-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2022:8393 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | logrotate | logrotate versions before 3.20.0 (affected) | redhat · cna |
Weaknesses
2- CWE-732
- CWE-732 CWE-732 Incorrect Permission Assignment for Critical Resource
References
6- [oss-security] 20220525 Re: CVE-2022-1348 logrotate: potential DoS from unprivileged users via the state file http://www.openwall.com/lists/oss-security/2022/05/25/3
- [oss-security] 20220525 Re: Re: CVE-2022-1348 logrotate: potential DoS from unprivileged users via the state file http://www.openwall.com/lists/oss-security/2022/05/25/4
- [oss-security] 20220525 Re: Re: CVE-2022-1348 logrotate: potential DoS from unprivileged users via the state file http://www.openwall.com/lists/oss-security/2022/05/25/5
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2022-1348
- FEDORA-2022-ff0188b37c https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y7EHGYRE6DSFSBXQIWYDGTSXKO6IFSJQ/
- FEDORA-2022-87c0f05204 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZYEB4F37BY6GLEJKP2EPVAVQ6TA3HQKR/
Provider assertions
3redhat · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 85671f274b7b05d293b88c9a162ccb278ac71f9a4211f192b221abcf24d284a7
- Ingested
- 23 Sep 2026, 07:57:41 UTC
- Source record
- Official CVE record