Submeter #1075420: Thomas Hergenhahn libnodave <=0.8.5 Stack-based Buffer Overflowinformação

TítuloThomas Hergenhahn libnodave <=0.8.5 Stack-based Buffer Overflow
Descriçãolibnodave 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.
Fonte⚠️ https://sourceforge.net/p/libnodave/bugs/22/
Utilizador
 GyuHyunJeon (UID 102740)
Submissão05/11/2026 04h10 (há 24 dias)
Moderação28/11/2026 22h15 (24 days later)
EstadoAceite
Entrada VulDB445135 [lettoz libnodave até 0.8.5 nodave.c _daveReadISOPacket Excesso de tampão]
Pontos20

Interested in the pricing of exploits?

See the underground prices here!