CVE-2026-140038 - Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber
Vulnerability · Reported by NVD · · CWE-377
- Severity
- Medium Risk score 51/100
- CVSS
- 5.1 v3.1 · from NVD
- Exploit chance (EPSS)
- – Not available yet
- Known exploited
- No Not in CISA KEV
Summary
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.
How this vulnerability can be exploited
An attacker can exploit this vulnerability with local access to the system, without any login, and without any action from a user. Attack complexity is low, so no special conditions are needed.
Is it being exploited?
There is no public evidence of active exploitation yet. Monitor for exploit releases, especially if the product is internet-facing.
Patch priority and what to do
Patch during routine updates. Lower severity, but keep it on your list. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Review logs for signs of exploitation since the publication date.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Tags
CVE-2026-140038
Sources & references
- Original article / advisory (NVD) ↗
- NIST NVD: CVE-2026-140038 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
How this data is collected: methodology & sources.