CVE-2026-140038

Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber

Published Dec 1, 2026 CVSS 3.1 · 5.1 Medium EPSS n/a KEV · Not listed
Description
A flaw was found in the gprofng component of binutils. The utility creates temporary directories in shared locations using predictable names based on user and process identifiers without verifying whether the directory already exists. A local attacker can exploit this flaw by pre-creating the expected directory and placing symbolic links inside it, causing a victim's process to overwrite or truncate arbitrary files writable by that victim.

Remediation

Vendor Workaround

Isolate execution environments to prevent shared temporary file access, or restrict profiling activities on shared hosts: 1. Execute gprofng workflows within an isolated container (such as via Podman) or a dedicated mount namespace with a private /tmp filesystem, preventing other local users from pre-creating predictable temporary paths. 2. Avoid running gprofng analysis sessions on multi-user systems where untrusted local accounts have access to the shared /tmp directory. Caveats: Running profiling tools inside an isolated container or private namespace may restrict visibility into processes or hardware performance counters on the host system without granting additional container capabilities.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
Redhat openshift
Redhat rhel Els
CPEs cpe:/a:redhat:hummingbird:1
cpe:/a:redhat:openshift:4
cpe:/a:redhat:openshift:5
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
Redhat openshift
Redhat rhel Els
References
Type Values Removed Values Added
Description A flaw was found in the gprofng component of binutils. The utility creates temporary directories in shared locations using predictable names based on user and process identifiers without verifying whether the directory already exists. A local attacker can exploit this flaw by pre-creating the expected directory and placing symbolic links inside it, causing a victim's process to overwrite or truncate arbitrary files writable by that victim.
Title binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber
Weaknesses CWE-377
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L'}

threat_severity

Moderate

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Dec 1, 2026, 2:09 AM
Reserved
Nov 30, 2026, 6:43 PM

No data.

Severity
Moderate
Public date
Nov 30, 2026, 7:22 PM