CVE-2026-31663·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: xfrm: hold dev ref until after transport_finish NF_HOOK After async crypto completes, xfrm_input_resume() calls dev_put() immediately on re-entry before the skb reaches transport_finish. The skb->dev pointer is then used inside NF_HOOK and its okfn, which can race with device teardown. Remove the dev_put from the async resumption entry and instead drop the reference after the NF_HOOK call in transport_finish, using a saved device pointer since NF_HOOK may consume the skb. This covers NF_DROP, NF_QUEUE and NF_STOLEN paths that skip the okfn. For non-transport exits (decaps, gro, drop) and secondary async return points, release the reference inline when async is set.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.19.13
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.13% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-31663 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.13%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.19
Until: 6.19.13
Fixed in: 6.19.13
How to fix this CVE
Update your Linux kernel to version 6.19.13 or later to patch a critical race condition in the xfrm (IPsec) subsystem that can lead to use-after-free vulnerabilities. The vulnerability occurs when async crypto operations complete and device references are released prematurely before netfilter hooks finish processing, potentially allowing kernel memory corruption. Ensure all systems running kernel versions 6.19 through 6.19.12 are patched immediately.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version: uname -r (if output is 6.19.0 through 6.19.12, your system is vulnerable)
- Verify xfrm subsystem is loaded: grep -i xfrm /proc/modules (vulnerable systems will show xfrm_* modules)
- Search kernel logs for device teardown errors: sudo journalctl -b | grep -i 'xfrm\|use-after-free\|device.*released'
- After patching, confirm the fix: uname -r (should be 6.19.13 or higher) and verify no new xfrm-related crashes in dmesg: sudo dmesg | grep -i xfrm
FAQ
What is CVE-2026-31663?
CVE-2026-31663 is a use-after-free vulnerability in the Linux kernel's IPsec/xfrm implementation where device references are freed prematurely during asynchronous cryptographic operations, causing a race condition that can crash the kernel or corrupt memory when netfilter hooks attempt to access the freed device pointer.
Is CVE-2026-31663 being actively exploited?
No, CVE-2026-31663 is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available, though the high CVSS score (7.8) indicates significant risk to affected systems.
What versions of Kernel are affected by CVE-2026-31663?
Linux kernel versions 6.19 through 6.19.12 are vulnerable. The issue was fixed in version 6.19.13 and backported to stable kernel branches.
How do I check if my server is vulnerable to CVE-2026-31663?
Run 'uname -r' and compare your kernel version against 6.19.0-6.19.12; if your version falls within this range, your system is vulnerable and requires immediate patching.
Does Defensia detect CVE-2026-31663?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Linux kernel is installed on a monitored server, CVE-2026-31663 will appear in your dashboard with remediation steps and deployment guidance.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0f451b43c88bf2b9c038b414be580efee42e031b
- https://git.kernel.org/stable/c/1c428b03840094410c5fb6a5db30640486bbbfcb
- https://git.kernel.org/stable/c/4236c30b437b80f673b9e08c8fae38b8d471ac9e
- https://git.kernel.org/stable/c/4d06caedea587c59cc2cc893ceecc57c75c64312
- https://git.kernel.org/stable/c/5002beda5cac69d522dc54da0d5d463ed9c963d2
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31663. Free for 1 server.
Get started free