Description
PocketSphinx through 5.1.1 contains heap buffer overflow vulnerabilities in its acoustic model, language model and feature transform loaders because file-supplied counts and indices go unvalidated. Attackers can supply crafted model files that trigger out-of-bounds reads and writes in bin_mdef_read, read_mixw, gauden_param_read, feat_read_lda and ngrams_raw_read_dmp, causing crashes or code execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| cmusphinx | pocketsphinx | 0 ≤5.1.1 | — |
References
- https://github.com/cmusphinx/pocketsphinx/blob/v5.1.1/src/bin_mdef.c#L486-L505
- https://github.com/cmusphinx/pocketsphinx/blob/v5.1.1/src/s2_semi_mgau.c#L1140-L1185
- https://github.com/cmusphinx/pocketsphinx/blob/v5.1.1/src/lm/ngrams_raw.c#L330-L351
- https://www.vulncheck.com/advisories/pocketsphinx-through-5.1.1-heap-buffer-overflow-via-model-file-parsers