Lucene search

K
ubuntucveUbuntu.comUB:CVE-2022-1348
HistoryMay 25, 2022 - 12:00 a.m.

CVE-2022-1348

2022-05-2500:00:00
ubuntu.com
ubuntu.com
13
vulnerability
logrotate
unprivileged user
file lock
world-readable
state file
security flaw
version 3.20.0

CVSS2

4

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:N/I:N/A:P

CVSS3

6.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

EPSS

0.001

Percentile

44.4%

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.

Notes

Author Note
alexmurray Only affects logrotate >= 3.17.0
mdeslaur Ubuntu packages build with: --with-state-file-path=/var/lib/logrotate/status but the /var/lib/logrotate directory itself is 755, so a user can get a lock on the file. See follow-up pull request with additional fix
OSVersionArchitecturePackageVersionFilename
ubuntu21.10noarchlogrotate< 3.18.0-2ubuntu1.1UNKNOWN
ubuntu22.04noarchlogrotate< 3.19.0-1ubuntu1.1UNKNOWN
ubuntu22.10noarchlogrotate< 3.20.1-1ubuntu1UNKNOWN

CVSS2

4

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:N/I:N/A:P

CVSS3

6.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

EPSS

0.001

Percentile

44.4%