{"id":"CVE-2026-58106","state":"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.","publishedAt":"2026-08-28T12:46:57.863Z","updatedAt":"2026-08-28T18:27:22.857Z","severity":{"score":2,"label":"Low","version":"4.0","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","source":"ERIC"},"assigner":"ERIC","products":["Ericsson CodeChecker"],"affected":[{"vendor":"Ericsson","product":"CodeChecker","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"6.28.2","versionType":"python"}]}],"references":["https://github.com/Ericsson/codechecker/security/advisories/GHSA-9gcg-v8fg-39q8"],"weaknesses":["CWE-787"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/58xxx/CVE-2026-58106.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-58106","state":"PUBLISHED","datePublished":"2026-08-28T12:46:57.863Z","dateUpdated":"2026-08-28T18:27:22.857Z","assignerShortName":"ERIC","assignerOrgId":"85b1779b-6ecd-4f52-bcc5-73eac4659dcf","dateReserved":"2026-06-29T10:41:35.472Z"},"containers":{"cna":{"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","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Ericsson","product":"CodeChecker","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"6.28.2","versionType":"python"}]}],"references":[{"url":"https://github.com/Ericsson/codechecker/security/advisories/GHSA-9gcg-v8fg-39q8","tags":["vendor-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","subIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"PROOF_OF_CONCEPT","Safety":"NEGLIGIBLE","Automatable":"YES","Recovery":"USER","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"LOW","providerUrgency":"GREEN","version":"4.0","baseSeverity":"LOW","baseScore":2,"vectorString":"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"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-787","lang":"en","description":"CWE-787 Out-of-bounds write","type":"CWE"}]}],"providerMetadata":{"shortName":"ERIC","orgId":"85b1779b-6ecd-4f52-bcc5-73eac4659dcf","dateUpdated":"2026-08-28T12:46:57.863Z"},"tags":["x_open-source"],"credits":[{"lang":"en","value":"Fatullayev Asadbek","type":"finder"}],"source":{"discovery":"INTERNAL"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/Ericsson/codechecker/security/advisories/GHSA-9gcg-v8fg-39q8","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-28T18:26:51.164522Z","id":"CVE-2026-58106","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-28T18:27:22.857Z"}}]}}}