STIGUI
V-274185CAT II — Medium severitySV-274185r1120543_rule

Amazon Linux 2023 must remove all software components after updated versions have been installed.

Rule version AZLX-23-002615 · STIG v1 · 2026-08-20

Discussion

Previous versions of software components that are not removed from the information system after updates have been installed may be exploited by some adversaries.

Check

Verify Amazon Linux 2023 removes all software components after updated versions have been installed with the following command:

$ grep clean /etc/dnf/dnf.conf clean_requirements_on_remove=1

If "clean_requirements_on_remove" is not set to "1", "True", or "yes", this is a finding.

Fix

Configure Amazon Linux 2023 to remove all software components after updated versions have been installed.

Set the "clean_requirements_on_remove" option to "1" in the "/etc/dnf/dnf.conf" file:

clean_requirements_on_remove=1

Identifiers

Group ID
V-274185
Group title
SRG-OS-000437-GPOS-00194
Rule ID
SV-274185r1120543_rule
Check ID
C-78276r1120541_chk
Fix ID
F-78181r1120542_fix