Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber
- CVE-2026-140038
- GHSA-r668-4gff-m753
- EUVD-2026-139826
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.
Text from the CVE.org record.
Recommendation
Cvelo has no version information for this record. Check the vendor advisory.
Affected
Red Hat Red Hat Enterprise Linux 10
No versions listed
Red Hat Red Hat Enterprise Linux 6
No versions listed
Red Hat Red Hat Enterprise Linux 7
No versions listed
Red Hat Red Hat Enterprise Linux 8
No versions listed
Red Hat Red Hat Enterprise Linux 9
No versions listed
Red Hat Red Hat Hardened Images
No versions listed
Red Hat Red Hat OpenShift Container Platform 4
No versions listed
Red Hat Red Hat OpenShift Container Platform 5
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.