CVE-2022-47952
LXC vulnerability analysis and mitigation

Overview

CVE-2022-47952 affects lxc-user-nic in Linux Containers (LXC) through version 5.0.1. The vulnerability was discovered in a setuid root binary that allows local users to infer whether any file exists, even within protected directory trees. This information disclosure vulnerability exists because 'Failed to open' messages often indicate that a file does not exist, whereas 'does not refer to a network namespace path' messages often indicate that a file exists (MITRE CVE, NVD).

Technical details

The vulnerability exists in the lxc-user-nic binary, which is installed with setuid root permissions. The issue stems from different error messages returned when attempting to access files: a 'Failed to open' message indicates file non-existence, while 'does not refer to a network namespace path' suggests file existence. This differs from the previous CVE-2018-6556 fix, which was based on the assumption that users couldn't determine why an open() operation failed. However, in practice, there are cases where the failure reason becomes apparent through these distinct error messages (GitHub POC).

Impact

The vulnerability allows local users to perform information disclosure attacks by inferring the existence of files, even within protected directory trees that they normally wouldn't have permission to access. This could potentially be used to map out the directory structure and file presence in sensitive areas of the filesystem (MITRE CVE).

Mitigation and workarounds

The vulnerability has been patched in various distributions. For example, Debian 10 (Buster) fixed this issue in version 1:3.1.0+really3.0.3-8+deb10u1 of the lxc package. Users are recommended to upgrade their lxc packages to the latest version that includes the security fix (Debian LTS).

Additional resources


SourceThis report was generated using AI

Related LXC vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2016-8649CRITICAL9.1
  • LXCLXC
  • lxc
NoYesMay 01, 2017
CVE-2019-5736HIGH8.6
  • DockerDocker
  • lxc-devel
NoYesFeb 11, 2019
CVE-2017-18641HIGH8.1
  • LXCLXC
  • lxc
NoYesFeb 10, 2020
CVE-2022-47952LOW3.3
  • LXCLXC
  • lxc
NoYesJan 01, 2023
CVE-2018-6556LOW3.3
  • LXCLXC
  • pam_cgfs
NoYesAug 10, 2018

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management