Bug 2528371 - CVE-2026-85498 polkit-gnome: Regression in CVE-2026-4897 fix (polkit read_cookie()) - stack buffer underflow [epel-all]
Summary: CVE-2026-85498 polkit-gnome: Regression in CVE-2026-4897 fix (polkit read_coo...
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: polkit-gnome
Version: epel10
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["ddf95fad-99df-431b-8b5b-a...
Depends On:
Blocks: CVE-2026-85498
TreeView+ depends on / blocked
 
Reported: 2026-09-04 02:12 UTC by Todd Cullum
Modified: 2026-09-04 02:12 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Todd Cullum 2026-09-04 02:12:26 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

Upstream commit 7e122c8a5120c2aae2d9d44a26796dc18f5b677c of polkit contains a regression stack buffer overflow: an unbounded getline() call was replaced in read_cookie() in /src/polkitagent/polkitagenthelperprivate.c, wherein fgets() copies bytes verbatim and does not stop at an embedded NUL byte.  If the first byte read from stdin is 0x00, buf[0] == '\0' and strlen(buf) returns 0. The expression strlen(buf) - 1 then underflows (size_t)0 - 1 to SIZE_MAX, and buf[SIZE_MAX] is an out-of-bounds read. On a typical two's-complement 64-bit target the pointer arithmetic wraps modulo 2^64, so in practice this reads buf[-1] - one byte immediately before the stack buffer.


Note You need to log in before you can comment on or make changes to this bug.