| Название | Thomas Hergenhahn libnodave <=0.8.5 Stack-based Buffer Overflow |
|---|
| Описание | libnodave contains a stack-based buffer overflow in _daveReadISOPacket in nodave.c. The function reads the 4-byte TPKT header, takes the 16-bit length field (length = b[3] + 0x100*b[2]) directly from the wire, and then calls read(fd, b+4, length-4) into the fixed 2048-byte receive buffer msgIn (daveMaxRawLen) with no check that length fits the buffer. A malicious or compromised Siemens S7 PLC, or a man-in-the-middle on the ISO-on-TCP link (TCP/102), can announce a length up to 65535 and send that many bytes to overflow the buffer. This yields a remote, unauthenticated denial of service and, because attacker-controlled bytes are written past the buffer, potential code execution. This issue is distinct from the _daveSetupReceivedPDU out-of-bounds read. Fix: reject length > daveMaxRawLen (and length < 4) before the read. |
|---|
| Источник | ⚠️ https://sourceforge.net/p/libnodave/bugs/22/ |
|---|
| Пользователь | GyuHyunJeon (UID 102740) |
|---|
| Представление | 05.11.2026 04:10 (24 дни назад) |
|---|
| Модерация | 28.11.2026 22:15 (24 days later) |
|---|
| Статус | принято |
|---|
| Запись VulDB | 445135 [lettoz libnodave до 0.8.5 nodave.c _daveReadISOPacket повреждение памяти] |
|---|
| Баллы | 20 |
|---|