Skip to content

Fix security issue with lxc-user-nic and OpenVswitch networks#4678

Merged
stgraber merged 2 commits into
lxc:mainfrom
stgraber:security
Apr 29, 2026
Merged

Fix security issue with lxc-user-nic and OpenVswitch networks#4678
stgraber merged 2 commits into
lxc:mainfrom
stgraber:security

Conversation

@stgraber

Copy link
Copy Markdown
Member

No description provided.

hallyn added 2 commits April 29, 2026 23:29
Some variable names were a bit confusing in find_line and cull_entries.
Rename and document, and fix the flows using these.

It's possible that a more maintainable approach, long term, would be
to break these up differently: have one function create a neat
in memory data structure representing the files, and have the paths
currently using find_line and cull_entries peek into the data structures.
But i think this is pretty clear.

This fixes CVE-2026-39402

Signed-off-by: Serge E. Hallyn <serge@hallyn.com>
Reviewed-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@futurfusion.io>
Signed-off-by: Serge E. Hallyn <serge@hallyn.com>
Reviewed-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@futurfusion.io>
@stgraber

Copy link
Copy Markdown
Member Author

GHSA-3m9j-g9gc-vcvq

@stgraber stgraber merged commit f292c4a into lxc:main Apr 29, 2026
18 checks passed
DreamConnected pushed a commit to DreamConnected/lxc that referenced this pull request May 1, 2026
Fix security issue with lxc-user-nic and OpenVswitch networks
shr-project pushed a commit to shr-project/meta-virtualization that referenced this pull request Jun 10, 2026
Apply the nearest upstream fix commit from stable-5.0 [1] for the lxc-user-nic
OVS port deletion authorization bypass, aligned with the original fix in
v7.0.0 [2] as referenced in PR [4].

Ubuntu specific test commit [3] from PR [4] is omitted because it is specific to
a host environment. It assumes an Ubuntu host, installs openvswitch-switch
with apt-get, creates local users, edits /etc/lxc/lxc-usernet and /run/lxc/nics,
and manipulates OVS bridges. That is not suitable for inclusion as a Yocto runtime
CVE patch without separate ptest adaptation.

[1] lxc/lxc@db25752
[2] lxc/lxc@7c43483
[3] lxc/lxc@14754e0
[4] lxc/lxc#4678

References:
https://security-tracker.debian.org/tracker/CVE-2026-39402
https://nvd.nist.gov/vuln/detail/CVE-2026-39402

Signed-off-by: Sudhir Dumbhare <sudumbha@cisco.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants