Description
A res_pjsip_session crash was discovered in Asterisk Open Source 13.x before 13.37.1, 16.x before 16.14.1, 17.x before 17.8.1, and 18.x before 18.0.1. and Certified Asterisk before 16.8-cert5. Upon receiving a new SIP Invite, Asterisk did not return the created dialog locked or referenced. This caused a gap between the creation of the dialog object, and its next use by the thread that created it. Depending on some off-nominal circumstances and timing, it was possible for another thread to free said dialog in this gap. Asterisk could then crash when the dialog object, or any of its dependent objects, were dereferenced or accessed next by the initial-creation thread. Note, however, that this crash can only occur when using a connection-oriented protocol (e.g., TCP or TLS, but not UDP) for SIP transport. Also, the remote client must be authenticated, or Asterisk must be configured for anonymous calling.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | asterisk | 1:16.15.0~dfsg-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | asterisk | No fix yet | — |
| Ubuntu 18.04 LTS | asterisk | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | asterisk | No fix yet | — |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | asterisk | 18.0.1-r0 | — |
| Alpine v3.23 | asterisk | 18.0.1-r0 | — |
| Alpine v3.22 | asterisk | 18.0.1-r0 | — |
| Alpine v3.21 | asterisk | 18.0.1-r0 | — |
| Alpine v3.20 | asterisk | 18.0.1-r0 | — |
Show 8 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | asterisk | 18.0.1-r0 | — |
| Alpine v3.18 | asterisk | 18.0.1-r0 | — |
| Alpine v3.17 | asterisk | 18.0.1-r0 | — |
| Alpine v3.16 | asterisk | 18.0.1-r0 | — |
| Alpine v3.15 | asterisk | 18.0.1-r0 | — |
| Alpine v3.14 | asterisk | 18.0.1-r0 | — |
| Alpine v3.13 | asterisk | 18.0.1-r0 | — |
| Alpine v3.12 | asterisk | 16.14.1-r0 | — |