Amazon Linux 2023 : systemd, systemd-container, systemd-devel (ALAS2023-2023-025)

medium Nessus Plugin ID 173143

Synopsis

The remote Amazon Linux 2023 host is missing a security update.

Description

It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS2023-2023-025 advisory.

- A flaw was found in systemd. An uncontrolled recursion in systemd-tmpfiles may lead to a denial of service at boot time when too many nested directories are created in /tmp. (CVE-2021-3997)

- A vulnerability was found in systemd. This security flaw can cause a local information leak due to systemd-coredump not respecting the fs.suid_dumpable kernel setting. (CVE-2022-4415)

- systemd 250 and 251 allows local users to achieve a systemd-coredump deadlock by triggering a crash that has a long backtrace. This occurs in parse_elf_object in shared/elf-util.c. The exploitation methodology is to crash a binary calling the same function recursively, and put it in a deeply nested directory to make its backtrace large enough to cause the deadlock. This must be done 16 times when MaxConnections=16 is set for the systemd/units/systemd-coredump.socket file. (CVE-2022-45873)

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

Solution

Run 'dnf update systemd --releasever=2023.0.20230222 ' to update your system.

See Also

https://alas.aws.amazon.com/AL2023/ALAS-2023-025.html

https://alas.aws.amazon.com/cve/html/CVE-2021-3997.html

https://alas.aws.amazon.com/cve/html/CVE-2022-4415.html

https://alas.aws.amazon.com/cve/html/CVE-2022-45873.html

https://alas.aws.amazon.com/faqs.html

Plugin Details

Severity: Medium

ID: 173143

File Name: al2023_ALAS2023-2023-025.nasl

Version: 1.1

Type: local

Agent: unix

Published: 3/21/2023

Updated: 4/21/2023

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

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 4.6

Temporal Score: 3.6

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

CVSS Score Source: CVE-2022-4415

CVSS v3

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 5

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

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

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:systemd, p-cpe:/a:amazon:linux:systemd-container, p-cpe:/a:amazon:linux:systemd-container-debuginfo, p-cpe:/a:amazon:linux:systemd-debuginfo, p-cpe:/a:amazon:linux:systemd-debugsource, p-cpe:/a:amazon:linux:systemd-devel, p-cpe:/a:amazon:linux:systemd-journal-remote, p-cpe:/a:amazon:linux:systemd-journal-remote-debuginfo, p-cpe:/a:amazon:linux:systemd-libs, p-cpe:/a:amazon:linux:systemd-libs-debuginfo, p-cpe:/a:amazon:linux:systemd-networkd, p-cpe:/a:amazon:linux:systemd-networkd-debuginfo, p-cpe:/a:amazon:linux:systemd-oomd-defaults, p-cpe:/a:amazon:linux:systemd-pam, p-cpe:/a:amazon:linux:systemd-pam-debuginfo, p-cpe:/a:amazon:linux:systemd-resolved, p-cpe:/a:amazon:linux:systemd-resolved-debuginfo, p-cpe:/a:amazon:linux:systemd-rpm-macros, p-cpe:/a:amazon:linux:systemd-standalone-sysusers, p-cpe:/a:amazon:linux:systemd-standalone-sysusers-debuginfo, p-cpe:/a:amazon:linux:systemd-standalone-tmpfiles, p-cpe:/a:amazon:linux:systemd-standalone-tmpfiles-debuginfo, p-cpe:/a:amazon:linux:systemd-tests, p-cpe:/a:amazon:linux:systemd-tests-debuginfo, p-cpe:/a:amazon:linux:systemd-udev, p-cpe:/a:amazon:linux:systemd-udev-debuginfo, cpe:/o:amazon:linux:2023

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2/17/2023

Vulnerability Publication Date: 3/8/2022

Reference Information

CVE: CVE-2021-3997, CVE-2022-4415, CVE-2022-45873