linenoise - Time-of-check Time-of-use Race Condition in linenoiseHistorySave
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.