Name | CVE-2022-0563 |
Description | A 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. |
Source | CVE (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 Package | Release | Version | Status |
---|
util-linux (PTS) | jessie, jessie (lts) | 2.26.2+really2.25.2-6+deb8u2 | vulnerable |
| stretch (security) | 2.29.2-1+deb9u1 | vulnerable |
| stretch (lts), stretch | 2.29.2-1+deb9u3 | vulnerable |
| buster (security), buster, buster (lts) | 2.33.1-0.1+deb10u1 | vulnerable |
| bullseye (security), bullseye | 2.36.1-8+deb11u2 | vulnerable |
| bookworm | 2.38.1-5+deb12u2 | vulnerable |
| bookworm (security) | 2.38.1-5+deb12u1 | vulnerable |
| sid, trixie | 2.40.2-12 | vulnerable |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
util-linux | source | (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