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

Medium 6.1 Published Updated

A heap buffer overread in util-linux allows attackers to read memory or cause crashes when processing long usernames in SUID utilities.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-14104?

CVE-2025-14104 is a medium-severity memory corruption vulnerability in Cert Manager support for Red Hat OpenShift release 1.18, published on 5 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-125

Which versions are affected by CVE-2025-14104?

Linux distribution packages (40)
libblkid AlmaLinux:10All versions2.40.2-15.el10_1
libblkid-devel AlmaLinux:10All versions2.40.2-15.el10_1
libfdisk AlmaLinux:10All versions2.40.2-15.el10_1
libfdisk-devel AlmaLinux:10All versions2.40.2-15.el10_1
libmount AlmaLinux:10All versions2.40.2-15.el10_1
libmount-devel AlmaLinux:10All versions2.40.2-15.el10_1
libsmartcols AlmaLinux:10All versions2.40.2-15.el10_1
libsmartcols-devel AlmaLinux:10All versions2.40.2-15.el10_1
libuuid AlmaLinux:10All versions2.40.2-15.el10_1
libuuid-devel AlmaLinux:10All versions2.40.2-15.el10_1
python3-libmount AlmaLinux:10All versions2.40.2-15.el10_1
util-linux AlmaLinux:10All versions2.40.2-15.el10_1
util-linux-core AlmaLinux:10All versions2.40.2-15.el10_1
uuidd AlmaLinux:10All versions2.40.2-15.el10_1
libblkid AlmaLinux:8All versions2.32.1-48.el8_10
libblkid-devel AlmaLinux:8All versions2.32.1-48.el8_10
libfdisk AlmaLinux:8All versions2.32.1-48.el8_10
libfdisk-devel AlmaLinux:8All versions2.32.1-48.el8_10
libmount AlmaLinux:8All versions2.32.1-48.el8_10
libmount-devel AlmaLinux:8All versions2.32.1-48.el8_10
libsmartcols AlmaLinux:8All versions2.32.1-48.el8_10
libsmartcols-devel AlmaLinux:8All versions2.32.1-48.el8_10
libuuid AlmaLinux:8All versions2.32.1-48.el8_10
libuuid-devel AlmaLinux:8All versions2.32.1-48.el8_10
python3-libmount AlmaLinux:8All versions2.32.1-48.el8_10
util-linux AlmaLinux:8All versions2.32.1-48.el8_10
util-linux-user AlmaLinux:8All versions2.32.1-48.el8_10
uuidd AlmaLinux:8All versions2.32.1-48.el8_10
libblkid AlmaLinux:9All versions2.37.4-21.el9_7
libblkid-devel AlmaLinux:9All versions2.37.4-21.el9_7
libfdisk AlmaLinux:9All versions2.37.4-21.el9_7
libfdisk-devel AlmaLinux:9All versions2.37.4-21.el9_7
libmount AlmaLinux:9All versions2.37.4-21.el9_7
libmount-devel AlmaLinux:9All versions2.37.4-21.el9_7
libsmartcols AlmaLinux:9All versions2.37.4-21.el9_7
libsmartcols-devel AlmaLinux:9All versions2.37.4-21.el9_7
libuuid AlmaLinux:9All versions2.37.4-21.el9_7
libuuid-devel AlmaLinux:9All versions2.37.4-21.el9_7
python3-libmount AlmaLinux:9All versions2.37.4-21.el9_7
util-linux AlmaLinux:9All versions2.37.4-21.el9_7

How do I fix CVE-2025-14104?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-14104 being exploited?

There is no known exploitation of CVE-2025-14104 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2025-14104, ALSA-2026:1696, ALSA-2026:1852, ALSA-2026:1913, AZL-72305, AZL-72307 and 23 more.

Is CVE-2025-14104 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free