{"id":"CVE-2026-58106","aliases":["EUVD-2026-67716","GHSA-9gcg-v8fg-39q8"],"status":"published","title":"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","description":"CVE-2025-40843 https://github.com/advisories/GHSA-5xf2-f6ch-6p8r  was fixed by replacing unchecked strcpy() with a bounded safe_strcpy() helper.\nAt ldlogger-tool-gcc.c:129 the destination passed to that helper is fullPath + 2, but the size\npassed down is the full PATH_MAX. safe_strcpy() is strncpy(), which NUL-pads the\ndestination out to the whole n, so this site writes 4096 bytes into the 4094 that remain — a\n2-byte stack overflow on every invocation, independent of the input path's length.\n\n\n\nThis issue affects CodeChecker: through 6.28.2.","severity":{"version":"4.0","score":2,"vector":"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","level":"low","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00166,"percentile":0.05965,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-787"],"published":"2026-08-28T12:46:57Z","modified":"2026-10-28T02:31:03Z","products":[{"vendor":"ericsson","product":"codechecker"}],"references":[{"url":"https://github.com/Ericsson/codechecker/security/advisories/GHSA-9gcg-v8fg-39q8","tags":["vendor-advisory","exploit","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58106.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58106","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-58106","title":"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","description":"CVE-2025-40843 https://github.com/advisories/GHSA-5xf2-f6ch-6p8r  was fixed by replacing unchecked strcpy() with a bounded safe_strcpy() helper.\nAt ldlogger-tool-gcc.c:129 the destination passed to that helper is fullPath + 2, but the size\npassed down is the full PATH_MAX. safe_strcpy() is strncpy(), which NUL-pads the\ndestination out to the whole n, so this site writes 4096 bytes into the 4094 that remain — a\n2-byte stack overflow on every invocation, independent of the input path's length.\n\n\n\nThis issue affects CodeChecker: through 6.28.2.","status":"published","published":"2026-08-28T12:46:57.863Z","modified":"2026-08-28T18:27:22.857Z","cvss":[{"version":"4.0","score":2,"vector":"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","level":"low","assessor":"cna"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T13:47:28.691429Z"}],"euvd":[{"id":"EUVD-2026-67716","description":"CVE-2025-40843 https://github.com/advisories/GHSA-5xf2-f6ch-6p8r  was fixed by replacing unchecked strcpy() with a bounded safe_strcpy() helper.\nAt ldlogger-tool-gcc.c:129 the destination passed to that helper is fullPath + 2, but the size\npassed down is the full PATH_MAX. safe_strcpy() is strncpy(), which NUL-pads the\ndestination out to the whole n, so this site writes 4096 bytes into the 4094 that remain — a\n2-byte stack overflow on every invocation, independent of the input path's length.\n\n\n\nThis issue affects CodeChecker: through 6.28.2.","status":"published","published":"2026-08-28T12:46:57Z","modified":"2026-08-28T18:27:22Z","cvss":[{"version":"4.0","score":2,"vector":"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","level":"low"}],"updated_at":"2026-11-02T18:01:22.759915Z"}],"nvd":[{"id":"CVE-2026-58106","description":"CVE-2025-40843 https://github.com/advisories/GHSA-5xf2-f6ch-6p8r  was fixed by replacing unchecked strcpy() with a bounded safe_strcpy() helper.\nAt ldlogger-tool-gcc.c:129 the destination passed to that helper is fullPath + 2, but the size\npassed down is the full PATH_MAX. safe_strcpy() is strncpy(), which NUL-pads the\ndestination out to the whole n, so this site writes 4096 bytes into the 4094 that remain — a\n2-byte stack overflow on every invocation, independent of the input path's length.\n\n\n\nThis issue affects CodeChecker: through 6.28.2.","status":"published","published":"2026-08-28T16:18:18.137Z","modified":"2026-09-01T21:07:58.98Z","cvss":[{"version":"4.0","score":2,"vector":"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:N/AU:Y/R:U/V:X/RE:L/U:Green","level":"low","assessor":"secondary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:12:42.366888Z"}],"osv":[{"id":"CVE-2026-58106","title":"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","description":"CVE-2025-40843 https://github.com/advisories/GHSA-5xf2-f6ch-6p8r  was fixed by replacing unchecked strcpy() with a bounded safe_strcpy() helper.\nAt ldlogger-tool-gcc.c:129 the destination passed to that helper is fullPath + 2, but the size\npassed down is the full PATH_MAX. safe_strcpy() is strncpy(), which NUL-pads the\ndestination out to the whole n, so this site writes 4096 bytes into the 4094 that remain — a\n2-byte stack overflow on every invocation, independent of the input path's length.\n\n\n\nThis issue affects CodeChecker: through 6.28.2.","status":"published","published":"2026-08-28T12:46:57.863Z","modified":"2026-10-28T02:31:03.686328237Z","cvss":[{"version":"4.0","score":2,"vector":"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","level":"low"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T15:45:12.016252Z"}]}}
