Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 889284 (CVE-2022-47952) - <app-containers/lxc-5.0.2: file existence disclosure
Summary: <app-containers/lxc-5.0.2: file existence disclosure
Alias: CVE-2022-47952
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
Whiteboard: B4 [glsa?]
Depends on:
Reported: 2023-01-01 15:54 UTC by John Helmert III
Modified: 2023-10-14 07:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-01-01 15:54:05 UTC
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.

As usual with this character, there's no reference to an upstream
Comment 1 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-01-01 20:25:56 UTC
The guy apparently made a PR upstream, copy-pasting the CVE description:

I doubt upstream will find this desirable, seeing as he's only commented out some output functions and hasn't tried to fix the CI issues.
Comment 3 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-01-23 03:54:41 UTC
Thanks, please stabilize when ready.
Comment 4 Hans de Graaff gentoo-dev Security 2023-10-14 07:47:29 UTC
commit f565998a51b1e190e4595d726873e1775b2bc4c8
Author: Joonas Niilola <>
Date:   Wed Feb 22 09:11:49 2023 +0200

    app-containers/lxc: drop 5.0.1-r2