Skip to content

mitigation for copy fail CVE #4215

Description

@danrzs

A new CVE with some serious bite has been made public knowledge: https://copy.fail/

tl;dr can use logic bug in kernel module algif_aead to modify memory pages - the example given is running su as non root - however this could easily affect any other memory mapped file (e.g. /etc/shadow)

i note in our linuxkit VMs - using kernel image linuxkit/kernel:6.6.71 that the particular kernel config flag in question (CONFIG_CRYPTO_USER_API) is compiled directly into the kernel:

my-linuxkit-vm:~# zcat /proc/config.gz | grep CONFIG_CRYPTO_USER_API
CONFIG_CRYPTO_USER_API=y

and

CONFIG_CRYPTO_USER_API=y

so we cannot use the immediate mitigation of denylisting the algif_aead module.

the "true" fix is at torvalds/linux@a664bf3

is there any effort currently in place to fix this?

I can get a MWE later today.

For us, most of our VMs are heavily locked down, so we're partially protected by dropped CAPs, razor thin containers, etc.

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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions