CVE-2026-31663
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2026-31663 is a use-after-free vulnerability in the Linux kernel's xfrm (IPsec) subsystem, classified as xfrm: hold dev ref until after transport_finish NF_HOOK. It was published on April 24, 2026, and affects Linux kernel versions from approximately 3.2.100 through 6.18.x (before 6.18.23) and 6.19.x (before 6.19.13), as well as 7.0 release candidates. The flaw arises when xfrm_input_resume() prematurely releases a device reference after asynchronous cryptographic operations complete, before the socket buffer (skb) finishes processing through the netfilter hook. It carries a CVSS v3.1 base score of 7.8 (High) (GitHub Advisory, Red Hat Bugzilla).

Technical details

The root cause is classified as CWE-826 (Premature Release of Resource During Expected Lifetime). After async crypto completes, xfrm_input_resume() calls dev_put() immediately upon re-entry, before the skb reaches transport_finish. The skb->dev pointer is subsequently used inside NF_HOOK and its okfn, creating a race condition with device teardown — a classic use-after-free scenario. The fix relocates the dev_put() call to after the NF_HOOK invocation in transport_finish, using a saved device pointer to handle cases where NF_HOOK may consume the skb (covering NF_DROP, NF_QUEUE, and NF_STOLEN paths). For non-transport exits and secondary async return points, the reference is released inline when async is set (GitHub Advisory, Red Hat Bugzilla).

Impact

Successful exploitation allows a local attacker with low privileges to trigger kernel crashes (denial of service) or potentially achieve kernel-level code execution through memory corruption in the xfrm/IPsec packet processing path. The vulnerability impacts confidentiality, integrity, and availability at the highest level (all rated High in CVSS), as kernel-level compromise could expose all data on the system, allow arbitrary modification of kernel memory, and cause system instability or crashes. Systems using IPsec with asynchronous cryptographic hardware acceleration are particularly at risk (GitHub Advisory, Feedly).

Exploitability

There is no known public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The vulnerability requires local access with low privileges and specific timing to race device teardown against IPsec packet processing, making opportunistic exploitation more difficult. The EPSS score is approximately 0.017% (3rd percentile), indicating a low near-term exploitation probability. CVE-2026-31663 is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (GitHub Advisory, Feedly).

Mitigation and workarounds

Patches are available in Linux kernel stable trees via commits 0f451b43c88bf2b9c038b414be580efee42e031b, 1c428b03840094410c5fb6a5db30640486bbbfcb, and 5002beda5cac69d522dc54da0d5d463ed9c963d2. Fixed versions include Linux 6.18.23+, 6.19.13+, and 7.0+. As an interim workaround for systems that cannot be updated immediately, administrators should consider disabling asynchronous cryptographic acceleration in IPsec configurations if operationally feasible, or restricting IPsec usage to trusted network segments. Distribution-specific backports should be monitored from vendors such as Red Hat, Ubuntu, and SUSE (Red Hat Bugzilla, GitHub Advisory).

Community reactions

The vulnerability was reported to Red Hat's security response team via OSIDB on April 24, 2026, and assigned high severity/priority in their Bugzilla tracker. The upstream kernel CVE announcement was made by Greg Kroah-Hartman via the linux-cve-announce mailing list. No significant broader media coverage or notable researcher commentary beyond standard vulnerability tracking has been observed (Red Hat Bugzilla).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Affected

sid

linux: 6.19.13-1

Fixed

trixie

linux: 6.12.94-1

Fixed

Ubuntu

Fixed

bionic (esm-infra)

linux

Affected

bionic (fips-updates)

linux-fips

Affected

bionic (fips)

linux-fips

Affected

devel

linux

Not Affected

focal

linux-azure-fde-5.15

Not Affected

focal (esm-infra)

linux

Affected

focal (fips-updates)

linux-fips

Affected

focal (fips)

linux-fips

Affected

RHEL / CentOS

Affected

RHEL 8

kernel.src

Affected

RHEL 9

kernel.src

Affected

RHEL 10

kernel.src

Affected

SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-80904MEDIUM5.9
  • Linux Kernel logoLinux Kernel
  • linux-hwe-5.15
NoYesSep 04, 2026
CVE-2026-80905MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • linux-ibm-5.15
NoYesSep 04, 2026
CVE-2026-80913MEDIUM4.4
  • Linux Kernel logoLinux Kernel
  • linux-aws-fips
NoYesSep 04, 2026
CVE-2026-80912MEDIUM4.4
  • Linux Kernel logoLinux Kernel
  • linux-riscv-6.17
NoYesSep 04, 2026
CVE-2026-80906NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-nvidia
NoYesSep 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management