CVE-2025-40843 https://github.com/advisories/GHSA-5xf2-f6ch-6p8r была исправлена путем замены непроверенного strcpy() ограниченным помощником Safe_strcpy().
В ldlogger-tool-gcc.c:129 пункт назначения, передаваемый этому помощнику, равен fullPath + 2, но размер
передается полный PATH_MAX. Safe_strcpy() — это strncpy(), который дополняет NUL
пункт назначения передается всему n, поэтому этот сайт записывает 4096 байт в оставшиеся 4094 байта —
2-байтовое переполнение стека при каждом вызове, независимо от длины входного пути.
Эта проблема затрагивает CodeChecker: до 6.28.2.
Показать оригинальное описание (EN)
CVE-2025-40843 https://github.com/advisories/GHSA-5xf2-f6ch-6p8r was fixed by replacing unchecked strcpy() with a bounded safe_strcpy() helper. At ldlogger-tool-gcc.c:129 the destination passed to that helper is fullPath + 2, but the size passed down is the full PATH_MAX. safe_strcpy() is strncpy(), which NUL-pads the destination out to the whole n, so this site writes 4096 bytes into the 4094 that remain — a 2-byte stack overflow on every invocation, independent of the input path's length. This issue affects CodeChecker: through 6.28.2.
Характеристики атаки
Последствия
Строка CVSS v4.0