Two threads, one socket, and a kernel that didn’t expect them to share — that’s the whole bug.

At a glance

  • CVE: CVE-2025-39964 — a race condition in af_alg_sendmsg, part of AF_ALG, the socket interface that lets ordinary programs use the kernel’s crypto code.
  • Severity: 7.8 (High) from the kernel’s CVE team. NVD’s own score is lower (5.5, Medium) because it only counts the crash, and Red Hat rates it Moderate (7.3).
  • Affected: Linux kernels from 2.6.38 up to (but not including) 5.10.245, 5.15.194, 6.1.154, 6.6.108, 6.12.49 and 6.16.9. Mainline is fixed from 6.17. The kernel’s record lists no fix for the 5.4 branch or older.
  • Known exploited: Yes — CISA added it to the KEV list on 2026-09-18.

What’s going on

AF_ALG is a socket type that gives any program on the machine access to the kernel’s encryption and hashing code. The bug: if two threads write to the same AF_ALG socket at the same time, their data gets interleaved and the socket’s internal bookkeeping goes out of sync. The fix is simple — only one writer at a time.

The consequences are less simple. The kernel’s CVE team explains that an attacker can run both writers from their own threads, steer the timing, and turn the broken bookkeeping into reads and writes of kernel memory. That’s enough to escalate privileges, or at the very least crash the machine. No special permissions are needed: AF_ALG is open to any unprivileged user, including one inside a container or an unprivileged user namespace. It was reported by researchers at STAR Labs.

In web-server terms, this is a local privilege escalation. It can’t be triggered over HTTP. It matters after something else has gone wrong — say a vulnerable plugin or a leaked SSH key gives an attacker a shell as your web user. On a fixed kernel they’re stuck with that user’s limited rights. On a vulnerable one, they can try to jump to root and own the whole server. That makes shared hosting, CI runners and Docker or Kubernetes nodes running untrusted code the places to patch first, since every container on a host shares the same kernel.

It’s also not brand new: the fix went in back in September 2025, a year before CISA flagged it as exploited.

Timeline

  • Fix committed upstream: 2025-09-18 (commit 1b34cbbf4f01, released in 6.17-rc7)
  • Disclosed (CVE published): 2025-10-13
  • Added to CISA KEV: 2026-09-18
  • Red Hat kernel updates: RHEL 8 on 2026-09-22, RHEL 9 and 10 on 2026-09-23

== UPDATE ==

Fixed kernels are out for every major distro — install one and reboot.

  • Patch available: Yep.
  • Fixed in: upstream 5.10.245, 5.15.194, 6.1.154, 6.6.108, 6.12.49, 6.16.9 and 6.17. Distro packages: Debian 11 linux 5.10.247-1 (or linux-6.1 6.1.158-1~deb11u1), Debian 12 6.1.158-1, Debian 13 6.12.57-1; Ubuntu 20.04 linux 5.4.0-224.244, 22.04 5.15.0-164.174, 24.04 6.8.0-90.91; RHEL 8 kernel-4.18.0-553.166.1.el8_10, RHEL 9 kernel-5.14.0-687.50.1.el9_8, RHEL 10 kernel-6.12.0-211.58.1.el10_2.
  • How to apply: install your distro’s kernel update and reboot. On Debian/Ubuntu: sudo apt update && sudo apt upgrade; on RHEL, Alma, Rocky or Fedora: sudo dnf upgrade --refresh. Then sudo reboot and confirm with uname -r. Your distro’s security tracker (linked below) has the exact package for your release.
  • If you can’t patch yet: Red Hat says there’s no mitigation that meets its bar, so patching is the real answer. For containers, sandboxes and CI jobs that run untrusted code, the researchers behind Copy Fail (CVE-2026-31431, another AF_ALG bug) recommend blocking AF_ALG socket creation with seccomp regardless of patch state — that also takes away this bug’s way in.

References