Skip to content
OpenAdvisories
Medium · 6.8 CVE-2025-9810 EUVD-2025-26353GHSA-rj4f-7f4c-6qh7

TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes

Published Sep 1, 2025 · Updated Apr 22, 2026 · Assigned by CyberArk

Description

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.

Affected products

VendorProductAffectedFixed
antirez linenoise — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 redis6 +2 6.2.14-2.amzn2023.0.7 ALAS2023-2025-1195

Advisories 1

References