Ubuntu 22.04 LTS : logrotate vulnerability (USN-5447-1)

medium Nessus Plugin ID 161615

Synopsis

The remote Ubuntu host is missing a security update.

Description

The remote Ubuntu 21.10 / 22.04 LTS host has a package installed that is affected by a vulnerability as referenced in the USN-5447-1 advisory.

- 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.
(CVE-2022-1348)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Update the affected logrotate package.

See Also

https://ubuntu.com/security/notices/USN-5447-1

Plugin Details

Severity: Medium

ID: 161615

File Name: ubuntu_USN-5447-1.nasl

Version: 1.6

Type: local

Agent: unix

Published: 5/27/2022

Updated: 10/20/2023

Supported Sensors: Agentless Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Frictionless Assessment Azure, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: Medium

Base Score: 4

Temporal Score: 3

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

CVSS Score Source: CVE-2022-1348

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.7

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:canonical:ubuntu_linux:22.04:-:lts, p-cpe:/a:canonical:ubuntu_linux:logrotate

Required KB Items: Host/cpu, Host/Ubuntu, Host/Ubuntu/release, Host/Debian/dpkg-l

Exploit Ease: No known exploits are available

Patch Publication Date: 5/26/2022

Vulnerability Publication Date: 5/25/2022

Reference Information

CVE: CVE-2022-1348

USN: 5447-1