Page MenuHomeVyOS Platform

Accel-ppp-ng: SSTP: heap overflow in HDLC escaping
Closed, ResolvedPublic

Description

Buffer overflow in HDLC escaping code at accel-pppd/ctrl/sstp/sstp.c:1806-1832, function sstp_recv_data_packet, the !PPP_SYNC branch
Output buffer is allocated as size*2 + 2 + PPP_FCSLEN, but the loop runs size + PPP_FCSLEN iterations, each able to emit 2 bytes, plus two PPP_FLAG bytes. Worst case is 2*size + 6, two bytes past the allocation.

Details

Version
-
Is it a breaking change?
Perfectly compatible
Issue type
Security vulnerability

Event Timeline

RC changed the task status from Open to In progress.
RC triaged this task as High priority.
Viacheslav moved this task from Need Triage to Completed on the VyOS Rolling board.