The Linux kernel exposes its crypto implementations to user space through AF_ALG sockets, and until September 2025 two threads could write to the same AF_ALG socket at once. The data interleaves unpredictably, which is merely a bug, and the socket’s internal state can be left inconsistent, which is a race a local attacker can win. CISA listed it as exploited on 18 September 2026, a year after the fix, so the kernels still running it are the concern rather than the ones being built. If any Linux host that untrusted local users can reach is running a kernel built before the fix reached your distribution, reboot it into the current kernel. The package is almost certainly already installed; this bug is about whether the machine has been rebooted since.
CVE-2025-39964 at a glance.
| Component | Linux kernel, crypto/af_alg.c and include/crypto/if_alg.h — the AF_ALG userspace crypto socket family (CONFIG_CRYPTO_USER_API) |
| Affected versions | Mainline 2.6.38 (where AF_ALG arrived) up to 6.17-rc; stable branches before 5.10.245, 5.15.194, 6.1.154, 6.6.108, 6.12.49 and 6.16.9 |
| Fixed in | Mainline 6.17; stable 5.10.245, 5.15.194, 6.1.154, 6.6.108, 6.12.49, 6.16.9 (September–October 2025). Distribution kernels below |
| Severity | CVSS 3.1 7.8 High (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, kernel CNA; SUSE agrees). NVD’s own score is 5.5 Medium, availability only; Red Hat gives 7.3 and rates it Moderate. CWE-362 race condition |
| Exploited in the wild | Yes. Added to CISA’s Known Exploited Vulnerabilities catalogue on 18 September 2026; federal remediation due 21 September 2026. EPSS 0.02 (76th percentile) on 10 November 2026 |
| Who is exposed | Any Linux machine where a local, unprivileged process can open a socket — multi-user hosts, CI runners, shared containers — that is still running a pre-fix kernel. The code is built into or shipped as modules with every general-purpose distribution kernel |
| Published | CVE record 13 October 2025; this page built 30 November 2026, last updated 30 November 2026 |
What it is
AF_ALG is the socket family that lets a program ask the kernel to hash, encrypt or generate random bytes with the kernel’s own crypto drivers: open a socket, bind() it to an algorithm name, accept() an operation socket, write plaintext in, read the result out. It exists so that user space can reach hardware accelerators the kernel drives, and any user can use it; no capability is required. The fix commit’s own description is the clearest account of the flaw: “issuing two writes to the same af_alg socket is bogus as the data will be interleaved in an unpredictable fashion. Furthermore, concurrent writes may create inconsistencies in the internal socket state.” The fix adds a write field to the per-socket context in include/crypto/if_alg.h and has af_alg_sendmsg() in crypto/af_alg.c take exclusive ownership of it, so a second writer is refused rather than racing the first.
An inconsistency in a kernel object that a user controls the timing of is the raw material of a local privilege escalation, and CISA’s SSVC entry for this CVE records the technical impact as total. CISA has not said who exploited it or how; the catalogue entry’s name, “Linux Kernel Race Condition Vulnerability”, is all the public record carries. Red Hat classes it as Moderate and notes that no mitigation meets its criteria, which is to say there is no setting that turns AF_ALG off on a running kernel short of not loading it.
The dates matter for what to do. The fix went into mainline in September 2025 and into every long-term stable branch within weeks; Debian and Ubuntu shipped it in autumn 2025. Red Hat’s errata for RHEL 7 through 10 are all dated 22–25 September 2026, the week the CVE joined the KEV list. A RHEL or rebuild host that was current in August 2026 was still vulnerable.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 30 November 2026; the link in the row is the tracker page, which will be newer than this one. A fixed package only counts once the machine is running it.
| Distribution | Status | Fixed package |
|---|---|---|
| Debian bookworm | Fixed | linux 6.1.158-1 (DSA-6053-1); current 6.1.192-3 |
| Debian trixie | Fixed | linux 6.12.57-1; current 6.12.118-1 |
| Debian bullseye (LTS) | Fixed | linux 5.10.247-1 (DLA-4404-1); linux-6.1 6.1.158-1~deb11u1 (DLA-4379-1) |
| Ubuntu 24.04 noble | Fixed (priority High) | linux 6.8.0-90.91; cloud and HWE flavours have their own versions on the tracker page |
| Ubuntu 22.04 jammy | Fixed | linux 5.15.0-164.174 |
| Ubuntu 20.04 focal (Pro) | Fixed | linux 5.4.0-224.244 |
| Ubuntu 25.04 plucky | Fixed | linux 6.14.0-37.37 |
| Ubuntu 25.10, 26.04, 26.10 | Not affected | released with the fix |
| RHEL 10, Rocky, Alma | Fixed (Moderate) | RHSA-2026:70498 (RHEL 10.2), RHSA-2026:71326 (10.0 EUS), 23–24 September 2026 |
| RHEL 9 | Fixed | RHSA-2026:70459, 23 September 2026; EUS/E4S streams RHSA-2026:71327, 71569, 71601 |
| RHEL 8 | Fixed | RHSA-2026:70402 (kernel) and 70403 (realtime), 22 September 2026; AUS/EUS/TUS streams 24 September |
| RHEL 7 ELS | Fixed | RHSA-2026:71687 and 71657 (realtime), 24 September 2026 |
| SUSE / openSUSE | Resolved (important) | per-product kernels on the SUSE page, e.g. SLES 15 SP7 kernel-default 6.4.0-150700.53.34.1, SLES 16.0 6.12.0-160000.37.1 |
| Fedora, Arch, Alpine | Not consulted | rolling kernels passed 6.16.9 / 6.17 in September–October 2025; Alpine tracker unreachable at build time |
How to check
Three questions: which kernel is running (not which is installed), is the AF_ALG code present, and can an unprivileged local user get at it. The first question settles most hosts; the other two tell you how much the answer matters.
# 1. running kernel versus the newest installed one: if they differ, the fix is on disk and not in memory
uname -r
dpkg -l 'linux-image-*' 2>/dev/null | awk '/^ii/ {print $2, $3}' | sort -V | tail -3 # Debian, Ubuntu
rpm -q kernel kernel-core 2>/dev/null | sort -V | tail -3 # RHEL family, Fedora, SUSE
# upstream reference points: 5.10.245, 5.15.194, 6.1.154, 6.6.108, 6.12.49, 6.16.9, 6.17
# 2. is AF_ALG built: =y is always present, =m means it loads on first use
grep -E '^CONFIG_CRYPTO_USER_API' /boot/config-"$(uname -r)" 2>/dev/null || zcat /proc/config.gz | grep -E '^CONFIG_CRYPTO_USER_API'
lsmod | grep -E '^(af_alg|algif_)'
# 3. who can reach it: any login shell or service account that is not root counts
getent passwd | awk -F: '$7 !~ /nologin|false/ && $3 >= 1000 {print $1}' | headIf uname -r already shows a version at or above your distribution’s fixed package, the host is done. If it is older than the newest installed kernel, the fix is waiting for a reboot; that is the common case for this CVE and the reason it is still on anyone’s list a year after the patch. Step 2 will say =y or =m on every general-purpose kernel — the option is not something distributions leave out — and step 3 is about whether anyone other than you can run code on the machine. A single-purpose server with no local users is exposed only to the extent that something else on it is.
Because this one was exploited before most people had heard of it, also look back. A privilege escalation does not announce itself, but the kernel does log one thing this race is likely to produce when it does not go the attacker’s way: a warning or oops in the crypto code.
journalctl -k --since '2025-09-01' | grep -iE 'af_alg|algif|crypto.*(BUG|WARNING|oops)' | head
zgrep -hiE 'af_alg|algif' /var/log/kern.log* /var/log/messages* 2>/dev/null | head
last -F | head -40 # unexpected logins around any such messageA kernel warning naming af_alg or an algif_ module on a host that had unprivileged users at the time is worth treating as an attempt, and an unexplained root login or a new setuid binary around the same time as a success; Restoring a Linux Server is the page for the second case. No message at all proves nothing either way.
How to fix it
Install the current kernel and reboot. There is no hot-fix path on Debian or Ubuntu for this one without a live-patch subscription; RHEL has kpatch patches for its September errata, but a reboot into the fixed kernel is the simpler and complete answer.
# Debian / Ubuntu
apt update && apt upgrade
reboot
uname -r # must now show the fixed version from the table
# RHEL family
dnf update kernel
reboot
# SUSE
zypper patch
rebootIf a reboot cannot happen today, the honest position is that there is no mitigation Red Hat was willing to call one. Where AF_ALG is built as modules (=m in step 2) and nothing on the host uses it, a modprobe blacklist stops the modules loading on the next boot — but it does not unload them from a running kernel if they are already in, and it will break the programs that do use the interface, among them iwd for Wi-Fi and some OpenSSL engines on hardware with crypto accelerators. Check lsmod first; if the modules are not loaded, nothing on the host has asked for them yet.
# only where step 2 said =m and lsmod showed nothing loaded
printf 'install algif_hash /bin/false\ninstall algif_skcipher /bin/false\ninstall algif_aead /bin/false\ninstall algif_rng /bin/false\n' > /etc/modprobe.d/no-af-alg.conf
# reverse it by deleting the file once the host has been rebooted into a fixed kernelSources
- CVE-2025-39964 at CVE.org — the record, the kernel CNA’s CVSS vector, the affected and fixed ranges and the files touched (published 13 October 2025)
- NVD entry — analysis status, NVD’s 5.5 score alongside the CNA’s 7.8, and the KEV cross-reference
- CISA Known Exploited Vulnerabilities — added 18 September 2026, action due 21 September 2026
- Fix commit 1b34cbbf4f01, “crypto: af_alg – Disallow concurrent writes in af_alg_sendmsg” (mainline 6.17), with the stable backports listed in the CVE record
- Distribution trackers: Debian · Ubuntu · Red Hat · SUSE
- EPSS score for this CVE, 10 November 2026
Related reading
- The Half of Patching That Happens After the Patch is Installed — why an installed kernel package is not a fixed kernel until the reboot, which is the whole story of this CVE
- CVE-2026-46300: Linux kernel loses the shared-page marker when merging socket buffers — the other kernel local privilege escalation on the KEV list this autumn
- The Privilege-Escalation Decade — Dirty COW to Looney Tunables, and what a local root bug looks like once it is weaponised
- The Life of a System Call — what a
write()on a socket actually asks the kernel to do, and where a race between two of them lives - What the Kernel Actually Does — built-in versus module, and what
/boot/configis telling you - journalctl — the command reference, including
-kfor kernel messages
This advisory page was assembled from the primary sources listed above on 30 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

