mirror of https://github.com/asterisk/asterisk
Milliwatt is vulnerable to a remotely exploitable stack overrun when using the 'o' option. This occurs due to the milliwatt_generate function not accounting for AST_FRIENDLY_OFFSET when calculating the maximum number of samples it can put in the output buffer. This patch resolves this issue by taking into account AST_FRIENDLY_OFFSET when determining the maximum number of samples allowed. Note that at no point is remote code execution possible. The data that is written into the buffer is the pre-defined Milliwatt data, and not custom data. (closes issue ASTERISK-19541) Reported by: Russell Bryant Tested by: Matt Jordan Patches: milliwatt_stack_overrun.rev1.txt by Russell Bryant (license 6283) Note that this patch was written by Russell, even though Matt uploaded it git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@359645 65c4cc65-6c06-0410-ace0-fbb531ad65f31.6.2
parent
dcdc0e4c34
commit
84e00510c4
Loading…
Reference in new issue