Ericsson CodeChecker
cpe:2.3:a:ericsson:codechecker:*:*:*:*:*:*:*
- <= 6.26.1
A buffer overflow vulnerability has been identified in CodeChecker versions through 6.26.1. This issue arises in the internal ldlogger library, which is utilized by the CodeChecker log command. The vulnerability is caused by the unsafe use of the strcpy function, allowing attackers to overwrite the stack by providing crafted inputs from the command line. The destination buffer, which is stack-allocated and fixed at 4096 bytes, can be overflowed because strcpy is used without proper length validation.
Exploitation of this vulnerability leads to a buffer overflow, which can commonly result in arbitrary code execution or causing a program to crash.
The vulnerability can be reproduced by using the CodeChecker log command with a specially crafted payload that exceeds the buffer size. The example provided in the advisory illustrates this by generating a payload of 4090 bytes of 'A' characters, which is then sent as part of the command's arguments, overwriting the stack.
Users can upgrade to CodeChecker version 6.26.2 or later to address this vulnerability.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.