CVE-2025-14104: Util-linux: util-linux: heap buffer overread in setpwnam() when processing 256-byte usernames

Published Dec 5, 2025
·
Updated

A flaw was found in util-linux. Heap buffer overread when processing 256-byte usernames. Affects any SUID login-utils utility writing to password database. The setpwnam() function allocates a 256-byte buffer but accesses linebuf[256] when username length equals 256, causing a heap buffer overread.

Other sources

A flaw was found in util-linux. This vulnerability allows a heap buffer overread when processing 256-byte usernames, specifically within the setpwnam() function, affecting SUID (Set User ID) login-utils utilities writing to the password database.

NVD

Util-linux: util-linux: heap buffer overread in setpwnam() when processing 256-byte usernames

Microsoft

Affected Software

8 affected componentsFixes available
util-linux util-linux
Microsoft azl3 util-linux 2.40.2-1
Microsoft cbl2 util-linux 2.37.4-9
Microsoft cbl2 util-linux 2.37.4-10
IBM Verify Identity Access<=11.0 - 11.0.2
IBM Security Verify Access<=10.0 - 10.0.9.1
IBM Verify Identity Access Container<=11.0 - 11.0.2
IBM Security Verify Access Container<=10.0 - 10.0.9.1

Event History

Dec 5, 2025
Data Sourced
via Red Hat·02:21 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·04:22 PM
Data Sourced
via MITRE·04:22 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
DescriptionSeverityWeakness
Dec 13, 2025
Data Sourced
via Microsoft·01:02 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:02 AM
Affected Software
Updated
via Microsoft·01:02 AM
DescriptionSeverity
Jul 8, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

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-2025-14104?

CVE-2025-14104 is classified as a high severity vulnerability due to potential heap buffer overreads affecting system security.

2

How do I fix CVE-2025-14104?

To fix CVE-2025-14104, update to the latest version of util-linux that addresses this vulnerability.

3

What versions of util-linux are affected by CVE-2025-14104?

CVE-2025-14104 affects all versions of util-linux that utilize the setpwnam() function with SUID login-utils.

4

What kind of attack can be performed using CVE-2025-14104?

An attacker may exploit CVE-2025-14104 to cause a denial of service or potentially gain unauthorized access to sensitive information.

5

Is CVE-2025-14104 exploitable remotely?

Yes, CVE-2025-14104 can be exploited remotely if an attacker can control username inputs processed by SUID login-utils.

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