{"id":6110,"date":"2026-05-05T23:03:57","date_gmt":"2026-05-06T06:03:57","guid":{"rendered":"https:\/\/catbradley.io\/?p=6110"},"modified":"2026-05-05T23:03:57","modified_gmt":"2026-05-06T06:03:57","slug":"should-you-be-worried-about-copy-fail-linux-exploitation","status":"publish","type":"post","link":"https:\/\/catbradley.io\/?p=6110","title":{"rendered":"Should You Be Worried About Copy Fail Linux Exploitation?"},"content":{"rendered":"<div class=\"kg-card kg-callout-card kg-callout-card-blue\">\n<div class=\"kg-callout-emoji\">\ud83d\udccb<\/div>\n<div class=\"kg-callout-text\">TLDR:<br \/>&#8211; A 9-year-old bug was discovered recently.<br \/>&#8211; The vulnerability is already patched in the Linux kernel.<br \/>&#8211; Normal users could gain root access by running a small Python script.<br \/>&#8211; Not much of a bother for regular desktop Linux users who keep their systems updated.<br \/>&#8211; Could be problematic for cloud servers and containers if the kernel is not updated.<\/div>\n<\/div>\n<p>A logic flaw that sat quietly in the Linux kernel since 2017 has finally been <a href=\"https:\/\/xint.io\/blog\/copy-fail-linux-distributions\">found and disclosed<\/a>. For a brief window, it let any unprivileged local user on a Linux system escalate to <a href=\"https:\/\/itsfoss.com\/root-user-ubuntu\/#:~:text=the%20root%20user-,What%20is%20root%20user%3F,-Why%20is%20it\" rel=\"noreferrer\">root<\/a> with a script smaller than most config files.<\/p>\n<p>The flaw is in a kernel subsystem that lets regular programs tap into built-in cryptographic functions. By feeding it file data in a specific way, an attacker can get the kernel to quietly overwrite 4 bytes of any file&#8217;s in-memory copy.<\/p>\n<p>The actual file on disk stays intact the whole time, so any tool checking file integrity will see nothing wrong. The exploit is just <strong>a 732-byte Python script<\/strong> that doesn&#8217;t require any additional dependencies or compilation.<\/p>\n<p>The vulnerability is tracked as <a href=\"https:\/\/www.cve.org\/CVERecord?id=CVE-2026-31431\">CVE-2026-31431<\/a>, goes by the name &#8220;<strong><em>Copy Fail<\/em><\/strong>,&#8221; and was discovered by researchers at <a href=\"https:\/\/theori.io\/\">Theori<\/a> using their AI security research tool, <a href=\"https:\/\/xint.io\/products\/xint-code\">Xint Code<\/a>.<\/p>\n<p>The security researchers tested it on <strong>Ubuntu 24.04 LTS<\/strong>, <strong>Amazon Linux 2023<\/strong>, <strong>RHEL 10.1<\/strong>, and <strong>SUSE 16<\/strong>, getting root on all four with the exact same script each time.<\/p>\n<p>They had reported the issue to the Linux kernel security team on March 23, received acknowledgment the next day, and had a patch proposed and reviewed by March 25. The fix <a href=\"https:\/\/github.com\/torvalds\/linux\/commit\/a664bf3d603dc3bdcf9ae47cc21e0daec706d7a5\">was committed to mainline<\/a> on April 1, with the CVE assigned on April 22, and public disclosure following on April 29 (<em>linked earlier<\/em>).<\/p>\n<h2>Who needs to worry, and who doesn&#8217;t?<\/h2>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"https:\/\/itsfoss.com\/content\/images\/2026\/05\/copy-fail-risk-tiers.png\" class=\"kg-image\" alt=\"this picture shows six categories with different risk ratings for various linux setups\" loading=\"lazy\" width=\"1063\" height=\"801\" \/><\/figure>\n<p>According to the <a href=\"https:\/\/copy.fail\/\">Copy Fail<\/a> website hosted by Theori, the risk level varies quite a bit depending on how you run Linux.<\/p>\n<p>At the top are <strong>multi-tenant Linux hosts<\/strong>, Kubernetes and container clusters, CI runners and build farms, and cloud SaaS environments running user-supplied code.<\/p>\n<p>These all get a &#8220;<em>High<\/em>&#8221; risk rating. Containers and cloud workloads are especially exposed because the Linux page cache, the part of memory this exploit corrupts, is shared across the entire host, container boundaries included.<\/p>\n<p>A compromised container can take down the whole node, and a bad pull request run on a shared CI runner could hand an attacker root on that machine.<\/p>\n<p><strong>Standard Linux servers<\/strong> where only the team running it has shell access get a &#8220;<em>Medium<\/em>&#8221; rating, whereas <strong>personal desktops and laptops<\/strong> are at the bottom with a &#8220;<em>Lower<\/em>&#8221; risk rating.<\/p>\n<p>Copy Fail needs local code execution to work, so it won&#8217;t get anyone in remotely by itself. If malware is already running on your machine, this could be used to escalate to root, but that&#8217;s a bigger problem either way.<\/p>\n<p>To fix this, patching the kernel is the way. Most major distros have updates out or on the way. If patching isn&#8217;t immediately possible, Theori recommends blacklisting the <code>algif_aead<\/code> kernel module as a stopgap:<\/p>\n<pre><code>echo \"install algif_aead \/bin\/false\" &gt; \/etc\/modprobe.d\/disable-algif-aead.conf\n\nrmmod algif_aead 2&gt;\/dev\/null<\/code><\/pre>\n<p>As of writing, <a href=\"https:\/\/www.microsoft.com\/en-us\/security\/blog\/2026\/05\/01\/cve-2026-31431-copy-fail-vulnerability-enables-linux-root-privilege-escalation\/\">Microsoft has noted<\/a> that exploitation remained &#8220;<em>limited and primarily observed in proof-of-concept testing<\/em>,&#8221; so there&#8217;s no confirmed mass-scale campaign just yet.<\/p>\n<p>That said, <a href=\"https:\/\/www.cisa.gov\/\">CISA<\/a>, the US cybersecurity agency, has added Copy Fail to its <a href=\"https:\/\/www.cisa.gov\/known-exploited-vulnerabilities-catalog\">Known Exploited Vulnerabilities<\/a> (KEV) catalog, ordering US federal agencies <a href=\"https:\/\/www.cisa.gov\/news-events\/alerts\/2026\/05\/01\/cisa-adds-one-known-exploited-vulnerability-catalog\">to patch their Linux systems<\/a> by May 15.<\/p>\n<p>It also urged other organizations to treat it as a priority regardless of whether the federal deadline applies to them.<\/p>\n<hr \/>\n<p><strong>Suggested Read \ud83d\udcd6: <\/strong><a href=\"https:\/\/itsfoss.com\/news\/vs-code-credits-copilot-for-human-work\/\"><em>VS Code Was Adding Copilot as a Git Co-Author Without Telling Anyone<\/em><\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/feed.itsfoss.com\/link\/24361\/17335279.gif\" height=\"1\" width=\"1\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>\ud83d\udccb TLDR:&#8211; A 9-year-old bug was discovered recently.&#8211; The vulnerability is already patched in the Linux kernel.&#8211; Normal users could gain root access by running a small Python script.&#8211; Not&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":[],"rop_publish_now_history":[],"rop_publish_now_status":"pending","footnotes":""},"categories":[1],"tags":[],"class_list":["post-6110","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rss"],"_links":{"self":[{"href":"https:\/\/catbradley.io\/index.php?rest_route=\/wp\/v2\/posts\/6110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/catbradley.io\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/catbradley.io\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/catbradley.io\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/catbradley.io\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6110"}],"version-history":[{"count":0,"href":"https:\/\/catbradley.io\/index.php?rest_route=\/wp\/v2\/posts\/6110\/revisions"}],"wp:attachment":[{"href":"https:\/\/catbradley.io\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/catbradley.io\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/catbradley.io\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}