# CVE-2026-98122: vxlan: mdb: Fix use-after-free in vxlan\_mdb\_remote\_src\_del()

> 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.13% (percentile 1, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-09-25T10:36:05.369Z
- **Modified:** 2026-10-22T17:19:22.093Z

## Who should check

- Anyone running Linux \>= a3a48de5eade770e911d35291217bdd69ce04ef1, \< 069d5527bb0f229e528fa88c6b72f15060c373f2; \>= a3a48de5eade770e911d35291217bdd69ce04ef1, \< e12c903fd13c6261b98ca18d8f70ac26e739e2f8; \>= a3a48de5eade770e911d35291217bdd69ce04ef1, \< 74e2a56c82209b0335b53e25f19f9b0590e2483d; \>= a3a48de5eade770e911d35291217bdd69ce04ef1, \< 71203a41d6fa2fa0ea2f3a7541987958bd3694fd; \>= a3a48de5eade770e911d35291217bdd69ce04ef1, \< 4aa61c88b4e292e10abdfd791334b8272108d68a
- Anyone running Linux 6.4

## Description

In the Linux kernel, the following vulnerability has been resolved:

vxlan: mdb: Fix use-after-free in vxlan\_mdb\_remote\_src\_del()

vxlan\_mdb\_is\_valid\_source(), which validates MDBE\_ATTR\_SOURCE and every
MDBE\_ATTR\_SRC\_LIST member, accepts the all-zeros address.

A source list is only accepted on a (\*, G) entry, whose source is the
all-zeros address, and for each member of the list an (S, G) entry is
derived from it by substituting the source. Entries are keyed by a plain
memcmp() of struct vxlan\_mdb\_entry\_key, so if MDBE\_ATTR\_SOURCE is present
and holds the all-zeros address and the source list holds it as well, the
derived (S, G) key is byte-identical to the (\*, G) key and resolves to the
same entry. Omitting MDBE\_ATTR\_SOURCE is not equivalent, as the key is
then left with a zero address family.

vxlan\_mdb\_remote\_src\_del() removes the forwarding entry of a source before
freeing the source entry:

	vxlan\_mdb\_remote\_src\_fwd\_del(vxlan, group, remote, &ent-\>addr);
	vxlan\_mdb\_remote\_src\_entry\_del(ent);

With the keys aliased, the first call deletes the remote of the entry that
owns 'ent' instead of a separate (S, G) entry, and frees 'ent'. The second
call then runs on the freed entry, and its hlist\_del() reads -\>pprev and
-\>next out of it and writes through them.

Adding the (\*, G) entry with NLM\_F\_REPLACE and no source list marks the
all-zeros source for deletion and reaches this from the sweep at the end
of vxlan\_mdb\_remote\_srcs\_replace().

  BUG: KASAN: slab-use-after-free in \_\_vxlan\_mdb\_add+0x1cd/0xd70
  Read of size 8 at addr ffff888102852500 by task poc/84
   \_\_vxlan\_mdb\_add+0x1cd/0xd70
   vxlan\_mdb\_add+0xc0/0x140
   rtnl\_mdb\_add+0x157/0x2a0
   rtnetlink\_rcv\_msg+0x207/0x5a0
  Allocated by task 84:
   \_\_kmalloc\_cache\_noprof+0x153/0x360
   vxlan\_mdb\_remote\_srcs\_add+0x2eb/0x440
   \_\_vxlan\_mdb\_add+0x803/0xd70
  Freed by task 84:
   kfree+0x14c/0x3b0
   vxlan\_mdb\_remote\_del+0x129/0x1a0
   \_\_vxlan\_mdb\_del+0x4f/0xe0
   vxlan\_mdb\_remote\_src\_fwd\_del.isra.0+0x162/0x1b0
   \_\_vxlan\_mdb\_add+0x1c5/0xd70

The MDB operations are netns-scoped, so an unprivileged user can perform
them in a new user and network namespace.

Reject the all-zeros address in vxlan\_mdb\_is\_valid\_source(), which covers
both call sites. A (\*, G) entry is expressed by omitting the source, so
nothing legitimate is refused.

Discovered by XBOW, triaged by Baul Lee \<baul.lee@xbow.com\>

## Affected and fixed versions

- Linux: \>= a3a48de5eade770e911d35291217bdd69ce04ef1, \< 069d5527bb0f229e528fa88c6b72f15060c373f2; \>= a3a48de5eade770e911d35291217bdd69ce04ef1, \< e12c903fd13c6261b98ca18d8f70ac26e739e2f8; \>= a3a48de5eade770e911d35291217bdd69ce04ef1, \< 74e2a56c82209b0335b53e25f19f9b0590e2483d; \>= a3a48de5eade770e911d35291217bdd69ce04ef1, \< 71203a41d6fa2fa0ea2f3a7541987958bd3694fd; \>= a3a48de5eade770e911d35291217bdd69ce04ef1, \< 4aa61c88b4e292e10abdfd791334b8272108d68a (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- Upgrade Linux to 4aa61c88b4e292e10abdfd791334b8272108d68a 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-98122. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98122.md
Affected: Linux >= a3a48de5eade770e911d35291217bdd69ce04ef1, < 069d5527bb0f229e528fa88c6b72f15060c373f2; >= a3a48de5eade770e911d35291217bdd69ce04ef1, < e12c903fd13c6261b98ca18d8f70ac26e739e2f8; >= a3a48de5eade770e911d35291217bdd69ce04ef1, < 74e2a56c82209b0335b53e25f19f9b0590e2483d; >= a3a48de5eade770e911d352…
Fixed in: Linux 069d5527bb0f229e528fa88c6b72f15060c373f2, Linux 74e2a56c82209b0335b53e25f19f9b0590e2483d, Linux 71203a41d6fa2fa0ea2f3a7541987958bd3694fd, Linux 4aa61c88b4e292e10abdfd791334b8272108d68a

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-98122 being exploited?

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

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

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

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

Linux \>= a3a48de5eade770e911d35291217bdd69ce04ef1, \< 069d5527bb0f229e528fa88c6b72f15060c373f2; \>= a3a48de5eade770e911d35291217bdd69ce04ef1, \< e12c903fd13c6261b98ca18d8f70ac26e739e2f8; \>= a3a48de5eade770e911d35291217bdd69ce04ef1, \< 74e2a56c82209b0335b53e25f19f9b0590e2483d; \>= a3a48de5eade770e911d35291217bdd69ce04ef1, \< 71203a41d6fa2fa0ea2f3a7541987958bd3694fd; \>= a3a48de5eade770e911d35291217bdd69ce04ef1, \< 4aa61c88b4e292e10abdfd791334b8272108d68a; Linux 6.4.

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

Yes. Fixed in Linux 069d5527bb0f229e528fa88c6b72f15060c373f2, Linux 74e2a56c82209b0335b53e25f19f9b0590e2483d, Linux 71203a41d6fa2fa0ea2f3a7541987958bd3694fd, Linux 4aa61c88b4e292e10abdfd791334b8272108d68a. Upgrade Linux to 4aa61c88b4e292e10abdfd791334b8272108d68a or later.

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

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

- patch: <https://git.kernel.org/stable/c/069d5527bb0f229e528fa88c6b72f15060c373f2>
- patch: <https://git.kernel.org/stable/c/e12c903fd13c6261b98ca18d8f70ac26e739e2f8>
- patch: <https://git.kernel.org/stable/c/74e2a56c82209b0335b53e25f19f9b0590e2483d>
- patch: <https://git.kernel.org/stable/c/71203a41d6fa2fa0ea2f3a7541987958bd3694fd>
- patch: <https://git.kernel.org/stable/c/4aa61c88b4e292e10abdfd791334b8272108d68a>

## 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-98122>

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