CVE-2026-98122
📛 CVE Title
vxlan: mdb: Fix use-after-free in vxlan_mdb_remote_src_del()
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>
Overview
- State
- PUBLISHED
- Assigner (CNA)
- Linux
- CVSS severity
- HIGH
- CVSS score
- 7.8 / 10
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Effective score
- 7.8 / 10 HIGH source: CNA overview
- CWE(s)
- —
- Reserved
- 2026-09-25
- Published
- 2026-09-25 10:36 UTC
- Last updated
- 2026-09-25 14:42 UTC
- Source
- https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/98xxx/CVE-2026-98122.json
- Linked Threat
- CVE-2026-98122 — vxlan: mdb: Fix use-after-free in vxlan_mdb_remote_src_del()
NVD triage scoring NVD CVE 2.0
Layer NVD adds on top of the CNA's CVE record — published / last-modified timestamps, exploitability / impact subscores, and the FIRST.org EPSS probability that this CVE will be exploited in the wild in the next 30 days.
- NVD published
- 2026-09-25 11:17:43 UTC
- NVD last modified
- 2026-09-25 15:18:06 UTC
- NVD CVSS v3.1
- 7.8 / 10 HIGH source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- NVD CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Exploitability subscore
- 1.8 / 10
- Impact subscore
- 5.9 / 10
NVD / KEV / EPSS data refreshed 2026-09-26 04:22 UTC. Re-run the 🛰 Backfill from NVD button above to refresh.
Affected products (2)
| Vendor | Product | Versions | Platforms |
|---|---|---|---|
| Linux | Linux |
a3a48de5eade770e911d35291217bdd69ce04ef1 (affected),
a3a48de5eade770e911d35291217bdd69ce04ef1 (affected),
a3a48de5eade770e911d35291217bdd69ce04ef1 (affected),
a3a48de5eade770e911d35291217bdd69ce04ef1 (affected)
|
— |
| Linux | Linux |
6.4 (affected),
0 (unaffected),
6.12.111 (unaffected),
6.18.53 (unaffected),
7.2.7 (unaffected),
7.3-rc2 (unaffected)
|
— |
Vendor references (4)
References embedded in the original CVE record by the assigning CNA.
Web references (0)
DuckDuckGo results ranked by threat-intel / vendor advisory domains. Generated by the 🔎 Find references (web) button above — same flow as the Remediations search.
No web references attached yet.
NVD-tagged references (4)
Reference list NVD curates from the CNA record, vendor advisories, and third-party reports. The tag chips below are NVD's analyst-assigned categories.
- https://git.kernel.org/stable/c/4aa61c88b4e292e10abdfd791334b8272108d68a 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- https://git.kernel.org/stable/c/71203a41d6fa2fa0ea2f3a7541987958bd3694fd 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- https://git.kernel.org/stable/c/74e2a56c82209b0335b53e25f19f9b0590e2483d 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- https://git.kernel.org/stable/c/e12c903fd13c6261b98ca18d8f70ac26e739e2f8 416baaa9-dc9f-4396-8d5f-8c081fb06d67
AI Forensic Analysis
Only Available for Registered Users. Sign in to view.
Raw JSON
The full cvelistV5 record. Download as CVE-2026-98122.json.
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/net/vxlan/vxlan_mdb.c",
"tools/testing/selftests/net/test_vxlan_mdb.sh"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "e12c903fd13c6261b98ca18d8f70ac26e739e2f8",
"status": "affected",
"version": "a3a48de5eade770e911d35291217bdd69ce04ef1",
"versionType": "git"
},
{
"lessThan": "74e2a56c82209b0335b53e25f19f9b0590e2483d",
"status": "affected",
"version": "a3a48de5eade770e911d35291217bdd69ce04ef1",
"versionType": "git"
},
{
"lessThan": "71203a41d6fa2fa0ea2f3a7541987958bd3694fd",
"status": "affected",
"version": "a3a48de5eade770e911d35291217bdd69ce04ef1",
"versionType": "git"
},
{
"lessThan": "4aa61c88b4e292e10abdfd791334b8272108d68a",
"status": "affected",
"version": "a3a48de5eade770e911d35291217bdd69ce04ef1",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/net/vxlan/vxlan_mdb.c",
"tools/testing/selftests/net/test_vxlan_mdb.sh"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "6.4"
},
{
"lessThan": "6.4",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.111",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.53",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.2.*",
"status": "unaffected",
"version": "7.2.7",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.3-rc2",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.12.111",
"versionStartIncluding": "6.4",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.18.53",
"versionStartIncluding": "6.4",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.2.7",
"versionStartIncluding": "6.4",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.3-rc2",
"versionStartIncluding": "6.4",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nvxlan: mdb: Fix use-after-free in vxlan_mdb_remote_src_del()\n\nvxlan_mdb_is_valid_source(), which validates MDBE_ATTR_SOURCE and every\nMDBE_ATTR_SRC_LIST member, accepts the all-zeros address.\n\nA source list is only accepted on a (*, G) entry, whose source is the\nall-zeros address, and for each member of the list an (S, G) entry is\nderived from it by substituting the source. Entries are keyed by a plain\nmemcmp() of struct vxlan_mdb_entry_key, so if MDBE_ATTR_SOURCE is present\nand holds the all-zeros address and the source list holds it as well, the\nderived (S, G) key is byte-identical to the (*, G) key and resolves to the\nsame entry. Omitting MDBE_ATTR_SOURCE is not equivalent, as the key is\nthen left with a zero address family.\n\nvxlan_mdb_remote_src_del() removes the forwarding entry of a source before\nfreeing the source entry:\n\n\tvxlan_mdb_remote_src_fwd_del(vxlan, group, remote, &ent->addr);\n\tvxlan_mdb_remote_src_entry_del(ent);\n\nWith the keys aliased, the first call deletes the remote of the entry that\nowns 'ent' instead of a separate (S, G) entry, and frees 'ent'. The second\ncall then runs on the freed entry, and its hlist_del() reads ->pprev and\n->next out of it and writes through them.\n\nAdding the (*, G) entry with NLM_F_REPLACE and no source list marks the\nall-zeros source for deletion and reaches this from the sweep at the end\nof vxlan_mdb_remote_srcs_replace().\n\n BUG: KASAN: slab-use-after-free in __vxlan_mdb_add+0x1cd/0xd70\n Read of size 8 at addr ffff888102852500 by task poc/84\n __vxlan_mdb_add+0x1cd/0xd70\n vxlan_mdb_add+0xc0/0x140\n rtnl_mdb_add+0x157/0x2a0\n rtnetlink_rcv_msg+0x207/0x5a0\n Allocated by task 84:\n __kmalloc_cache_noprof+0x153/0x360\n vxlan_mdb_remote_srcs_add+0x2eb/0x440\n __vxlan_mdb_add+0x803/0xd70\n Freed by task 84:\n kfree+0x14c/0x3b0\n vxlan_mdb_remote_del+0x129/0x1a0\n __vxlan_mdb_del+0x4f/0xe0\n vxlan_mdb_remote_src_fwd_del.isra.0+0x162/0x1b0\n __vxlan_mdb_add+0x1c5/0xd70\n\nThe MDB operations are netns-scoped, so an unprivileged user can perform\nthem in a new user and network namespace.\n\nReject the all-zeros address in vxlan_mdb_is_valid_source(), which covers\nboth call sites. A (*, G) entry is expressed by omitting the source, so\nnothing legitimate is refused.\n\nDiscovered by XBOW, triaged by Baul Lee <baul.lee@xbow.com>"
}
],
"metrics": [
{
"cvssV3_1": {
"baseScore": 7.8,
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"scenarios": [
{
"lang": "en",
"value": "AV:L - The malformed input is an RTM_NEWMDB rtnetlink message sent from a local socket (rtnl_mdb_add -> vxlan_mdb_add -> __vxlan_mdb_add -> vxlan_mdb_remote_srcs_replace -> vxlan_mdb_remote_src_del); no packet received from the network reaches the MDB control path.\nAC:L - It is deterministic, with no race: add a (*, G) entry with MDBE_ATTR_SOURCE 0.0.0.0 and 0.0.0.0 in MDBE_ATTR_SRC_LIST, then re-add it with NLM_F_REPLACE and no source list. The attacker creates every piece of the required state.\nPR:L - The only check is netlink_net_capable(CAP_NET_ADMIN) in rtnetlink_rcv_msg, which is namespace-scoped. An unprivileged user can get it with unshare -Urn, create their own vxlan device and send RTM_NEWMDB to it.\nUI:N - The attacker's own netlink messages, on a vxlan device they created in their own namespace, trigger the bug; no other user has to do anything.\nS:U - Corrupting kernel heap memory gives kernel-level impact within the same security authority, which is ordinary local privilege escalation with no VM or hardware boundary crossed.\nC:H - A heap spray can reclaim the freed vxlan_mdb_src_entry before vxlan_mdb_remote_src_entry_del reads it, so the attacker controls the pointers the kernel then uses. This is a slab use-after-free that can be built into a kernel memory disclosure.\nI:H - hlist_del() in vxlan_mdb_remote_src_entry_del reads ->next and ->pprev from the freed entry and writes through them. Once the slot is reclaimed with controlled data, that is an attacker-directed pointer write (an unlink write primitive).\nA:H - Unlinking a freed hlist node corrupts kernel memory; KASAN reports it in __vxlan_mdb_add, and without KASAN the corrupted list pointers can oops or panic the kernel. Any user who can open a user namespace can trigger it repeatedly."
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-09-25T14:42:09.682Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/e12c903fd13c6261b98ca18d8f70ac26e739e2f8"
},
{
"url": "https://git.kernel.org/stable/c/74e2a56c82209b0335b53e25f19f9b0590e2483d"
},
{
"url": "https://git.kernel.org/stable/c/71203a41d6fa2fa0ea2f3a7541987958bd3694fd"
},
{
"url": "https://git.kernel.org/stable/c/4aa61c88b4e292e10abdfd791334b8272108d68a"
}
],
"title": "vxlan: mdb: Fix use-after-free in vxlan_mdb_remote_src_del()",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2026-98122",
"datePublished": "2026-09-25T10:36:05.369Z",
"dateReserved": "2026-09-25T10:25:14.318Z",
"dateUpdated": "2026-09-25T14:42:09.682Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}