# CVE-2026-39402: lxc lxc-user-nic insufficient ownership validation allows cross-tenant OVS port deletion

- Severity: Medium 4.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-05T20:45:24.107Z
- Modified: 2026-07-24T21:10:00.143Z
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- lxc lxc: < 7.0.0
- linuxcontainers lxc: before 7.0.0

## Every score

- GitHub_M: CVSS:4.0 4.3 Medium `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H`

## References

- <https://github.com/lxc/lxc/security/advisories/GHSA-3m9j-g9gc-vcvq> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2026-39402](https://www.cve.org/CVERecord?id=CVE-2026-39402), CVE Terms of Use, modified 2026-05-06
- NVD: [CVE-2026-39402](https://nvd.nist.gov/vuln/detail/CVE-2026-39402), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-39402 · Whole record: https://cve.day/CVE-2026-39402.json · Rebuilt by cve.day 2026-11-25T22:59:20.646Z
