Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-14104
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 03:24 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 5 Dec 2025, 16:22 UTC

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.

osv:CVE-2025-14104
Complete source record
{
  "id": "7f9788eb59c4ec73b59b41fff1d1d2b2bfcef9e372f2864ae795d4bfbcc813ee",
  "url": "https://osv.dev/vulnerability/CVE-2025-14104",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Util-linux: util-linux: heap buffer overread in setpwnam() when processing 256-byte usernames",
    "summary": "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.",
    "evidence": "osv:CVE-2025-14104",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-14104",
      "aliases": [
        "CVE-2025-14104"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/util-linux/util-linux",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5305e6c70b274f679329b79c0e1ef5a07e9dc1a6"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.41.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.41.2",
            "v2.41.2-rc1",
            "v2.41.1",
            "v2.41",
            "v2.41-rc2",
            "v2.41-rc1",
            "v2.42-start",
            "v2.41-start",
            "v2.41-devel",
            "v2.40-rc1",
            "v2.39",
            "v2.39-rc3",
            "v2.39-rc2",
            "v2.39-rc1",
            "v2.38",
            "v2.38-rc4",
            "v2.38-rc3",
            "v2.38-rc2",
            "v2.38-rc1",
            "v2.37",
            "v2.37-rc2",
            "v2.37-rc1",
            "v2.36",
            "v2.36-rc2",
            "v2.36-rc1",
            "v2.35",
            "v2.35-rc2",
            "v2.35-rc1",
            "v2.34",
            "v2.34-rc2",
            "v2.34-rc1",
            "v2.33",
            "v2.33-rc2",
            "v2.33-rc1",
            "v2.32",
            "v2.32-rc2",
            "v2.32-rc1",
            "v2.31",
            "v2.31-rc2",
            "v2.31-rc1",
            "v2.30",
            "v2.30-rc2",
            "v2.30-rc1",
            "v2.29",
            "v2.29-rc2",
            "v2.29-rc1",
            "v2.28",
            "v2.28-rc2",
            "v2.28-rc1",
            "v2.27",
            "v2.27-rc2",
            "v2.27-rc1",
            "v2.26",
            "v2.26-rc2",
            "v2.26-rc1",
            "v2.25",
            "v2.25-rc2",
            "v2.25-rc1",
            "v2.24",
            "v2.24-rc2",
            "v2.24-rc1",
            "v2.23",
            "v2.23-rc2",
            "v2.23-rc1",
            "v2.22",
            "v2.22-rc2",
            "v2.22-rc1",
            "v2.21",
            "v2.21-rc2",
            "v2.21-rc1",
            "v2.20",
            "v2.20-rc2",
            "v2.20-rc1",
            "v2.19",
            "v2.19-rc3",
            "v2.19-rc2",
            "v2.19-rc1",
            "v2.18",
            "v2.18-rc2",
            "v2.18-rc1",
            "v2.17",
            "v2.17-rc3",
            "v2.17-rc2",
            "v2.17-rc1",
            "v2.16",
            "v2.16-rc2",
            "v2.16-rc1",
            "v2.15",
            "v2.15-rc2",
            "v2.15-rc1",
            "v2.14",
            "v2.14-rc3",
            "v2.14-rc2",
            "v2.14-rc1",
            "v2.13",
            "v2.13-rc3",
            "v2.13-rc2",
            "v2.13-rc1",
            "v2.13-pre7",
            "v2.13-pre6",
            "v2.13-pre5",
            "v2.13-pre4",
            "v2.13-pre3",
            "v2.13-pre2",
            "v2.13-pre1",
            "v2.12r",
            "v2.12r-pre1",
            "v2.12q",
            "v2.12q-pre2",
            "v2.12q-pre1",
            "v2.12p",
            "v2.12o",
            "v2.12m",
            "v2.12l",
            "v2.12k",
            "v2.12j",
            "v2.12i",
            "v2.12h",
            "v2.12d",
            "v2.12b",
            "v2.12a",
            "v2.12pre",
            "v2.12",
            "v2.11y",
            "v2.11x",
            "v2.11w",
            "v2.11v",
            "v2.11u",
            "v2.11t",
            "v2.11r",
            "v2.11q",
            "v2.11o",
            "v2.11n",
            "v2.11m",
            "v2.11f",
            "v2.11b",
            "v2.10s",
            "v2.10m",
            "v2.10f",
            "v2.9v",
            "v2.9i",
            "v2.8",
            "v2.7.1",
            "v2.5",
            "v2.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-14104.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.496597883Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/downloads/content/package-browser/",
        "https://catalog.redhat.com/software/containers/",
        "https://access.redhat.com/errata/RHSA-2026:1696",
        "https://access.redhat.com/errata/RHSA-2026:1852",
        "https://access.redhat.com/errata/RHSA-2026:1913",
        "https://access.redhat.com/errata/RHSA-2026:2485",
        "https://access.redhat.com/errata/RHSA-2026:2563",
        "https://access.redhat.com/errata/RHSA-2026:2737",
        "https://access.redhat.com/errata/RHSA-2026:2800",
        "https://access.redhat.com/errata/RHSA-2026:3406",
        "https://access.redhat.com/errata/RHSA-2026:4943",
        "https://access.redhat.com/errata/RHSA-2026:7180",
        "https://access.redhat.com/errata/RHSA-2026:82347",
        "https://access.redhat.com/errata/RHSA-2026:82354",
        "https://access.redhat.com/errata/RHSA-2026:82372",
        "https://access.redhat.com/errata/RHSA-2026:82857",
        "https://access.redhat.com/security/cve/CVE-2025-14104",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/14xxx/CVE-2025-14104.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-14104",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2419369",
        "https://github.com/util-linux/util-linux"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-125"
        ],
        "cna_assigner": "redhat",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "0:2.40.2-15.el10_1"
                  },
                  {
                    "fixed": "0:2.32.1-48.el8_10"
                  },
                  {
                    "fixed": "0:2.32.1-48.el8_10"
                  },
                  {
                    "fixed": "0:2.37.4-21.el9_7"
                  },
                  {
                    "fixed": "0:2.37.4-21.el9_7"
                  },
                  {
                    "fixed": "1791459707"
                  },
                  {
                    "fixed": "1791459711"
                  },
                  {
                    "fixed": "1791459759"
                  },
                  {
                    "fixed": "1789029076"
                  },
                  {
                    "fixed": "1791966259"
                  },
                  {
                    "fixed": "1770632724"
                  },
                  {
                    "fixed": "1770630907"
                  },
                  {
                    "fixed": "1771816028"
                  },
                  {
                    "fixed": "2.42-7.1.hum1"
                  },
                  {
                    "fixed": "1770740405"
                  },
                  {
                    "fixed": "1770646925"
                  },
                  {
                    "fixed": "1773670073"
                  },
                  {
                    "fixed": "1773672059"
                  },
                  {
                    "fixed": "1773670137"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "InverseAffectedRanges"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/14xxx/CVE-2025-14104.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-14104",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 492163,
  "published_at": "2025-12-05T16:22:09.283+00:00"
}