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

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

- **Severity:** Medium 6.1 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H`)
- **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:** Yes
- **Published:** 5 Dec 2025
- **Updated:** 14 Oct 2026
- **Also known as:** ALPINE-CVE-2025-14104, ALSA-2026:1696, ALSA-2026:1852, ALSA-2026:1913, AZL-72305, AZL-72307, BELL-CVE-2025-14104, DEBIAN-CVE-2025-14104, ECHO-2993-d712-59ce, GHSA-hrx4-rccm-xj6c, OESA-2026-1184, RHSA-2026:1696, RHSA-2026:1852, RHSA-2026:1913, RLSA-2026:1696, RLSA-2026:1852, RLSA-2026:1913, ROOT-OS-DEBIAN-11-CVE-2025-14104, ROOT-OS-DEBIAN-12-CVE-2025-14104, SUSE-SU-2026:0115-1, SUSE-SU-2026:0116-1, SUSE-SU-2026:0117-1, SUSE-SU-2026:0230-1, SUSE-SU-2026:0366-1, SUSE-SU-2026:0510-1, SUSE-SU-2026:20346-1, SUSE-SU-2026:20365-1, UBUNTU-CVE-2025-14104, openSUSE-SU-2026:10072-1

## 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 (Out-of-bounds Read)

## Which versions are affected by CVE-2025-14104?


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `libblkid` | AlmaLinux:10 | All versions | 2.40.2-15.el10_1 |
| `libblkid-devel` | AlmaLinux:10 | All versions | 2.40.2-15.el10_1 |
| `libfdisk` | AlmaLinux:10 | All versions | 2.40.2-15.el10_1 |
| `libfdisk-devel` | AlmaLinux:10 | All versions | 2.40.2-15.el10_1 |
| `libmount` | AlmaLinux:10 | All versions | 2.40.2-15.el10_1 |
| `libmount-devel` | AlmaLinux:10 | All versions | 2.40.2-15.el10_1 |
| `libsmartcols` | AlmaLinux:10 | All versions | 2.40.2-15.el10_1 |
| `libsmartcols-devel` | AlmaLinux:10 | All versions | 2.40.2-15.el10_1 |
| `libuuid` | AlmaLinux:10 | All versions | 2.40.2-15.el10_1 |
| `libuuid-devel` | AlmaLinux:10 | All versions | 2.40.2-15.el10_1 |
| `python3-libmount` | AlmaLinux:10 | All versions | 2.40.2-15.el10_1 |
| `util-linux` | AlmaLinux:10 | All versions | 2.40.2-15.el10_1 |
| `util-linux-core` | AlmaLinux:10 | All versions | 2.40.2-15.el10_1 |
| `uuidd` | AlmaLinux:10 | All versions | 2.40.2-15.el10_1 |
| `libblkid` | AlmaLinux:8 | All versions | 2.32.1-48.el8_10 |
| `libblkid-devel` | AlmaLinux:8 | All versions | 2.32.1-48.el8_10 |
| `libfdisk` | AlmaLinux:8 | All versions | 2.32.1-48.el8_10 |
| `libfdisk-devel` | AlmaLinux:8 | All versions | 2.32.1-48.el8_10 |
| `libmount` | AlmaLinux:8 | All versions | 2.32.1-48.el8_10 |
| `libmount-devel` | AlmaLinux:8 | All versions | 2.32.1-48.el8_10 |
| `libsmartcols` | AlmaLinux:8 | All versions | 2.32.1-48.el8_10 |
| `libsmartcols-devel` | AlmaLinux:8 | All versions | 2.32.1-48.el8_10 |
| `libuuid` | AlmaLinux:8 | All versions | 2.32.1-48.el8_10 |
| `libuuid-devel` | AlmaLinux:8 | All versions | 2.32.1-48.el8_10 |
| `python3-libmount` | AlmaLinux:8 | All versions | 2.32.1-48.el8_10 |
| `util-linux` | AlmaLinux:8 | All versions | 2.32.1-48.el8_10 |
| `util-linux-user` | AlmaLinux:8 | All versions | 2.32.1-48.el8_10 |
| `uuidd` | AlmaLinux:8 | All versions | 2.32.1-48.el8_10 |
| `libblkid` | AlmaLinux:9 | All versions | 2.37.4-21.el9_7 |
| `libblkid-devel` | AlmaLinux:9 | All versions | 2.37.4-21.el9_7 |
| `libfdisk` | AlmaLinux:9 | All versions | 2.37.4-21.el9_7 |
| `libfdisk-devel` | AlmaLinux:9 | All versions | 2.37.4-21.el9_7 |
| `libmount` | AlmaLinux:9 | All versions | 2.37.4-21.el9_7 |
| `libmount-devel` | AlmaLinux:9 | All versions | 2.37.4-21.el9_7 |
| `libsmartcols` | AlmaLinux:9 | All versions | 2.37.4-21.el9_7 |
| `libsmartcols-devel` | AlmaLinux:9 | All versions | 2.37.4-21.el9_7 |
| `libuuid` | AlmaLinux:9 | All versions | 2.37.4-21.el9_7 |
| `libuuid-devel` | AlmaLinux:9 | All versions | 2.37.4-21.el9_7 |
| `python3-libmount` | AlmaLinux:9 | All versions | 2.37.4-21.el9_7 |
| `util-linux` | AlmaLinux:9 | All versions | 2.37.4-21.el9_7 |

## How do I fix CVE-2025-14104?

Apply the vendor's patch.

## Is CVE-2025-14104 being exploited?

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

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-14104 and fix it if it is affected.

What it is: 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.
Exploitation: There is no known exploitation of CVE-2025-14104 in the wild and no public exploit code.

Affected product: Cert Manager support for Red Hat OpenShift release 1.18. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-14104/ (Markdown: https://insights.sbomify.com/CVE-2025-14104/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-14104
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-14104
- OSV: https://osv.dev/vulnerability/CVE-2025-14104

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-14104/
Summaries are generated and may contain mistakes; the official description above is the record.
