CVE-2026-98364·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: xfrm: hold net_device reference under RCU in bundle creation xfrm_bundle_create() and xfrm_create_dummy_bundle() read dst->dev into a local pointer without taking a device reference, then pass it to xfrm_fill_dst(). A concurrent RTM_DELLINK replaces dst->dev via dst_dev_put() and frees the old net_device, causing a use-after-free when xfrm6_fill_dst() later dereferences the stale dev pointer. BUG: KASAN: slab-use-after-free in xfrm6_fill_dst+0x82c/0x860 (net/ipv6/xfrm6_policy.c:86 netdev_hold()) Read of size 8 at addr ffff8880142fe588 by task exploit/153 Call Trace: xfrm6_fill_dst+0x82c/0x860 xfrm_resolve_and_create_bundle+0x21d4/0x2bd0 xfrm_lookup_with_ifid+0x485/0x1640 ip6_dst_lookup_flow+0x19b/0x1e0 udpv6_sendmsg+0x1443/0x2dd0 Fix this by reading dst->dev via dst_dev_rcu() and keeping the RCU read-side critical section active until xfrm_fill_dst() has taken the required device references.
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.2.8, 7.3
- Published
How to fix this CVE
Update your Linux kernel to version 7.2.8 or later if running a stable branch, or move to mainline 7.3 or newer. This patch resolves a use-after-free condition in IPsec bundle creation that could crash the system or potentially allow privilege escalation. Contact your Linux distribution for availability of the patched kernel in your release channel.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with 'uname -r' and compare against the fixed versions (7.2.8 or 7.3+)
- Step 2: Verify IPsec/xfrm is in use on your system by checking 'ip xfrm policy list' and 'ip xfrm state list'
- Step 3: Search kernel logs for crash indicators related to xfrm6_fill_dst with 'dmesg | grep -i xfrm' or 'journalctl -k | grep -i xfrm'
- Step 4: After patching, reboot and verify the new kernel is loaded with 'uname -r', then confirm no xfrm-related KASAN errors appear in 'dmesg'
FAQ
What is CVE-2026-98364?
This vulnerability is a use-after-free condition in the Linux kernel's IPsec (xfrm) subsystem where concurrent network device removal can cause a freed device pointer to be dereferenced during bundle creation, potentially leading to kernel panic or privilege escalation.
Is CVE-2026-98364 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are currently available, though the technical complexity is moderate.
What versions of Kernel are affected by CVE-2026-98364?
Kernel versions prior to 7.2.8 in stable branches and prior to 7.3 in mainline are affected. Distributions shipping earlier kernel versions are vulnerable.
How do I check if my server is vulnerable to CVE-2026-98364?
Run 'uname -r' to get your kernel version. If it reports a version older than 7.2.8 or 7.3, your system requires patching. Additionally, verify IPsec usage with 'ip xfrm policy list' to confirm exposure.
Does Defensia detect CVE-2026-98364?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2026-98364 will appear in your dashboard with remediation steps.
Related Kernel CVEs
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-98364. Free for 1 server.
Get started free