Skip to content
OpenAdvisories
Low · 3.3 Public exploit CVE-2022-47952 EUVD-2022-50682GHSA-qv29-rjwj-jjrm

lxc-user-nic in lxc through 5.0.1 is installed setuid root, and may allow local users to infer whether any file exists, even within a prote…

Published Jan 1, 2023 · Updated Apr 10, 2025 · Assigned by mitre

Description

lxc-user-nic in lxc through 5.0.1 is installed setuid root, and may allow local users to infer whether any file exists, even within a protected directory tree, because "Failed to open" often indicates that a file does not exist, whereas "does not refer to a network namespace path" often indicates that a file exists. NOTE: this is different from CVE-2018-6556 because the CVE-2018-6556 fix design was based on the premise that "we will report back to the user that the open() failed but the user has no way of knowing why it failed"; however, in many realistic cases, there are no plausible reasons for failing except that the file does not exist.

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:5.0.2-1 —
Debian 13 lxc 1:5.0.2-1 —
Debian 12 lxc 1:5.0.2-1 —
Debian 10 lxc 1:3.1.0+really3.0.3-8+deb10u1 DLA-3533-1
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
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
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
SUSE Package Hub 15 SP6 lxc 6.0.2-bp156.2.3.1 openSUSE-SU-2024:0342-1
SUSE Package Hub 15 SP5 lxc 6.0.2-bp156.2.3.1 openSUSE-SU-2024:0342-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed lxc 5.0.2-1.1 openSUSE-SU-2024:12935-1
openSUSE Leap 15.6 lxc 6.0.2-bp156.2.3.1 openSUSE-SU-2024:0342-1
openSUSE Leap 15.5 lxc 6.0.2-bp156.2.3.1 openSUSE-SU-2024:0342-1
ReleasePackageFixed inAdvisory
Alpine v3.24 lxc 5.0.1-r2 —
Alpine v3.23 lxc 5.0.1-r2 —
Alpine v3.22 lxc 5.0.1-r2 —
Alpine v3.21 lxc 5.0.1-r2 —
Alpine v3.20 lxc 5.0.1-r2 —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 lxc 5.0.1-r2 —
Alpine v3.18 lxc 5.0.1-r2 —
Alpine v3.17 lxc 5.0.1-r2 —
Alpine v3.16 lxc 4.0.12-r2 —
Alpine v3.15 lxc 4.0.12-r2 —
Alpine v3.14 lxc 4.0.10-r2 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 4

References