CVE-2026-140038
JSON

5.1medium

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

Severity
5.1medium CVSS:3.1 by redhat
Exploit likelihood
0.18% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat

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.

Affected

Product or packageVersionsReported by
binutilsNot specifiedCVE List
gcc-toolset-15-binutilsNot specifiedCVE List
gcc-toolset-16-binutilsNot specifiedCVE List
gdbNot specifiedCVE List
mingw-binutilsNot specifiedCVE List
gcc-toolset-15-gdbNot specifiedCVE List
gcc-toolset-16-gdbNot specifiedCVE List
openshift/ose-rhel-coreos-8Not specifiedCVE List
openshift/ose-rhel-coreos-9Not specifiedCVE List
openshift/ose-rhel-coreos-10Not specifiedCVE List

Classification

CWE-377

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-140038 changed 2026-12-01CVE Terms of Use
NVDCVE-2026-140038 changed 2026-12-01Public domain