CVE-2026-140038
Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber
- Severity
- medium CVSS 5.1 (v3.1)
- Affects
- Red Hat Enterprise Linux 10 · Red Hat
- Weakness
- CWE-377: Insecure Temporary File
- Published
- 1 December 2026 by redhat
- First seen on our lists
- 3 December 2026
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.
Our coverage
We have not written about this one. Know why it matters? Send a tip.
On the lists
- Commit: Fix potentially exploitable directory name in gprofng