The Ubuntu operating system must be configured so that Advance Package Tool (APT) removes all software components after updated versions have been installed.
Overview
| Finding ID | Version | Rule ID | IA Controls | Severity |
| V-238370 | UBTU-20-010449 | SV-238370r958936_rule | CCI-002617 | medium |
| Description | ||||
| 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. | ||||
| STIG | Date | |||
| Canonical Ubuntu 20.04 LTS Security Technical Implementation Guide | 2025-05-16 | |||
Related Frameworks
1 mapping across 3 frameworks
Related Frameworks
SCF0 mappings
No source states a mapping between these directly.
Also reachable in 3 hops (1) derived by us, not asserted by any source
Each of these is a route we composed by chaining published mappings. No publisher states a relationship between the two endpoints.
- DISA STIG Benchmark (XCCDF)2intersects(normalised)
- DISA CCI List2025-01-23equal to(normalised)
- SCF Secure Traceability Relationship Mapping (STRM)2026.2equal to
NIST 800-530 mappings
No source states a mapping between these directly.
Also reachable in 2 hops (1) derived by us, not asserted by any source
Each of these is a route we composed by chaining published mappings. No publisher states a relationship between the two endpoints.
- DISA STIG Benchmark (XCCDF)2intersects(normalised)
- DISA CCI List2025-01-23equal to(normalised)
CCI1 mapping
CCI-002617
1.00
- DISA STIG Benchmark (XCCDF)2intersects(normalised)
Details
Check Text (C-238370r958936_chk)
Verify is configured to remove all software components after updated versions have been installed with the following command:
$ grep -i remove-unused /etc/apt/apt.conf.d/50unattended-upgrades
Unattended-Upgrade::Remove-Unused-Dependencies "true";
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
If the "::Remove-Unused-Dependencies" and "::Remove-Unused-Kernel-Packages" parameters are not set to "true" or are missing or commented out, this is a finding.
Fix Text (F-41539r654284_fix)
Configure APT to remove all software components after updated versions have been installed.
Add or updated the following options to the "/etc/apt/apt.conf.d/50unattended-upgrades" file:
Unattended-Upgrade::Remove-Unused-Dependencies "true";
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";