Files
git/builtin
Patrick Steinhardt d1bb66a546 builtin/clone: abort when hardlinked source and target file differ
When performing local clones with hardlinks we refuse to copy source
files which are symlinks as a mitigation for CVE-2022-39253. This check
can be raced by an adversary though by changing the file to a symlink
after we have checked it.

Fix the issue by checking whether the hardlinked destination file
matches the source file and abort in case it doesn't.

This addresses CVE-2024-32021.

Reported-by: Apple Product Security <product-security@apple.com>
Suggested-by: Linus Torvalds <torvalds@linuxfoundation.org>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2024-04-17 00:01:25 +02:00
..
2022-04-06 09:42:14 -07:00
2021-10-28 09:57:09 -07:00
2022-11-23 11:22:24 +09:00
2022-11-16 14:57:32 -05:00
2022-11-18 18:43:09 -05:00
2022-11-28 12:13:46 +09:00
2021-11-03 13:25:36 -07:00