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 CVSS 4.0 · 2 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A buffer overflow originates from an off‑by‑two error in CodeChecker’s logging routine. The safe_strcpy helper is invoked with a destination pointer that points two bytes past the start of a 4094‑byte buffer while the size argument is the full PATH_MAX of 4096. Because safe_strcpy uses strncpy and zero‑pads the destination, 4096 bytes are written into a space that can only hold 4094, causing a deterministic 2‑byte stack overflow on every logging operation. The vulnerability is classified as CWE‑787, and no publicly documented remote code execution or privilege escalation has been reported.

Affected Systems

The flaw is present in Ericsson’s CodeChecker product versions up to and including 6.28.2.

Risk and Exploitability

The CVSS score of 2 reflects a low severity issue. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog. Based on the description, it is inferred that an attacker would need the ability to trigger CodeChecker logging—either through local code execution or by exploiting another component that runs CodeChecker—to force the overflow. The deterministic nature of the two‑byte overrun means that any such triggering event would corrupt stack data or cause a crash, but no remote attack vector is described.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a CodeChecker release newer than 6.28.2 in which the safe_strcpy call is corrected.
  • If an upgrade is not immediately feasible, disable or remove the ldlogger module or otherwise prevent CodeChecker from performing logging until the patch is applied.
  • Enable compiler stack protection such as –fstack-protector or use AddressSanitizer to detect any remaining overflows during development or testing.

Generated by OpenCVE AI on August 28, 2026 at 17:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Ericsson
Ericsson codechecker
Vendors & Products Ericsson
Ericsson codechecker
Type Values Removed Values Added
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.
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
Weaknesses CWE-787
References
Metrics cvssV4_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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
ERIC
Published
Updated
Aug 28, 2026, 6:27 PM
Reserved
Jun 29, 2026, 10:41 AM
Status
Deferred
Published
Aug 28, 2026, 4:18 PM
Modified
Sep 1, 2026, 9:07 PM