제출 #1074225: Davide Nardella Snap7 <=1.4.3 (30f37da) Stack-based Buffer Overflow정보

제목Davide Nardella Snap7 <=1.4.3 (30f37da) Stack-based Buffer Overflow
설명snap7 up to 1.4.3 is affected. The function TS7Worker::PerformFunctionWrite in src/core/s7_server.cpp of the S7 server (WriteVar / Write Request handler) uses the client-controlled item count ReqParams->ItemsCount without any bounds check to index the fixed-size stack arrays ReqData (PReqFunWriteDataItem[MaxVars]) and ResData->Data (byte[MaxVars]), where MaxVars equals 20. The sibling handler PerformFunctionRead clamps this value to MaxVars; PerformFunctionWrite does not. A crafted S7 Write Request with an item count of up to 255 overflows these stack arrays, corrupting the stack frame. The attack can be launched remotely over the S7 / ISO-on-TCP protocol (TCP port 102) without authentication. Denial of service is certain and memory corruption with attacker-influenced pointer values cannot be excluded. This issue is distinct from CVE-2026-15105, which affects the ReadVar handler PerformFunctionRead in the same file. Fix: clamp ItemsCount to MaxVars at the start of PerformFunctionWrite, mirroring PerformFunctionRead.
원천⚠️ https://github.com/davenardella/snap7/issues/42
사용자
 GyuHyunJeon (UID 102740)
제출2026. 11. 04. AM 08:59 (24 날 ago)
모더레이션2026. 11. 27. PM 09:58 (24 days later)
상태수락
VulDB 항목445027 [davenardella snap7 까지 1.4.3 S7 Server WriteVar Request src/core/s7_server.cpp PerformFunctionWrite ItemsCount 메모리 손상]
포인트들20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!