CVE-2026-39402lxc lxc-user-nic insufficient ownership validation allows cross-tenant OVS port deletion
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | lxc | Fix pending | 1:6.0.6-1ubuntu1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-39402 |
| Ubuntu 25.10 | lxc | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-39402 | |
| Ubuntu 24.04 | lxc | Fix pending | 1:5.0.3-2ubuntu7.3+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-39402 |
| Ubuntu 22.04 | lxc | Fix pending | 1:5.0.0~git2209-g5a7b9ce67-0ubuntu1.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-39402 |
| Ubuntu 20.04 | lxc | Fix pending | 1:4.0.12-0ubuntu1~20.04.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-39402 |
| Ubuntu 18.04 | lxc | Fix pending | 3.0.3-0ubuntu1~18.04.3+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-39402 |
| Ubuntu 14.04 | lxc | Fix pending | UBUNTU-CVE-2026-39402 | |
| Debian 14 | lxc | Fixed | 1:7.0.0-1 | DEBIAN-CVE-2026-39402 |
| Debian 13 | lxc | Fixed | 1:6.0.4-4+deb13u3 | DEBIAN-CVE-2026-39402 |
| Debian 12 | lxc | Fixed | 1:5.0.2-1+deb12u4 | DEBIAN-CVE-2026-39402 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- lxc: affected: < 7.0.0
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.