AlmaLinux OS 9 must not have the cups package installed.

STIG ID: ALMA-09-029390  |  SRG: SRG-OS-000095-GPOS-00049 |  Severity: medium |  CCI: CCI-000381 |  Vulnerability Id: V-269339

Vulnerability Discussion

The cups package provides printer drivers as well as a print server, webserver, and discovery mechanisms. Removing the package reduces the potential attack surface.

Check

Verify that the cups package is not installed with the following command:

$ dnf list –installed cups

Error: No matching Packages to list

If the "cups" package is installed, this is a finding.

Fix

Remove the cups package with the following command:

$ dnf remove cups