CVE-2026-140038
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 package | Versions | Reported by |
|---|---|---|
| binutils | Not specified | CVE List |
| gcc-toolset-15-binutils | Not specified | CVE List |
| gcc-toolset-16-binutils | Not specified | CVE List |
| gdb | Not specified | CVE List |
| mingw-binutils | Not specified | CVE List |
| gcc-toolset-15-gdb | Not specified | CVE List |
| gcc-toolset-16-gdb | Not specified | CVE List |
| openshift/ose-rhel-coreos-8 | Not specified | CVE List |
| openshift/ose-rhel-coreos-9 | Not specified | CVE List |
| openshift/ose-rhel-coreos-10 | Not specified | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-140038 changed 2026-12-01 | CVE Terms of Use |
| NVD | CVE-2026-140038 changed 2026-12-01 | Public domain |