Thai Duong via GNU coreutils Bug Reports <[email protected]> writes:

> We are reporting a race-condition issue in GNU coreutils (install).
>
> `install(1)` sets ownership with the no-follow `lchownat` but applies
> the mode with the symlink-following `chmodat` (`fchmodat(fd, file,
> mode, 0)`). A local user who owns the destination's parent directory
> can swap the just-installed file for a symlink in that window and
> redirect root's `chmod` (and, with `-p`, `utimensat`) to an arbitrary
> target (CWE-367 / CWE-59). The neighbouring ACL branch already bounds
> its copy; this path does not. Present at v9.12 and master, no CVE.
>
> The full write-up, including a working reproduction, is in the attached 
> report.
>
> This issue was found by Claude and verified by Calif.io engineers.

For future reference, please send security reports to
[email protected].

Thanks,
Collin



Reply via email to