CVEfocus › CVE database › CVE-2025-9810

CVE-2025-9810TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes

CVSS 6.8 MediumEPSS 0.2% (higher than 4% of CVEs)Published 2025-09-01Updated 2026-04-22Assigner: CyberArk

TOCTOU  in linenoiseHistorySave in linenoise allows local attackers to overwrite arbitrary files and change permissions via a symlink race between fopen("w") on the history path and subsequent chmod() on the same path.

CWE-367

What to do

Red Hat has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fix pending
3Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Red Hat Enterprise Linux 10valkeyFix pending
Fix deferred
Red Hat Enterprise Linux 10valkey-develFix pending
Fix deferred
Red Hat Enterprise Linux 9redisFix pending
Fix deferred
Red Hat Enterprise Linux 9redis-develFix pending
Fix deferred
Red Hat Enterprise Linux 9redis-docFix pending
Fix deferred
Red Hat Enterprise Linux 9valkeyFix pending
Fix deferred
Red Hat Enterprise Linux 9valkey-develFix pending
Fix deferred
Red Hat Enterprise Linux 8redisWill not fix
Out of support scope
Red Hat Enterprise Linux 8redis-develWill not fix
Out of support scope
Red Hat Enterprise Linux 8redis-docWill not fix
Out of support scope

What the vendor says

As published in the CVE record by CyberArk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: call fchmod() on the fd instead of chmod() on the path

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.