UBTU-22-214015 - Ubuntu 22.04 LTS must be configured so that the Advance Package Tool (APT) removes all software components after updated versions have been installed.

Information

Previous versions of software components that are not removed from the information system after updates have been installed may be exploited by adversaries. Some information technology products may remove older versions of software automatically from the information system.

Solution

Configure APT to remove all software components after updated versions have been installed.

Add or modify the following lines in the '/etc/apt/apt.conf.d/50-unattended-upgrades' file:

Unattended-Upgrade::Remove-Unused-Kernel-Packages 'true';
Unattended-Upgrade::Remove-Unused-Dependencies 'true';

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_CAN_Ubuntu_22-04_LTS_V2R2_STIG.zip

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-2(6), CAT|II, CCI|CCI-002617, Rule-ID|SV-260477r958936_rule, STIG-ID|UBTU-22-214015, Vuln-ID|V-260477

Plugin: Unix

Control ID: f1c02c4fc035ab1e42253e217131e9a7a8b02dbf111c3bd53d0d65904a0b7872