I Hunted a Kernel Use-After-Free Across My Identity Stack. It Hits Before Auth.

A use-after-free in the Linux TCP stack lets attackers reach your SSH bastions, RADIUS servers, and Kubernetes API endpoints before any authentication runs. Here's how to check if your identity infrastructure is exposed and…

I Hunted a Kernel Use-After-Free Across My Identity Stack. It Hits Before Auth.

A SYN packet is the networking equivalent of knocking on a door. Before any password is checked, before TLS, before your identity provider has the faintest idea who you are, the Linux kernel has already picked up the phone and started scribbling notes about the caller. That scribbling is where CVE-2026-98432 lives. It was disclosed on October 25, 2026, and it’s a flaw an attacker can reach without logging in, without credentials, without so much as a username, which is precisely why Okta’s security team bothered to write about a Linux kernel bug at all.

Let me build this up from nothing, because the mechanism is genuinely elegant once you see it, and understanding it tells you exactly which of your boxes to worry about first.

What “use-after-free” means, with a coat check

Imagine a coat check at a theatre. You hand over your coat, you get a numbered ticket, the attendant hangs your coat on hook 47 and writes “47” on your ticket stub. The ticket is a pointer: a small piece of paper that doesn’t contain your coat, just the location of it.

Now imagine the attendant gives your coat back, but you keep the ticket. Hook 47 is now free. Someone else checks in a coat, and the attendant, reusing the empty hook, hangs their coat on 47. Your old ticket still says “47.” If you wander back and present it, you’ll walk out wearing a stranger’s coat. Worse: if the attacker knows you’ll do this, they can deliberately hang a coat they control on hook 47, timed so that your stale ticket hands them something they were never supposed to touch.

That is a use-after-free. A program frees a chunk of memory (gives the coat back, declares hook 47 available), but somewhere a pointer still refers to it (you kept the ticket). The memory gets reallocated for something else entirely. The stale pointer now reads or writes memory that belongs to a different structure. In the kernel, “a different structure” can mean function pointers, credentials, or data the attacker gets to shape. Reliable control over what lands on hook 47 is the difference between a crash and a remote code execution.

Where the stale ticket comes from in TCP

Here’s the specific sequence, and it hinges on a detail most people never think about: SYN retransmission.

When your machine receives a SYN, the first packet of the TCP three-way handshake, the kernel allocates a small bookkeeping structure to track this half-open connection. Think of it as the attendant starting a note card: “someone’s calling, haven’t finished the handshake yet, holding a slot for them.” TCP is built for unreliable networks, so if the handshake stalls, the sender is allowed to retransmit the SYN. The kernel is supposed to recognise the retransmit and reuse the existing note card.

What Okta’s write-up states plainly is the shape of the fault: a use-after-free reachable in the IPv4 TCP stack when a retransmitted SYN is processed, exploitable remotely and pre-authentication. The finer-grained story, that one path frees the half-open connection’s bookkeeping structure while the path handling the retransmit for the same connection still holds a reference to it, is the classic pattern these race conditions follow, and it’s my reading of how the retransmit path produces a stale pointer rather than a line-by-line account from the advisory. Treat that paragraph as the why, not the vendor’s exact words. Either way, the consequence is the same and it’s the part that matters: hook 47 gets freed and reused, the retransmit handler writes to it anyway, and the attacker triggers the whole thing from off-box by sending crafted SYNs and retransmits. No handshake completes. No authentication happens. The vulnerable code runs before any of your security software has a say.

The thing to sit with: every control you’ve built, MFA, conditional access, certificate auth, happens after the kernel has already processed the packet that triggers this bug.

Which kernels are actually vulnerable

Per Okta’s guidance and the CVE record, the flawed code sits in the IPv4 TCP SYN-handling path of the mainline kernel, affecting the long-lived 5.x line and the 6.x series up to the point-release where the fix landed. The honest, load-bearing caveat is this: that upstream range is nearly useless for deciding whether your box is vulnerable, because enterprise distros backport the fix without touching the mainline version string. A kernel that reads “6.1.something” on an upstream mental model can already carry the patch under a distro build number, and a kernel that looks current can be missing it. Confirm against your distro’s security tracker for CVE-2026-98432 and the exact package version, not the number uname -r prints. More on how to do that in a moment.

Where the distros landed

The disclosure on October 25 was coordinated, so patched kernels followed within days across the major distros. As of this writing:

  • Ubuntu shipped fixed linux-image packages through a Ubuntu Security Notice (USN) covering the supported LTS kernels and their HWE variants. Check the USN referencing CVE-2026-98432 for the exact build that matches your release and hardware-enablement stack.
  • Red Hat (RHEL, and downstream Rocky/Alma) published a Red Hat Security Advisory (RHSA) with corrected kernel packages for the maintained RHEL streams. EUS and extended-life channels are addressed on their own schedule, don’t assume the GA fix date applies to an EUS host.
  • Debian addressed it via a Debian Security Advisory (DSA) for stable, with the fix also tracked for oldstable through the LTS team.

I’m deliberately not pasting advisory numbers and build strings I’d be asking you to trust blindly, they drift by release and point version, and a stale number here is worse than none. Pull the authoritative identifier and package version for your exact release from the tracker, which is also the command set below.

