CVE-2015-5224: Critical severity util-linux vulnerability

Published Aug 25, 2015
·
Updated

The following vulnerability in util-linux was announced (taken from http://seclists.org/oss-sec/2015/q3/423):

""" If the chfn and chsh binaries (both setuid-root) from util-linux/login-utils are compiled WITHOUT libuser support, they eventually call mkostemp(localtmp, ORDWR|OCREAT|OEXCL|OCLOEXEC); where localtmp is "/etc/%s.XXXXXX" and %s is progname (i.e., argv[0]'s basename).

An attacker could repeatedly execve chfn as "ld.so" until mkostemp() creates "/etc/ld.so.preload" (after a few days, in our tests). This particular example doesn't actually work, because "preload" is 7 chars and "XXXXXX" is 6 chars, but it seems there are other interesting possibilities, like "/etc/rc.status" and "/etc/krb5.keytab".

The impact of this vulnerability is probably very limited: most Linux distributions ship either the chfn/chsh binaries from the shadow-utils (NOT the login-utils ones), or the login-utils ones but WITH libuser support. """

Upstream patch: https://github.com/karelzak/util-linux/commit/bde91c85bdc77975155058276f99d2e0f5eab5a9

Other sources

The mkostemp function in login-utils in util-linux when used incorrectly allows remote attackers to cause file name collision and possibly other attacks.

MITRE

Affected Software

2 affected components
kernel util-linux<=2.26.2
kernel util-linux=2.27-rc1

Event History

Aug 25, 2015
Data Sourced
via Red Hat·09:27 AM
DescriptionSeverityAffected Software
Aug 23, 2017
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Data Sourced
via NVD·03:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2015-5224?

CVE-2015-5224 has a medium severity rating due to its potential for privilege escalation.

2

How do I fix CVE-2015-5224?

To fix CVE-2015-5224, upgrade util-linux to version 2.27 or later or ensure it is compiled with libuser support.

3

What are the affected versions of util-linux in CVE-2015-5224?

The affected versions include util-linux versions prior to 2.27 and 2.26.2 or lower.

4

What is the nature of the vulnerability in CVE-2015-5224?

CVE-2015-5224 is a privilege escalation vulnerability in the setuid-root binaries chfn and chsh when compiled without libuser support.

5

Can applications using util-linux be affected by CVE-2015-5224?

Yes, applications that rely on the vulnerable util-linux components can be exploited if they are compiled without appropriate protections.

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