Asterisk: Possible RED T.140 Generation Accumulation OOB Write
The advisory, in context
Asterisk is an open source private branch exchange and telephony toolkit. In affected deployments, an authenticated attacker may cause a T.140 RED out-of-bounds write during generation accumulation using carefully crafted packets, potentially allowing remote code execution or causing Asterisk to crash. The chan_sip channel driver must be installed and configured, and its textsupport option must be enabled; textsupport defaults to no. The chan_sip driver was deprecated in Asterisk 20 and completely removed in all later versions. Repository comparisons verify patch containment in Asterisk 20.20.1, 21.12.3, 22.10.1 and 23.4.1, and Certified Asterisk 20.7-cert11 and 22.8-cert3. The affected release-track scope remains unresolved: structured metadata includes later release tracks even though the advisory says the required chan_sip driver was removed there.
Affected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
References
- https://github.com/asterisk/asterisk/security/advisories/GHSA-j2mm-57pq-jh94
- https://github.com/asterisk/asterisk/commit/0601c33d4edf8c8f221de91cead59460fb1e7180
- https://github.com/asterisk/asterisk/commit/111487298a954a029daae941eac423f0609b1261
- https://github.com/asterisk/asterisk/commit/536218a86b797996e8e8844deacc8207de373701
- https://github.com/asterisk/asterisk/commit/a89b61d7c756f816c7fa5327ead9e889f1531202
- https://github.com/asterisk/asterisk/commit/eaa108c68a32c080d7a168ef1d8bf784d5d830f4
- https://github.com/asterisk/asterisk/commit/eef894282be203cb9e6d8e9692e9c360a0b569b4
- https://github.com/asterisk/asterisk/commit/fde69a1f3ff17f507a1578ae27b528f43ceb5efd
- https://github.com/asterisk/asterisk/releases/tag/20.20.1
- https://github.com/asterisk/asterisk/releases/tag/21.12.3
- https://github.com/asterisk/asterisk/releases/tag/22.10.1
- https://github.com/asterisk/asterisk/releases/tag/23.4.1
- https://github.com/asterisk/asterisk/releases/tag/certified-20.7-cert11
- https://github.com/asterisk/asterisk/releases/tag/certified-22.8-cert3
- https://github.com/asterisk/asterisk/tree/24.0.0-pre1