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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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.
GitHub 1 repository
-
MaherAzzouzi/CVE-2022-47952 ★ 0 · Dec 31, 2022
LXC Information Disclosure vulnerability.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 4
- USN-8826-1 lxc vulnerabilities Ubuntu Security Notices (USN) · Sep 28, 2026
- DLA-3533-1 lxc - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:0342-1 Security update for lxc SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:12935-1 liblxc-devel-5.0.2-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://github.com/lxc/lxc/blob/0b83d71c2c8f3bac9503f894cd84584f79258bb3/lxc.spec.in#L274
- https://github.com/lxc/lxc/blob/0b83d71c2c8f3bac9503f894cd84584f79258bb3/src/lxc/cmd/lxc_user_nic.c#L1085-L1104
- https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1783591/comments/45
- https://github.com/MaherAzzouzi/CVE-2022-47952
- [debian-lts-announce] 20230821 [SECURITY] [DLA 3533-1] lxc security update mailing-list