Skip to main content

VU#260001: Linux kernel contains local privilege escalation vulnerability (Copy Fail)

Best suited for

Seniority
Director
Job function
Cybersecurity / Information Security
Persona
Security Operations Practitioner
Buyer role
Decision Maker / Budget Holder
Decision stage
Which to buy
Adoption curve
Early Majority
Technology maturity
Established Technology

Our classification, not the publisher's statement. Best suited for, not only for.

Linux kernel versions 4.17 and later contain a local privilege escalation vulnerability that can let an unprivileged local user gain root access. The issue has been publicly disclosed with the identifier CVE-2026-31431 and is commonly referred to as “Copy Fail,” with the main outcome being escalation from local access to root.

The Linux kernel includes the algif_aead module since version 4.17, which provides user space access to authenticated encryption with associated data (AEAD) operations via the AF_ALG interface. The module may be present as a loadable kernel module or compiled directly into the kernel, depending on the Linux distribution or a custom built Linux install. Per the disclosure statement at https://copy.fail, an unprivileged local user can write 4 controlled bytes into the page cache of any readable file on a Linux system to gain root. The vulnerability is caused by a logic flaw in the Linux kernel’s algif_aead (AF_ALG) implementation, enabling a reliable controlled 4-byte write into the page cache of any readable file without race conditions or timing dependencies. The corrupted page is not marked dirty, so modified contents are never written back to disk; the underlying file remains unchanged, allowing in-memory corruption to bypass checksum and file integrity verification mechanisms. Because subsequent reads are served from the page cache, an attacker can target a setuid binary and modify its in-memory contents to achieve local privilege escalation to root. A 732-byte proof-of-concept Python script demonstrates exploitation by modifying a setuid binary to obtain root privileges on many Linux distributions released since 2017. The vulnerability was discovered by Taeyang Lee of Theori, with assistance from the AI-based static application security testing (SAST) tool Xint Code during analysis of the Linux kernel cryptographic subsystem.

The vulnerability allows an unprivileged local user to modify the in-memory contents of a setuid binary and escalate privileges to root. Public proof-of-concept (PoC) exploit code is available, which increases the likelihood of exploitation.

The remediation guidance states to apply the upstream kernel patch that addresses the issue by reverting AF_ALG AEAD to an out-of-place operation. It also advises updating the distribution’s kernel package as soon as vendor patches become available, noting that most major Linux distributions are expected to release fixes through standard update channels. The documented workarounds include disabling the algif_aead module when it is loadable by writing “install algif_aead /bin/false” to /etc/modprobe.d/disable-algif-aead.conf and removing it with rmmod algif_aead 2>/dev/null. If algif_aead is compiled into the kernel, the guidance says a parameter can be added to grub or systemd-boot or grubby depending on the boot configuration: initcall_blacklist=algif_aead_init, with a system reboot required for the change to take effect. It adds that these workarounds may impact applications that rely on AF_ALG cryptographic interfaces. For containerized environments, it recommends considering one or more mitigations: seccomp filtering to restrict or deny system calls that create sockets using the AF_ALG address family (protocol 38), AppArmor policies to block creation of AF_ALG sockets via the network alg rule, and BPF-based enforcement to deny socket creation with address family AF_ALG (38). The mitigation section notes this guidance is adopted from bytedance for the vArmor community. The document also states that while the internal kernel within a VM or MicroVM is susceptible, standard virtualization provides hardware-enforced memory isolation, and the bug cannot be directly leveraged to facilitate a virtualization escape from a guest to the host; virtualization and micro-virtualization technologies are described as containing the impact to the individual VM instance.

Vendor guidance provided in the advisory content states that the vulnerability was disclosed by Theori.io, and the document was written by Bob Kemerer and Vijay Sarvepalli.

Blog post, originally published at kb.cert.org.

Structured data (JSON-LD)

The schema.org markup this page publishes for search engines and AI agents, exactly as they read it.

