Critical Linux Kernel Vulnerability Allows Unprivileged Local Users to Gain Root Privileges (CVE-2026-31431)

PUBLISHED:
30 April 2026

Attack Summary

A critical vulnerability (CVE-2026-31431) has been identified in the Linux kernel’s cryptographic subsystem. The flaw is a logic error in the AF_ALG interface that permits any unprivileged local user to achieve full root access on affected systems.

The vulnerability enables controlled modification of file data in kernel memory (page cache) without altering files on disk.

Description

The issue resides in the algif_aead kernel module and the associated AF_ALG socket implementation. By leveraging standard Linux features (AF_ALG sockets combined with splice() and pipe() system calls), an attacker can perform a controlled 4-byte write into the system’s page cache.

This allows in-memory modification of any readable setuid-root binary (most commonly /usr/bin/su). When the modified binary is executed, the attacker’s payload is run with root privileges.

The complete attack can be executed using a single, compact Python script (approximately 732 bytes). No complex tools or additional privileges are required.

Exploit Workflow

  • Attacker opens a file (e.g., a setuid binary) and uses AF_ALG + splice() to reach kernel file-handling code.
  • Controlled writes are injected into the page cache (in-memory copy of the file).
  • The setuid binary is modified only in memory.
  • Execution of the binary runs the attacker-controlled payload, granting root access.
  • No changes are made to the filesystem, the attack is fileless and disappears on reboot.

Exploit Workflow

  • Almost all major Linux distributions since 2017 (the buggy code has been present since the 2017 introduction of the in-place optimization).
  • Affected distributions include:
    • Ubuntu
    • Red Hat Enterprise Linux (RHEL)
    • Amazon Linux
    • SUSE Linux Enterprise
  • Multiple kernel versions are impacted.

Mitigation

  • Apply the latest Linux kernel security patches immediately.
  • If immediate patching is not possible, disable the vulnerable module

References

Critical Linux Kernel Vulnerability Allows Unprivileged Local Users to Gain Root Privileges (CVE-2026-31431)

READ MORE READ MORE

Critical Microsoft SharePoint Flaw Exploitations in the Wild

READ MORE READ MORE
15 January 2025 [NO.TCSA : 20250115-1-1-E]

Auth Bypass Vulnerability Exploited in Wild to Hijack Fortinet Firewalls

READ MORE READ MORE
Read More BACK TO THREAT BULLETIN