high CVSS 7.8 EPSS 0.13%

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-devel

Defensia detects this vulnerability

How to check if you are affected

  1. Check your kernel version: uname -r (if output is 6.19.0 through 6.19.12, your system is vulnerable)
  2. Verify xfrm subsystem is loaded: grep -i xfrm /proc/modules (vulnerable systems will show xfrm_* modules)
  3. Search kernel logs for device teardown errors: sudo journalctl -b | grep -i 'xfrm\|use-after-free\|device.*released'
  4. 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

CVE-2026-63795CVSS 10In the Linux kernel, the following vulnerability has been resolved: 9p: avoid putting oldfid in p9_client_walk() error path When p9_client_walk() is called with clone set to false, fid aliases oldfid. If the walk subsequently fails after the request has been sent, the error path jumps to clunk_fid, which currently calls p9_fid_put(fid) unconditionally. This drops a reference to oldfid even though ownership of oldfid remains with the caller. If this is the last reference, oldfid can be clunked and destroyed while the caller still expects it to be valid. A later use or put of oldfid can then trigger a use-after-free or refcount underflow. Fix this by only putting fid in the clunk_fid error path when it does not alias oldfid, matching the existing guard in the error path below. This can be triggered when a multi-component walk is split into multiple p9_client_walk() calls and a later non-cloning walk fails. A reproducer and refcount warning logs are available on request.
CVE-2026-53049CVSS 9.8In the Linux kernel, the following vulnerability has been resolved: gfs2: add some missing log locking Function gfs2_logd() calls the log flushing functions gfs2_ail1_start(), gfs2_ail1_wait(), and gfs2_ail1_empty() without holding sdp->sd_log_flush_lock, but these functions require exclusion against concurrent transactions. To fix that, add a non-locking __gfs2_log_flush() function. Then, in gfs2_logd(), take sdp->sd_log_flush_lock before calling the above mentioned log flushing functions and __gfs2_log_flush().
CVE-2026-52955CVSS 9.8In the Linux kernel, the following vulnerability has been resolved: libceph: Fix potential out-of-bounds access in crush_decode() A message of type CEPH_MSG_OSD_MAP containing a crush map with at least one bucket has two fields holding the bucket algorithm. If the values in these two fields differ, an out-of-bounds access can occur. This is the case because the first algorithm field (alg) is used to allocate the correct amount of memory for a bucket of this type, while the second algorithm field inside the bucket (b->alg) is used in the subsequent processing. This patch fixes the issue by adding a check that compares alg and b->alg and aborts the processing in case they differ. Furthermore, b->alg is set to 0 in this case, because the destruction of the crush map also uses this field to determine the bucket type, which can again result in an out-of-bounds access when trying to free the memory pointed to by the fields of the bucket. To correctly free the memory allocated for the bucket in such a case, the corresponding call to kfree is moved from the algorithm-specific crush_destroy_bucket functions to the generic crush_destroy_bucket().
CVE-2026-53088CVSS 9.8In the Linux kernel, the following vulnerability has been resolved: net: bcmgenet: fix off-by-one in bcmgenet_put_txcb The write_ptr points to the next open tx_cb. We want to return the tx_cb that gets rewinded, so we must rewind the pointer first then return the tx_cb that it points to. That way the txcb can be correctly cleaned up.
CVE-2026-63800CVSS 9.8In the Linux kernel, the following vulnerability has been resolved: pNFS: Fix use-after-free in pnfs_update_layout() When hitting the NFS_LAYOUT_RETURN branch in pnfs_update_layout(), the code calls pnfs_prepare_to_retry_layoutget(lo). If it succeeds, pnfs_put_layout_hdr(lo) is called before trace_pnfs_update_layout(), which still references 'lo'. This results in a use-after-free when the tracepoint accesses lo's fields. Fix this by moving the tracepoint call before pnfs_put_layout_hdr(lo).

References

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