# CVE-2026-98364: xfrm: hold net\_device reference under RCU in bundle creation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 3, 2026-11-28)
- **Published:** 2026-10-06T08:46:50.051Z
- **Modified:** 2026-10-19T10:18:39.290Z

## Who should check

- Anyone running Linux \>= 25ee3286dcbc830a833354bb1d15567956844813, \< 8d85d6bc9c46dc41cb2be0eac53f8ab068c3a807; \>= 25ee3286dcbc830a833354bb1d15567956844813, \< 9fa903b24b1f46b4ff5443bcd4aca23e5c57f9c1
- Anyone running Linux 2.6.25

## Description

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.

## Affected and fixed versions

- Linux: \>= 25ee3286dcbc830a833354bb1d15567956844813, \< 8d85d6bc9c46dc41cb2be0eac53f8ab068c3a807; \>= 25ee3286dcbc830a833354bb1d15567956844813, \< 9fa903b24b1f46b4ff5443bcd4aca23e5c57f9c1 (cvelist)
- Linux: 2.6.25 (cvelist)

## Mitigation

- Upgrade Linux to 9fa903b24b1f46b4ff5443bcd4aca23e5c57f9c1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98364. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98364.md
Affected: Linux >= 25ee3286dcbc830a833354bb1d15567956844813, < 8d85d6bc9c46dc41cb2be0eac53f8ab068c3a807; >= 25ee3286dcbc830a833354bb1d15567956844813, < 9fa903b24b1f46b4ff5443bcd4aca23e5c57f9c1; Linux 2.6.25
Fixed in: Linux 8d85d6bc9c46dc41cb2be0eac53f8ab068c3a807, Linux 9fa903b24b1f46b4ff5443bcd4aca23e5c57f9c1

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98364 being exploited?

There is no confirmed exploitation: CVE-2026-98364 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-98364?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-98364?

Linux \>= 25ee3286dcbc830a833354bb1d15567956844813, \< 8d85d6bc9c46dc41cb2be0eac53f8ab068c3a807; \>= 25ee3286dcbc830a833354bb1d15567956844813, \< 9fa903b24b1f46b4ff5443bcd4aca23e5c57f9c1; Linux 2.6.25.

### Is there a fix for CVE-2026-98364?

Yes. Fixed in Linux 8d85d6bc9c46dc41cb2be0eac53f8ab068c3a807, Linux 9fa903b24b1f46b4ff5443bcd4aca23e5c57f9c1. Upgrade Linux to 9fa903b24b1f46b4ff5443bcd4aca23e5c57f9c1 or later.

### How do I check if I'm affected by CVE-2026-98364?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/8d85d6bc9c46dc41cb2be0eac53f8ab068c3a807>
- other: <https://git.kernel.org/stable/c/9fa903b24b1f46b4ff5443bcd4aca23e5c57f9c1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98364>

HTML: <https://flawdb.com/CVE-2026-98364> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98364>
