vendor:
Snap
by:
user
7.8
CVSS
HIGH
Bypassing Seccomp Filter
787
CWE
Product Name: Snap
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: NO
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: Linux
2020
Snap Seccomp Filter Bypass
Snap uses a seccomp filter to prevent the use of the TIOCSTI ioctl. In the X86-64 version of the compiled seccomp filter, this results in the following BPF bytecode. This bytecode performs a 64-bit comparison; however, the syscall entry point for ioctl() is defined with a 32-bit command argument in the kernel. This means that setting a bit in the high half of the command parameter will circumvent the seccomp filter while being ignored by the kernel.
Mitigation:
Ensure that the seccomp filter is properly configured to prevent bypassing.