Ubuntu 24.04 LTS must retain a user's session lock until the user reestablishes access using established identification and authentication procedures.

STIG ID: UBTU-24-200040  |  SRG: SRG-OS-000028-GPOS-00009 |  Severity: medium |  CCI: CCI-000056 |  Vulnerability Id: V-270679

Vulnerability Discussion

A session lock is a temporary action taken when a user stops work and moves away from the immediate physical vicinity of the information system but does not want to log out because of the temporary nature of the absence.

The session lock is implemented at the point where session activity can be determined.

Regardless of where the session lock is determined and implemented, once invoked, a session lock of Ubuntu 24.04 LTS must remain in place until the user reauthenticates. No other activity aside from reauthentication must unlock the system.

Check

Note: If Ubuntu 24.04 LTS does not have a graphical user interface installed, this requirement is not applicable.

Verify the Ubuntu operation system has a graphical user interface session lock enabled with the following command:

$ sudo gsettings get org.gnome.desktop.screensaver lock-enabled
true

If "lock-enabled" is not set to "true", this is a finding.

Fix

Configure Ubuntu 24.04 LTS to allow a user to lock the current graphical user interface session.

Set the "lock-enabled" setting to allow graphical user interface session locks with the following command:

$ gsettings set org.gnome.desktop.screensaver lock-enabled true