KernelScan.io

HIGH Introduced in 6.8

bridge MdbFlush UAF

CVE-2026-98487

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI7.0HIGH

01

In the Linux kernel, the following vulnerability has been resolved: net: bridge: mdb: restart port group walk after deletion br_mdb_flush_pgs() keeps a pointer-to-pointer cursor while walking mp->ports. br_multicast_del_pg() can re-enter the same MDB entry through br_multicast_sg_del_exclude_ports() and unlink other port groups. If the cursor points into one of those groups, the next iteration dereferences a stale cursor and can leave mp->ports pointing at freed memory. A following RTM_GETMDB exposes the dangling pointer: BUG: KASAN: slab-use-after-free in br_mdb_dump Read of size 8 br_mdb_dump rtnl_mdb_dump rtnl_dumpit netlink_dump Reset the cursor to mp->ports after every deletion. The deletion removes at least the selected group, so the restarted walk always makes progress.

02

Engine v0.9.0

Risk summary

A local attacker with CAP_NET_ADMIN (obtainable in a user namespace) can trigger a use-after-free in the bridge multicast database by configuring multicast groups and invoking a bulk deletion operation. This leads to kernel memory corruption, enabling privilege escalation to root and container escape.

Affectednet/bridge/br_mdb.c (bridge multicast database)

Vulnerability analysis

The bridge multicast database (MDB) bulk deletion function walks a linked list of port groups using a pointer-to-pointer cursor. When deleting each group, a callback can re-enter the same MDB entry and unlink other port groups from the list, freeing their memory. If the cursor points into one of those freed groups, the next loop iteration dereferences a stale pointer, causing a use-after-free. The fix resets the cursor to the list head after each deletion, ensuring the walk always references valid memory. The vulnerability is reachable by any local user with CAP_NET_ADMIN — including unprivileged users inside a user namespace — by configuring bridge multicast state and triggering the flush path, with the dangling pointer later exposed via an RTM_GETMDB netlink dump.

03

BranchIntroducedFixed inPatch commit
6.126.86.12.11246ec55855c97
6.186.86.18.55ab3c4a4c85f2
7.26.87.2.9fe2a42789c12
mainline6.87.3ab1404ac8115
cip/6.126.86.12.112-cip3346ec55855c97

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.112-cip33