CVE-2026-58106: Incomplete fix for CVE-2025-40843: safe_strcpy is called with PATH_MAX into fullPath+2, writing 2 bytes past the buffer on every CodeChecker log invocation

Published Aug 28, 2026
·
Updated

CVE-2025-40843 https://github.com/advisories/GHSA-5xf2-f6ch-6p8r  was fixed by replacing unchecked strcpy() with a bounded safestrcpy() helper. At ldlogger-tool-gcc.c:129 the destination passed to that helper is fullPath + 2, but the size passed down is the full PATHMAX. safestrcpy() 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.

Affected Software

1 affected component
CodeChecker<=6.28.2

Event History

Aug 28, 2026
CVE Published
via MITRE·12:46 PM
Data Sourced
via MITRE·12:46 PM
DescriptionWeakness

Frequently Asked Questions

1

Which CodeChecker versions are affected?

CodeChecker versions through 6.28.2 are affected.

2

Does exploitation depend on supplying an unusually long path?

No. The overflow occurs on every CodeChecker log invocation regardless of the input path length, because the copy routine NUL-pads to PATH_MAX bytes while only PATH_MAX minus 2 bytes remain in the destination.

3

How large is the overflow?

The operation writes 4096 bytes into a destination with 4094 bytes remaining, causing a 2-byte stack overflow.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203