Skip to content
OpenAdvisories
Medium · 4.3 CVE-2026-39402 EUVD-2026-27497

lxc lxc-user-nic insufficient ownership validation allows cross-tenant OVS port deletion

Published May 5, 2026 · Updated May 6, 2026 · Assigned by GitHub_M

Description

lxc is a Linux container runtime. In the setuid helper lxc-user-nic, the delete path contains a logic flaw in the find_line() function that allows an unprivileged user to delete OVS-attached network interfaces belonging to other users. When lxc-user-nic delete scans its NIC database to authorize a deletion request, the interface name comparison can set the authorization flag based on a name match alone, even when the ownership, type, and link fields in that database entry belong to a different user. The vulnerable check sits after the goto next label handling, meaning it is reachable on lines where earlier ownership checks failed or were skipped. Because nothing downstream of this authorization signal re-verifies that the matched database line actually belongs to the caller, an unprivileged attacker with a valid lxc-usernet policy entry can trigger deletion of another user's OVS port on the same bridge.

This is limited to multi-tenant environments using lxc-user-nic with OpenVSwitch bridges. The impact is denial of service - one tenant can repeatedly disconnect networking from containers run by another tenant on shared infrastructure. This is patched in version 7.0.0.

Affected products

VendorProductAffectedFixed
lxc lxc < 7.0.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 lxc 1:7.0.0-1 —
Debian 13 lxc 1:6.0.4-4+deb13u3 —
Debian 12 lxc 1:5.0.2-1+deb12u4 —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 lxc No fix yet —
Ubuntu 14.04 LTS lxc No fix yet —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS lxc 1:6.0.6-1ubuntu1+esm1 USN-8826-1
Ubuntu Pro 24.04 LTS lxc 1:5.0.3-2ubuntu7.3+esm1 USN-8826-1
Ubuntu Pro 22.04 LTS lxc 1:5.0.0~git2209-g5a7b9ce67-0ubuntu1.1+esm1 USN-8826-1
Ubuntu Pro 20.04 LTS lxc 1:4.0.12-0ubuntu1~20.04.1+esm1 USN-8826-1
Ubuntu Pro 18.04 LTS lxc 3.0.3-0ubuntu1~18.04.3+esm1 USN-8826-1
Ubuntu Pro 16.04 LTS lxc 2.0.11-0ubuntu1~16.04.3+esm1 USN-8826-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed incus 7.4-1.1 openSUSE-SU-2026:11651-1
openSUSE Tumbleweed lxc 7.0.0-1.1 openSUSE-SU-2026:10678-1

Advisories 3

References