Impact
The vulnerability is an off‑by‑one bounds check in the FreeModbus LINUXTCP port's xMBPortTCPPool function, which incorrectly permits payloads that exceed the defined 263‑byte MB_TCP_BUF_SIZE. This can cause a buffer overflow that may enable an attacker to overwrite memory and potentially execute arbitrary code. The flaw is categorized as CWE‑787.
Affected Systems
The issue affects the LINUXTCP implementation of FreeModbus from the cwalter‑at project. Any instance that compiles the referenced source file (demo/LINUXTCP/port/porttcp.c) is vulnerable. No specific version numbers are provided; any build containing the unpatched code is considered at risk.
Risk and Exploitability
The vulnerability carries a CVSS score of 9.1, indicating critical severity. The EPSS score of < 1% suggests a low probability of immediate exploitation, yet the lack of network‑level protection on Modbus TCP means that any host with network access to the port may send the malformed frame. The flaw is not yet listed in CISA's KEV catalog.
OpenCVE Enrichment