Skip to content
Memory corruption Write-up Advanced

CVE-2026–31431 — Privilege Escalation via AEAD Crypto Socket

The report claims a Linux kernel privilege escalation through the AF_ALG crypto socket interface, where crafted AEAD socket operations cause memory manipulation and let a local attacker run code as root. It presents a proof-of-concept that overwrites the su binary and then spawns a root shell.

Aditya Bhatt Follow

Published on meetcyber.net

CVE-2026–31431 is a Linux privilege escalation vulnerability that abuses the AFALG (kernel crypto API) interface. By crafting a malicious interaction with AEAD (Authenticated Encryption with Associated Data) sockets, an attacker can escalate privileges and execute code as root.

Aditya Bhatt, on meetcyber.net

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely improper handling of cryptographic socket operations in the kernel's AEAD implementation, allowing controlled memory writes.

Impact

A local attacker could escalate privileges to root on systems with vulnerable kernel crypto implementations.

What the attacker needed

Local access to the system; vulnerable kernel crypto implementation

The fix

The kernel should be patched, and access to AF_ALG sockets restricted with LSM policies such as AppArmor or SELinux.

How it was found

  1. Create an AF_ALG socket.
  2. Bind the socket to the authenc(hmac(sha256),cbc(aes)) algorithm.
  3. Configure AEAD parameters and send a crafted payload via setsockopt and sendmsg.
  4. Trigger the kernel flaw and overwrite execution flow.
  5. Spawn a root shell.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

AF_ALG is a way for programs to ask the Linux kernel to do cryptography for them. The report says that by sending specially crafted requests to this interface, a local user can confuse the kernel into writing to memory it should not touch, and from there take over the machine as the all-powerful root user.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Aditya Bhatt

View all

25 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.