Why an identity company is the one telling you

Okta isn’t shipping a fix here. This is a Linux kernel flaw, full stop, not an “Okta vulnerability,” and anyone framing it that way is reading the headline and not the article. Okta’s interest is the same as yours: identity infrastructure is a pile of Linux boxes that, by job description, sit on the network answering unsolicited connections.

Walk the list of things in a typical identity estate that accept inbound TCP from somewhere less trusted than themselves:

  • SSH bastions / jump hosts. Their entire purpose is to accept connections from the outside. Port 22 open to a wide range is the textbook exposure.
  • RADIUS and TACACS+ servers. RADIUS is classically UDP, but RADSEC (RADIUS over TLS) and TACACS+ ride TCP, and they’re reachable by every network device that authenticates against them.
  • LDAP / AD bridges and directory proxies. Anything fronting your directory on 389/636 is listening.
  • Kubernetes API servers and nodes hosting identity workloads. The API server’s TCP endpoint is the control plane. Nodes running your IdP connectors, SCIM provisioners, or token services are Linux hosts with network stacks like any other.
  • IAM proxy and gateway appliances. Reverse proxies terminating auth, agent-based access gateways, the lot.

None of these need a valid connection to be at risk. They need to be reachable. That’s the whole point of a pre-authentication kernel bug.

The ten-second check

Start with the kernel you’re actually running, not the one you think you installed, and not the newest one sitting on disk waiting for a reboot:

run.shbash, zsh
uname -r

Now the slightly more useful version. This prints your running kernel, flags whether a newer kernel is already installed but not yet booted (the classic “we patched months ago” trap), and lists what’s listening on TCP so you can see your actual exposure in one go:

run.shbash, zsh
# running kernel, pending kernel, and listening TCP sockets in one shot
echo "running: $(uname -r)"; \
ls -1t /boot/vmlinuz-* 2>/dev/null | head -1 | sed 's#.*/vmlinuz-#newest installed: #'; \
echo "--- listening TCP ---"; \
ss -tlnp 2>/dev/null | awk 'NR==1 || /LISTEN/'

If newest installed is ahead of running, you have a kernel you’ve already paid for but never booted into. That gap is where half of all “but we patched” incidents come from.

Because of the backporting problem I mentioned, don’t match uname -r against the upstream range by eye. Ask the package system directly:

run.shbash, zsh
# RHEL / Rocky / Alma / Fedora
rpm -q --changelog kernel | grep -i -m1 'CVE-2026-98432' && echo "fix present in installed kernel changelog"
yum updateinfo list cves | grep CVE-2026-98432
​
# Debian / Ubuntu
apt-get changelog linux-image-$(uname -r) 2>/dev/null | grep -i CVE-2026-98432
# or check the live status
command -v pro >/dev/null && pro fix CVE-2026-98432

One more trap: preview and extended-support kernels (Ubuntu’s older HWE stacks, RHEL EUS streams) often lag the general-availability package by a window, so a fleet can report “all patched” and still hide a straggler on an odd support channel. Enumerate by host, not by headline.

Patching means rebooting. There’s no clever way around that.

A kernel fix doesn’t take effect until you’re running the new kernel, and you don’t run a new kernel without a reboot. Live-patching tools (kpatch, Ubuntu’s Livepatch, KernelCare) can paper over some vulnerabilities without a reboot, but coverage for any specific CVE is never guaranteed, check whether this one is covered before you lean on it.

run.shbash, zsh
# Debian / Ubuntu
sudo apt update && sudo apt install --only-upgrade linux-image-generic && sudo reboot
​
# RHEL / Rocky / Alma
sudo dnf upgrade kernel && sudo reboot

Plan the maintenance window honestly. Your bastion rebooting means in-flight SSH sessions drop. Your RADIUS node going down means network auth fails over, test that your secondary actually carries the load before you reboot the primary. And after the reboot, confirm the identity services came back, not just that the box pinged:

run.shbash, zsh
uname -r   # confirm you're on the new one
systemctl is-active sshd freeradius slapd kubelet 2>/dev/null

If you genuinely can’t patch this week

Sometimes the maintenance window is three weeks out and the appliance vendor hasn’t shipped their blessed kernel yet. Compensating controls don’t fix the bug; they shrink who can reach it. Since this is a pre-auth network bug, reachability is the attack surface.

  • Cut the exposure at the firewall. Restrict inbound TCP on the vulnerable services to known source ranges. A bastion that only accepts SYNs from your VPN CIDR is dramatically harder to reach than one open to the internet.
  • Segment ruthlessly. Identity infrastructure should not be answering arbitrary TCP from your general workload VLANs. If a compromised print server can SYN-flood your LDAP box, that’s a design problem this CVE just made expensive.
  • Turn off what you don’t need. External SSH on a box that’s only ever administered over a private link? Close it. The safest listening socket is the one that isn’t listening.

Here’s the uncomfortable version of the whole thing: the components you’ve hardened most carefully, the ones running MFA, conditional access, the clever risk engine, are the same components whose job is to answer the internet’s phone calls. This bug rings before any of that logic runs. Patch the boxes that answer first, and patch the ones that answer strangers before the ones that only answer friends.