CVE-2022-47952 Information disclosure in n/a

Low 3.3 Published Updated

Local attackers can infer file existence in protected directories via error message differences in the setuid lxc-user-nic binary.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-47952?

CVE-2022-47952 is a low-severity vulnerability in n/a, published on 1 Jan 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-203

Which versions are affected by CVE-2022-47952?

It affects 1 product.

Linux distribution packages (5)
lxc SUSE:Package Hub 15 SP5All versions6.0.2-bp156.2.3.1
lxc SUSE:Package Hub 15 SP6All versions6.0.2-bp156.2.3.1
lxc openSUSE:Leap 15.5All versions6.0.2-bp156.2.3.1
lxc openSUSE:Leap 15.6All versions6.0.2-bp156.2.3.1
lxc openSUSE:TumbleweedAll versions5.0.2-1.1

Products include Linuxcontainers Lxc.

How do I fix CVE-2022-47952?

Apply the vendor's patch.

Is CVE-2022-47952 being exploited?

There is no known exploitation of CVE-2022-47952 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as ALPINE-CVE-2022-47952, DEBIAN-CVE-2022-47952, DLA-3533-1, GHSA-qv29-rjwj-jjrm, OESA-2023-1075, OESA-2023-1076 and 4 more.

Is CVE-2022-47952 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free