CVE-2022-0563: Medium severity kernel util-linux vulnerability

Published Feb 10, 2022
·
Updated

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.

Other sources

A flaw was found in util-linux's chfn/chsh utilities when compiled with readline support. The readline library accepts an INPUTRC parameter as an environment variable. Passing this environment variable causes readline to load the file in the chfn process, which is running as UID 0. Parsing this file will lead to errors being printed to standard output when reading lines that begin with certain strings such as "-" and lines that do not contain an expected character. These error messages contain parts of the file, which is the core of the issue. An unprivileged user could use this flaw to read root-owned files, potentially leading to privilege escalation.

References: https://blog.trailofbits.com/2023/02/16/suid-logic-bug-linux-readline/ https://lore.kernel.org/util-linux/20220214110609.msiwlm457ngoic6w@ws.net.home/T/#u

— Red Hat

Affected Software

20 affected componentsFixes available
kernel util-linux<2.37.4
NetApp ONTAP Select Deploy administration utility
debian/util-linux*
debian/util-linux*
debian/util-linux*
debian/util-linux<=2.38.1-5+deb12u3, <=2.38.1-5+deb12u1, <=2.41.5-0+deb13u1, <=2.42.4-1
redhat/util-linux<2.37.4
2.37.4
alpine/util-linux<2.37.4-r0
2.37.4-r0
alpine/util-linux<2.37.4-r0
2.37.4-r0
alpine/util-linux<2.37.4-r0
2.37.4-r0
alpine/util-linux<2.37.4-r0
2.37.4-r0
alpine/util-linux<2.37.4-r0
2.37.4-r0
alpine/util-linux<2.37.4-r0
2.37.4-r0
alpine/util-linux<2.37.4-r0
2.37.4-r0
alpine/util-linux<2.37.4-r0
2.37.4-r0
alpine/util-linux<2.37.4-r0
2.37.4-r0
alpine/util-linux<2.37.4-r0
2.37.4-r0
alpine/util-linux<2.37.4-r0
2.37.4-r0
alpine/util-linux<2.37.4-r0
2.37.4-r0
alpine/util-linux<2.37.4-r0
2.37.4-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/util-linux to a version that resolves this vulnerability.

    Fixed in 2.37.4
  2. Upgrade

    Upgrade alpine/util-linux to a version that resolves this vulnerability.

    Fixed in 2.37.4-r0
  3. Upgrade

    Upgrade util-linux to a version that resolves this vulnerability.

    Fixed in 2.37.4

Event History

Feb 10, 2022
Data Sourced
via Red Hat·03:51 PM
DescriptionSeverityAffected Software
Feb 21, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·07:15 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the vulnerability ID for this flaw?

The vulnerability ID for this flaw is CVE-2022-0563.

2

What software is affected by this vulnerability?

The util-linux chfn and chsh utilities when compiled with Readline support, as well as the NetApp ONTAP Select Deploy administration utility.

3

What is the severity level of CVE-2022-0563?

The severity level of CVE-2022-0563 is medium, with a severity value of 5.5.

4

What is the Common Weakness Enumeration (CWE) ID for this vulnerability?

The Common Weakness Enumeration (CWE) ID for this vulnerability is CWE-209.

5

Where can I find more information about this vulnerability?

You can find more information about this vulnerability at the following references: [Link 1](https://lore.kernel.org/util-linux/20220214110609.msiwlm457ngoic6w@ws.net.home/T/#u) and [Link 2](https://security.netapp.com/advisory/ntap-20220331-0002/).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203