RHEL 10 must be configured to disable the Controller Area Network (CAN) kernel module.

STIG ID: RHEL-10-701100  |  SRG: SRG-OS-000095-GPOS-00049 |  Severity: medium (CAT II)  |  CCI: CCI-000381 |  Vulnerability Id: V-281312

Vulnerability Discussion

Disabling CAN protects the system against exploitation of any flaws in its implementation.

Check

Verify RHEL 10 disables the ability to load the CAN kernel module with the following command:

$ sudo grep -rs can /etc/modprobe.conf /etc/modprobe.d/* | grep -v '#'
/etc/modprobe.d/can.conf:install can /bin/false
/etc/modprobe.d/can.conf:blacklist can

If the command does not return any output, or the lines are commented out, and use of CAN is not documented with the information system security officer as an operational requirement, this is a finding.

Fix

Configure RHEL 10 to disable the ability to load the CAN kernel module.

Create a drop-in if it does not already exist:

$ sudo vi /etc/modprobe.d/can.conf

Add the following lines to the file:

install can /bin/false
blacklist can