RHEL-10-700990 - RHEL 10 must disable virtual system calls.

Information

System calls are special routines in the Linux kernel, which userspace applications ask to do privileged tasks. Invoking a system call is an expensive operation because the processor must interrupt the currently executing task and switch context to kernel mode and then back to userspace after the system call completes. Virtual system calls map into user space a page that contains some variables and the implementation of some system calls. This allows the system calls to be executed in userspace to alleviate the context-switching expense.

Virtual system calls provide an opportunity of attack for a user who has control of the return instruction pointer. Disabling virtual system calls help to prevent return-oriented programming attacks via buffer overflows and overruns.

Solution

Configure RHEL 10 to disable virtual system calls with the following command:

$ sudo grubby --update-kernel=ALL --args="vsyscall=none"

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_10_V1R1_STIG.zip

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-3, CAT|II, CCI|CCI-001084, Rule-ID|SV-281301r1184700_rule, STIG-ID|RHEL-10-700990, Vuln-ID|V-281301

Plugin: Unix

Control ID: 5e7e6701ee8659d8d9223fe7544adcfd23e8ae45bd085e5efc3ee487a63c83b0