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.
Advisories

No advisories yet.

Fixes

Solution

No solution given by the 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.

History

Tue, 01 Dec 2026 02:30:00 +0000

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

Tue, 01 Dec 2026 00:15:00 +0000

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


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-12-01T02:09:55.152Z

Reserved: 2026-11-30T18:43:46.960Z

Link: CVE-2026-140038

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-12-01T03:17:14.417

Modified: 2026-12-01T03:17:14.550

Link: CVE-2026-140038

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-11-30T19:22:31Z

Links: CVE-2026-140038 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses