extract_signed_shortcut can be raced to overflow a heap buffer
Package
libshortcutsign
(misc)
Affected versions
4acc70eece6a07937a3e94978f8f4412763c59c5
Patched versions
140ae721b90f65d21258e7042189ecbcded390f8
Impact
extract_signed_shortcut has a race condition which may lead to a heap buffer overflow. This is as a file can be modified to be larger after binary_size is saved but before the bytes finish copying. This may result in the contents of the file being written past the buffer.
Patches
The issue has been patched in a recent commit on May 7 2024 EST. It can be viewed here: 140ae72