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

- Severity: Medium 5.1 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-12-01T02:09:55.152Z
- Modified: 2026-12-01T14:18:19.720Z
- Weaknesses: CWE-377
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- binutils: no versions given
- gcc-toolset-15-binutils: no versions given
- gcc-toolset-16-binutils: no versions given
- gdb: no versions given
- mingw-binutils: no versions given
- gcc-toolset-15-gdb: no versions given
- gcc-toolset-16-gdb: no versions given
- openshift/ose-rhel-coreos-8: no versions given
- openshift/ose-rhel-coreos-9: no versions given
- openshift/ose-rhel-coreos-10: no versions given

## References

- <https://access.redhat.com/security/cve/CVE-2026-140038> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2465392> (issue-tracking)

## Sources

- CVE List: [CVE-2026-140038](https://www.cve.org/CVERecord?id=CVE-2026-140038), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-140038](https://nvd.nist.gov/vuln/detail/CVE-2026-140038), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-140038 · Whole record: https://cve.day/CVE-2026-140038.json · Rebuilt by cve.day 2026-12-01T14:32:16.814Z
