CVE-2022-47952
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.
What to do
Fixed builds are available from Alpine, 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 25.10 | lxc | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | lxc | Fix pending | 1:5.0.3-2ubuntu7.3+esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-47952 |
| Ubuntu 22.04 | lxc | Fix pending | 1:5.0.0~git2209-g5a7b9ce67-0ubuntu1.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-47952 |
| Ubuntu 20.04 | lxc | Fix pending | 1:4.0.12-0ubuntu1~20.04.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-47952 |
| Ubuntu 18.04 | lxc | Fix pending | 3.0.3-0ubuntu1~18.04.3+esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-47952 |
| Ubuntu 16.04 | lxc | Fix pending | ||
| Ubuntu 14.04 | lxc | Fix pending | ||
| Debian 14 | lxc | Fixed | 1:5.0.2-1 | DEBIAN-CVE-2022-47952 |
| Debian 13 | lxc | Fixed | 1:5.0.2-1 | DEBIAN-CVE-2022-47952 |
| Debian 12 | lxc | Fixed | 1:5.0.2-1 | DEBIAN-CVE-2022-47952 |
| Alpine Linux 3.24 | lxc | Fixed | 5.0.1-r2 | ALPINE-CVE-2022-47952 |
| Alpine Linux 3.23 | lxc | Fixed | 5.0.1-r2 | ALPINE-CVE-2022-47952 |
| Alpine Linux 3.22 | lxc | Fixed | 5.0.1-r2 | ALPINE-CVE-2022-47952 |
| Alpine Linux 3.21 | lxc | Fixed | 5.0.1-r2 | ALPINE-CVE-2022-47952 |
| Alpine Linux 3.20 | lxc | Fixed | 5.0.1-r2 | ALPINE-CVE-2022-47952 |
| Alpine Linux 3.19 | lxc | Fixed | 5.0.1-r2 | ALPINE-CVE-2022-47952 |
| Alpine Linux 3.18 | lxc | Fixed | 5.0.1-r2 | ALPINE-CVE-2022-47952 |
| Alpine Linux 3.17 | lxc | Fixed | 5.0.1-r2 | ALPINE-CVE-2022-47952 |
| Alpine Linux 3.16 | lxc | Fixed | 4.0.12-r2 | ALPINE-CVE-2022-47952 |
| Alpine Linux 3.15 | lxc | Fixed | 4.0.12-r2 | ALPINE-CVE-2022-47952 |
| Alpine Linux 3.14 | lxc | Fixed | 4.0.10-r2 | ALPINE-CVE-2022-47952 |
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
- https://lists.debian.org/debian-lts-announce/2023/08/msg00025.html
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.