Skip to content

Commit 66bd1f0

Browse files
authored
Add CVE-2021-33909 mitigations (#466)
* Add CVE-2021-33909 mitigations kernel.unprivileged_bpf_disabled: 1 kernel.unprivileged_userns_clone: 0 The first one is also used by Tails. Signed-off-by: Paweł Krawczyk <[email protected]> * Clean up whitespaces Signed-off-by: Paweł Krawczyk <[email protected]>
1 parent 327b1a8 commit 66bd1f0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

roles/os_hardening/defaults/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,14 @@ sysctl_config:
282282
vm.mmap_rnd_bits: 32
283283
vm.mmap_rnd_compat_bits: 16
284284

285+
# Disable unprivileged users from loading eBPF programs into the kernel.
286+
# One of mitigations against CVE-2021-33909. | Tail-2
287+
kernel.unprivileged_bpf_disabled: 1
288+
289+
# Reduce attack surface by disabling unprivileged user namespaces.
290+
# Mitigates CVE-2021-33909 and other exploits.
291+
kernel.unprivileged_userns_clone: 0
292+
285293
# Do not delete the following line or otherwise the playbook will fail
286294
# at task 'create a combined sysctl-dict if overwrites are defined'
287295
sysctl_overwrite:

0 commit comments

Comments
 (0)