Skip to content

Mitigating "Copy Fail" and "Dirty Frag" vulnerabilities on DietPi #8122

Description

@AdamF100001

ADMIN EDIT

The two major recent Linux vulnerabilities are:

We pushed updates for all our kernel packages. For the SBCs with too old frozen Linux version, the affected kernel modules have been removed.

Debian and Raspberry Pi Ltd pushed kernel package updates containing the mitigation as well.

Hence, all that needs to be done now is:

sudo apt update
sudo apt full-upgrade # "full" needed for our linux-dtb + linux-image package merger on Armbian-based builds
sudo reboot

If, after the reboot, the Linux version is still below v7.0.6, v6.18.29, v6.12.87 (or v6.12.86 on x86_64, which has a backported patch), v6.6.138, v6.1.172, respectively, verify that the modules are not available:

modinfo algif_aead esp4 esp6 rxrpc

In case you use an unsupported SBC or custom kernel that is too old and still has one of the above modules available, prevent them from being loaded like that:

printf 'install algif_aead /bin/false\nblacklist algif_aead\n' | sudo tee /etc/modprobe.d/copyfail.conf
printf 'install esp4 /bin/false\ninstall esp6 /bin/false\ninstall rxrpc /bin/false\n' | sudo tee /etc/modprobe.d/dirtyfrag.conf
printf 'blacklist esp4\nblacklist esp6\nblacklist rxrpc\n' | sudo tee -a /etc/modprobe.d/dirtyfrag.conf
sudo modprobe -r algif_aead esp4 esp6 rxrpc
echo 3 | sudo tee /proc/sys/vm/drop_caches

Hi All,

Just a quick question when will Copy Fail CVE-2026-31431 be patched in DietPi?

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions