CVE-2022-0563

NameCVE-2022-0563
DescriptionA flaw was found in the util-linux chfn and chsh utilities when compiled with Readline support. The Readline library uses an "INPUTRC" environment variable to get a path to the library config file. When the library cannot parse the specified file, it prints an error message containing data from the file. This flaw allows an unprivileged user to read root-owned files, potentially leading to privilege escalation. This flaw affects util-linux versions prior to 2.37.4.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
util-linux (PTS)jessie, jessie (lts)2.26.2+really2.25.2-6+deb8u2vulnerable
stretch (security)2.29.2-1+deb9u1vulnerable
stretch (lts), stretch2.29.2-1+deb9u3vulnerable
buster (security), buster, buster (lts)2.33.1-0.1+deb10u1vulnerable
bullseye (security), bullseye2.36.1-8+deb11u2vulnerable
bookworm2.38.1-5+deb12u2vulnerable
bookworm (security)2.38.1-5+deb12u1vulnerable
sid, trixie2.40.2-12vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
util-linuxsource(unstable)(unfixed)unimportant

Notes

https://bugzilla.redhat.com/show_bug.cgi?id=2053151
https://lore.kernel.org/util-linux/20220214110609.msiwlm457ngoic6w@ws.net.home/T/#u
https://github.com/util-linux/util-linux/commit/faa5a3a83ad0cb5e2c303edbfd8cd823c9d94c17
util-linux in Debian does build with readline support but chfn and chsh are provided
by src:shadow and util-linux is configured with --disable-chfn-chsh

Search for package or bug name: Reporting problems