[
  {
    "@context": "https://schema.org",
    "@id": "https://decisioninsights.ai/#website",
    "@type": "WebSite",
    "name": "Decision Insights",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://decisioninsights.ai/search/?q={search_term_string}&submit=1"
      }
    },
    "publisher": {
      "@id": "https://decisioninsights.ai/#organization"
    },
    "url": "https://decisioninsights.ai"
  },
  {
    "@context": "https://schema.org",
    "@id": "https://decisioninsights.ai/#organization",
    "@type": "Organization",
    "contactPoint": {
      "@type": "ContactPoint",
      "contactType": "customer support",
      "email": "[email protected]"
    },
    "description": "Decision Insights is a Registry of technology companies, open source projects, and industry terms, built for people and for AI agents that need sourced, structured information.",
    "logo": {
      "@type": "ImageObject",
      "url": "https://wiretap-cdn-assets.nyc3.cdn.digitaloceanspaces.com/decision-insights/[email protected]"
    },
    "name": "Decision Insights",
    "parentOrganization": {
      "@type": "Organization",
      "name": "Wiretap Labs",
      "sameAs": [
        "https://www.linkedin.com/company/wiretap-labs",
        "https://www.crunchbase.com/organization/wiretap-labs"
      ],
      "url": "https://wiretaplabs.com"
    },
    "publishingPrinciples": "https://decisioninsights.ai/standards/",
    "sameAs": [
      "https://www.linkedin.com/company/decisioninsights"
    ],
    "url": "https://decisioninsights.ai"
  },
  {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "item": "https://decisioninsights.ai",
        "name": "Decision Insights",
        "position": 1
      },
      {
        "@type": "ListItem",
        "item": "https://decisioninsights.ai/records/",
        "name": "Records",
        "position": 2
      },
      {
        "@type": "ListItem",
        "item": "https://decisioninsights.ai/vu260001:-linux-kernel-contains-local-privilege-escalation-vulnerability-copy-fail/",
        "name": "VU#260001: Linux kernel contains local privilege escalation vulnerability (Copy Fail)",
        "position": 3
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "@id": "https://decisioninsights.ai/vu260001:-linux-kernel-contains-local-privilege-escalation-vulnerability-copy-fail/#blogposting",
    "@type": "BlogPosting",
    "audience": [
      {
        "@type": "Audience",
        "additionalType": "Seniority",
        "audienceType": "Director"
      },
      {
        "@type": "Audience",
        "additionalType": "Job function",
        "audienceType": "Cybersecurity / Information Security"
      },
      {
        "@type": "Audience",
        "additionalType": "Persona",
        "audienceType": "Security Operations Practitioner"
      },
      {
        "@type": "Audience",
        "additionalType": "Buyer role",
        "audienceType": "Decision Maker / Budget Holder"
      },
      {
        "@type": "Audience",
        "additionalType": "Adoption curve",
        "audienceType": "Early Majority"
      },
      {
        "@type": "Audience",
        "additionalType": "Technology maturity",
        "audienceType": "Established Technology"
      }
    ],
    "author": {
      "@id": "https://decisioninsights.ai/author/decision-insights-threat-desk/#person",
      "@type": "Person",
      "name": "Decision Insights Threat Desk",
      "url": "https://decisioninsights.ai/author/decision-insights-threat-desk/"
    },
    "dateModified": "2026-08-23T13:11:54-06:00",
    "datePublished": "2026-05-08T15:45:46-06:00",
    "description": "Explains a local privilege escalation vulnerability in Linux kernel 4.17+ called “Copy Fail” (CVE-2026-31431), including its cause and mitigations.",
    "headline": "VU#260001: Linux kernel contains local privilege escalation vulnerability (Copy Fail)",
    "isBasedOn": {
      "@type": "CreativeWork",
      "sourceOrganization": {
        "@id": "https://decisioninsights.ai/registry/department-of-homeland-security/#organization",
        "@type": "Organization",
        "mainEntityOfPage": "https://decisioninsights.ai/registry/department-of-homeland-security/",
        "name": "Department of Homeland Security"
      },
      "url": "https://kb.cert.org/vuls/id/260001"
    },
    "keywords": [
      "Virtualization",
      "Vulnerabilities"
    ],
    "mainEntityOfPage": {
      "@id": "https://decisioninsights.ai/vu260001:-linux-kernel-contains-local-privilege-escalation-vulnerability-copy-fail/",
      "@type": "WebPage",
      "sdDatePublished": "2026-08-23",
      "sdPublisher": {
        "@id": "https://decisioninsights.ai/#organization"
      }
    },
    "mentions": [
      {
        "@id": "https://decisioninsights.ai/projects/linux-kernel/#project",
        "@type": "SoftwareSourceCode",
        "mainEntityOfPage": "https://decisioninsights.ai/projects/linux-kernel/",
        "name": "Linux Kernel"
      },
      {
        "@id": "https://decisioninsights.ai/projects/python/#project",
        "@type": "SoftwareSourceCode",
        "mainEntityOfPage": "https://decisioninsights.ai/projects/python/",
        "name": "Python"
      }
    ],
    "publisher": {
      "@id": "https://decisioninsights.ai/#organization"
    }
  },
  {
    "@context": "https://schema.org",
    "@id": "https://decisioninsights.ai/author/decision-insights-threat-desk/#person",
    "@type": "Person",
    "description": "CISA advisories, vendor security bulletins, and CVE disclosures, summarized into sourced briefs. Produced under our Standards & Methodology.",
    "name": "Decision Insights Threat Desk",
    "sameAs": [
      "https://www.linkedin.com/showcase/decisioninsights/"
    ],
    "url": "https://decisioninsights.ai/author/decision-insights-threat-desk/"
  }
]

Is this your company? Get structured data for your own pages