Description
libvorbis through 1.3.7 contains a stack buffer overflow vulnerability in _ov_getlap() in lib/vorbisfile.c that passes a negative sample count from vorbis_synthesis_lapout() to memcpy(). Attackers can supply a short, valid Ogg Vorbis file with suitable block sizes to overwrite stack frames and crash applications performing two consecutive lapped seeks.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Xiph.Org | libvorbis | ≤ 1.3.7 | — |
References
- https://gitlab.xiph.org/xiph/vorbis/-/merge_requests/52 issue-tracking
- https://github.com/xiph/vorbis/pull/136 issue-tracking patch
- https://github.com/xiph/vorbis/pull/139 issue-tracking patch
- https://github.com/xiph/vorbis/blob/v1.3.7/lib/vorbisfile.c#L2242 technical-description
- https://github.com/xiph/vorbis/blob/v1.3.7/lib/block.c#L1034 technical-description
- VulnCheck Advisory: libvorbis through 1.3.7 Stack Buffer Overflow via _ov_getlap third-party-advisory