Skip to main content
Menu
Advisories

Instances can intercept and deny a neighbour's traffic despite security.mac_filtering

GHSA-F969-H6PC-HJV9Published Updated GitHub

Description

Reported from github.com/lxc/incus/security/advisories/GHSA-48vp-j46r-q79m

security.mac_filtering on a bridged NIC is documented as preventing an instance from spoofing another instance's MAC address. Frames carrying a spoofed source MAC are dropped, but by the time the filter is reached the host bridge has already recorded that MAC against the sending port.

An instance can therefore move a neighbour's entry in the bridge's forwarding table over to its own port. Frames addressed to the neighbour are then delivered to the attacker instead, until the neighbour transmits again and reclaims the entry. Sending frames toward the neighbour remains blocked.

No network ACL is required for this, and security.port_isolation does not prevent it: isolation governs where a frame may be forwarded, not what the bridge records about where it came from.

Impact

An instance with root on a shared managed bridge can read part of another instance's inbound traffic, and deny that traffic to its owner, which is what security.mac_filtering is relied on to prevent. In one reporter's measurements a single instance received 103 out of 200 of a neighbour's replies across five runs, while the neighbour lost them.

This affects deployments that place instances of different tenants on the same managed bridge and rely on security.mac_filtering to keep them apart. Full session impersonation was not demonstrated.

Workarounds

Place untrusted tenants on separate bridges, or on OVN networks, rather than relying on security.mac_filtering to separate them on a shared bridge.

References

GitHub · canonical/lxd