Skip to content

Instantly share code, notes, and snippets.

@mschmitt
Last active April 30, 2026 07:09
Show Gist options
  • Select an option

  • Save mschmitt/d2b0a19034e3247428d5c31091ba7bef to your computer and use it in GitHub Desktop.

Select an option

Save mschmitt/d2b0a19034e3247428d5c31091ba7bef to your computer and use it in GitHub Desktop.
deploy-copyfail-mitigation.playbook.yml
#!/usr/bin/env ansible-playbook
#
# Mitigation for https://copy.fail CVE-2026-31431
---
- hosts: all
gather_facts: false
remote_user: root
tasks:
- name: Deploy /etc/modprobe.d/disable-algif.conf
copy:
dest: /etc/modprobe.d/disable-algif.conf
content: |
# Mitigation for https://copy.fail CVE-2026-31431
install algif_aead /bin/false
- name: reboot
shell: |
shutdown -r +5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment