# 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

- Severity: Low 2.0 (CVSS:4.0, scored by ERIC) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:P/S:N/AU:Y/R:U/RE:L/U:Green`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-28T12:46:57.863Z
- Modified: 2026-09-01T21:07:58.980Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: ERIC

## Description

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.

(As written by CVE List.)

## Affected

- Ericsson CodeChecker: up to 6.28.2

## References

- <https://github.com/Ericsson/codechecker/security/advisories/GHSA-9gcg-v8fg-39q8> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2026-58106](https://www.cve.org/CVERecord?id=CVE-2026-58106), CVE Terms of Use, modified 2026-08-28
- NVD: [CVE-2026-58106](https://nvd.nist.gov/vuln/detail/CVE-2026-58106), Public domain, modified 2026-09-01

---

Page: https://cve.day/CVE-2026-58106 · Whole record: https://cve.day/CVE-2026-58106.json · Rebuilt by cve.day 2026-11-25T22:59:35.652Z
