Debian Codegraph @

ChangeLogs/ChangeLog-22.10.1.md

raw symbols SCIP
1
2 ## Change Log for Release asterisk-22.10.1
3
4 ### Links:
5
6 - [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-22.10.1.html)
7 - [GitHub Diff](https://github.com/asterisk/asterisk/compare/22.10.0...22.10.1)
8 - [Tarball](https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-22.10.1.tar.gz)
9 - [Downloads](https://downloads.asterisk.org/pub/telephony/asterisk)
10
11 ### Summary:
12
13 - Commits: 19
14 - Commit Authors: 6
15 - Issues Resolved: 0
16 - Security Advisories Resolved: 20
17 - [GHSA-3g56-cgrh-95p5](https://github.com/asterisk/asterisk/security/advisories/GHSA-3g56-cgrh-95p5): chan_unistim DIALPAGE digit handling can overflow phone_number and crash Asterisk
18 - [GHSA-3rhj-hhw7-m6fw](https://github.com/asterisk/asterisk/security/advisories/GHSA-3rhj-hhw7-m6fw): NULL Pointer Dereference in HTTP AMI Digest Authentication
19 - [GHSA-4pgv-j3mr-3rcp](https://github.com/asterisk/asterisk/security/advisories/GHSA-4pgv-j3mr-3rcp): Reflected XSS in Phone Provisioning HTTP Error Pages
20 - [GHSA-589g-qgf8-m6mx](https://github.com/asterisk/asterisk/security/advisories/GHSA-589g-qgf8-m6mx): Stack buffer overflow in MWI NOTIFY Message-Account parsing
21 - [GHSA-746q-794h-cc7f](https://github.com/asterisk/asterisk/security/advisories/GHSA-746q-794h-cc7f): Out-of-Bounds Read in Q.931 Information Element Parser (H.323 Addon)
22 - [GHSA-8jhw-m2hg-vp3h](https://github.com/asterisk/asterisk/security/advisories/GHSA-8jhw-m2hg-vp3h): Heap Buffer Overflow in OGG/Speex File Playback (format_ogg_speex)
23 - [GHSA-8jw3-ccr9-xrmf](https://github.com/asterisk/asterisk/security/advisories/GHSA-8jw3-ccr9-xrmf): Buffer over-read in Asterisk PJSIP MWI body parser
24 - [GHSA-g8q2-p36q-94f6](https://github.com/asterisk/asterisk/security/advisories/GHSA-g8q2-p36q-94f6): Heap-use-after-free in Asterisk PJSIP TCP/SDP handling when TCP connection closes during SDP processing
25 - [GHSA-h5hv-jmgj-92q2](https://github.com/asterisk/asterisk/security/advisories/GHSA-h5hv-jmgj-92q2): CVE-2022-37325 fix is absent from current chan_ooh323 Q.931 party-number parser
26 - [GHSA-j2mm-57pq-jh94](https://github.com/asterisk/asterisk/security/advisories/GHSA-j2mm-57pq-jh94): Possible RED T.140 Generation Accumulation OOB Write
27 - [GHSA-mxgm-8c6f-5p8f](https://github.com/asterisk/asterisk/security/advisories/GHSA-mxgm-8c6f-5p8f): Stack buffer overflow in res_xmpp XMPP namespace prefix handling
28 - [GHSA-ph27-3m5q-mj5m](https://github.com/asterisk/asterisk/security/advisories/GHSA-ph27-3m5q-mj5m): SQL Injection in cel_pgsql and cel_tds via CELGenUserEvent eventtype Field
29 - [GHSA-q9fr-m7g8-6ph5](https://github.com/asterisk/asterisk/security/advisories/GHSA-q9fr-m7g8-6ph5): Asterisk app_sms.c copies externally controlled SMS lengths into fixed in-struct buffers
30 - [GHSA-qf8j-jp7h-c5hx](https://github.com/asterisk/asterisk/security/advisories/GHSA-qf8j-jp7h-c5hx): Out-of-Bounds Write in Codec2 Decoder Due to Floor/Ceil Sample Count Mismatch
31 - [GHSA-r6c2-hwc2-j4mp](https://github.com/asterisk/asterisk/security/advisories/GHSA-r6c2-hwc2-j4mp): LDAP Filter Injection in res_config_ldap via SIP Username (Unauthenticated Information Disclosure)
32 - [GHSA-vfhr-r9x9-c687](https://github.com/asterisk/asterisk/security/advisories/GHSA-vfhr-r9x9-c687): Possible RED T.140 Heap Buffer Overflow
33 - [GHSA-vrfp-mg3q-3959](https://github.com/asterisk/asterisk/security/advisories/GHSA-vrfp-mg3q-3959): ARI setChannelVar bypasses live_dangerously and permits FILE() writes
34 - [GHSA-wcvv-g26m-wx5c](https://github.com/asterisk/asterisk/security/advisories/GHSA-wcvv-g26m-wx5c): ARI REST-over-WebSocket read-only bypass allows arbitrary module path load and conditional RCE
35 - [GHSA-x348-j6c9-77f3](https://github.com/asterisk/asterisk/security/advisories/GHSA-x348-j6c9-77f3): Stack Buffer Overflow in H.323 ooTrace() via Unbounded vsprintf into Fixed 2048-byte Buffer
36 - [GHSA-xgj6-2gc5-5x9c](https://github.com/asterisk/asterisk/security/advisories/GHSA-xgj6-2gc5-5x9c): ast_loggrabber executes python script in world writable directory(`/tmp`) leading to potential privilege escalation And RCE
37
38 ### User Notes:
39
40
41 ### Upgrade Notes:
42
43
44 ### Developer Notes:
45
46 - #### ARI: Make ARI applications respect live_dangerously.
47 ARI applications can no longer call "dangerous" dialplan
48 functions like DB(), FILE(), SHELL(), CURL(), STAT(), etc. without
49 enabling "live_dangerously" in asterisk.conf.
50 Resolves: #GHSA-vrfp-mg3q-3959
51
52
53 ### Commit Authors:
54
55 - George Joseph: (6)
56 - Mike Bradeen: (3)
57 - Milan Kyselica: (7)
58 - Pengpeng Hou: (1)
59 - Roberto Paleari: (1)
60 - ThatTotallyRealMyth: (1)
61
62 ## Issue and Commit Detail:
63
64 ### Closed Issues:
65
66 - !GHSA-3g56-cgrh-95p5: chan_unistim DIALPAGE digit handling can overflow phone_number and crash Asterisk
67 - !GHSA-3rhj-hhw7-m6fw: NULL Pointer Dereference in HTTP AMI Digest Authentication
68 - !GHSA-4pgv-j3mr-3rcp: Reflected XSS in Phone Provisioning HTTP Error Pages
69 - !GHSA-589g-qgf8-m6mx: Stack buffer overflow in MWI NOTIFY Message-Account parsing
70 - !GHSA-746q-794h-cc7f: Out-of-Bounds Read in Q.931 Information Element Parser (H.323 Addon)
71 - !GHSA-8jhw-m2hg-vp3h: Heap Buffer Overflow in OGG/Speex File Playback (format_ogg_speex)
72 - !GHSA-8jw3-ccr9-xrmf: Buffer over-read in Asterisk PJSIP MWI body parser
73 - !GHSA-g8q2-p36q-94f6: Heap-use-after-free in Asterisk PJSIP TCP/SDP handling when TCP connection closes during SDP processing
74 - !GHSA-h5hv-jmgj-92q2: CVE-2022-37325 fix is absent from current chan_ooh323 Q.931 party-number parser
75 - !GHSA-j2mm-57pq-jh94: Possible RED T.140 Generation Accumulation OOB Write
76 - !GHSA-mxgm-8c6f-5p8f: Stack buffer overflow in res_xmpp XMPP namespace prefix handling
77 - !GHSA-ph27-3m5q-mj5m: SQL Injection in cel_pgsql and cel_tds via CELGenUserEvent eventtype Field
78 - !GHSA-q9fr-m7g8-6ph5: Asterisk app_sms.c copies externally controlled SMS lengths into fixed in-struct buffers
79 - !GHSA-qf8j-jp7h-c5hx: Out-of-Bounds Write in Codec2 Decoder Due to Floor/Ceil Sample Count Mismatch
80 - !GHSA-r6c2-hwc2-j4mp: LDAP Filter Injection in res_config_ldap via SIP Username (Unauthenticated Information Disclosure)
81 - !GHSA-vfhr-r9x9-c687: Possible RED T.140 Heap Buffer Overflow
82 - !GHSA-vrfp-mg3q-3959: ARI setChannelVar bypasses live_dangerously and permits FILE() writes
83 - !GHSA-wcvv-g26m-wx5c: ARI REST-over-WebSocket read-only bypass allows arbitrary module path load and conditional RCE
84 - !GHSA-x348-j6c9-77f3: Stack Buffer Overflow in H.323 ooTrace() via Unbounded vsprintf into Fixed 2048-byte Buffer
85 - !GHSA-xgj6-2gc5-5x9c: ast_loggrabber executes python script in world writable directory(`/tmp`) leading to potential privilege escalation And RCE
86
87 ### Commits By Author:
88
89 - #### George Joseph (6):
90 - chan_unistim.c: Prevent overrun of phone_number field.
91 - res_ari: Ensure read-only users are properly authorized via REST Over WebSocket.
92 - pjsip_message_filter: Use pj_strdup instead of pj_strassign to save local address.
93 - ooh323c/ooq931.c: Ensure ooQ931Decode doesn't run out-of-bounds.
94 - ARI: Make ARI applications respect live_dangerously.
95 - res_rtp_asterisk.c: Address 2 potential T.140 RED buffer overruns.
96
97 - #### Mike Bradeen (3):
98 - ooh323c: not checking for IE minimum length
99 - manager: Use remote address in user error logging
100 - ooh323: Prevent potential buffer overflow in trace logging
101
102 - #### Milan Kyselica (7):
103 - res_xmpp: Fix stack buffer overflow in namespace prefix handling
104 - res_pjsip_pubsub: Add width limit to sscanf in MWI NOTIFY parser
105 - res_config_ldap: Escape LDAP filter values per RFC 4515
106 - cel_pgsql, cel_tds: Escape eventtype field to prevent SQL injection
107 - http: Escape error page text to prevent reflected XSS
108 - codec_codec2: Only process complete Codec2 frames in decoder
109 - format_ogg_speex: Add bounds check to prevent heap buffer overflow
110
111 - #### Pengpeng Hou (1):
112 - app_sms: Bound protocol 1 SMS unpacking to fixed-size buffers
113
114 - #### Roberto Paleari (1):
115 - res/res_pjsip_pubsub.c: Fix buffer over-read in MWI body parser
116
117 - #### ThatTotallyRealMyth (1):
118 - ast_loggrabber: Install the ast_tsconvert.py script to a secure temp directory.
119
120 ### Commit List:
121
122 - ast_loggrabber: Install the ast_tsconvert.py script to a secure temp directory.
123 - chan_unistim.c: Prevent overrun of phone_number field.
124 - ooh323c: not checking for IE minimum length
125 - res_ari: Ensure read-only users are properly authorized via REST Over WebSocket.
126 - pjsip_message_filter: Use pj_strdup instead of pj_strassign to save local address.
127 - ooh323c/ooq931.c: Ensure ooQ931Decode doesn't run out-of-bounds.
128 - ARI: Make ARI applications respect live_dangerously.
129 - res_rtp_asterisk.c: Address 2 potential T.140 RED buffer overruns.
130 - res/res_pjsip_pubsub.c: Fix buffer over-read in MWI body parser
131 - manager: Use remote address in user error logging
132 - ooh323: Prevent potential buffer overflow in trace logging
133 - app_sms: Bound protocol 1 SMS unpacking to fixed-size buffers
134 - res_xmpp: Fix stack buffer overflow in namespace prefix handling
135 - res_pjsip_pubsub: Add width limit to sscanf in MWI NOTIFY parser
136 - res_config_ldap: Escape LDAP filter values per RFC 4515
137 - cel_pgsql, cel_tds: Escape eventtype field to prevent SQL injection
138 - http: Escape error page text to prevent reflected XSS
139 - codec_codec2: Only process complete Codec2 frames in decoder
140 - format_ogg_speex: Add bounds check to prevent heap buffer overflow
141
142 ### Commit Details:
143
144 #### ast_loggrabber: Install the ast_tsconvert.py script to a secure temp directory.
145 Author: ThatTotallyRealMyth
146 Date: 2026-03-19
147
148 The ast_tsconvert.py script called by ast_loggrabber is now installed in a
149 temporary directory that isn't world readable or writable.
150
151 Resolves: #GHSA-xgj6-2gc5-5x9c
152
153 #### chan_unistim.c: Prevent overrun of phone_number field.
154 Author: George Joseph
155 Date: 2026-06-15
156
157 Add a check to key_dial_page() to ensure that dialed digits won't overrun
158 the phone_number field.
159
160 Resolves: #GHSA-3g56-cgrh-95p5
161
162 #### ooh323c: not checking for IE minimum length
163 Author: Mike Bradeen
164 Date: 2022-06-06
165
166 When decoding q.931 encoded calling/called number
167 now checking for length being less than minimum required.
168
169 Resolves: #GHSA-h5hv-jmgj-92q2
170
171 #### res_ari: Ensure read-only users are properly authorized via REST Over WebSocket.
172 Author: George Joseph
173 Date: 2026-06-12
174
175 The REST over WebSocket path now properly prevents non-GET methods from
176 being executed on inbound WebSockets.
177
178 * The query parameters from the original incoming GET request that caused the
179 upgrade to WebSocket are now passed to all REST requests that come from the
180 client. This ensures that if the client authenticated with a read-only
181 userid using the "api_key" query_string parameter, REST requests coming
182 in over the WebSocket will only be able to execute GETs on resources.
183 The HTTP headers were already passed to the REST requests so if the
184 client had authenticated via an "Authorization" it was properly handled.
185
186 * New tests have been added to test_ari.c to check that read-only users
187 are properly denied access to resources using non-GET methods. Several
188 memory leaks were also squashed.
189
190 Resolves: #GHSA-wcvv-g26m-wx5c
191
192 #### pjsip_message_filter: Use pj_strdup instead of pj_strassign to save local address.
193 Author: George Joseph
194 Date: 2026-06-10
195
196 The filter_on_tx_message() function was using pj_strassign() to save the pointer
197 of the pjproject transport local address to a local pj_str_t variable. That
198 variable was ultimately used to set the Contact header's uri->host and the SDP
199 connection attribute's address again using pj_strassign. pj_strassign() doesn't
200 copy the actual value of the pj_str_t however, it just copies the pointer so
201 if a connection-oriented transport is disconnected before the 200 OK with the
202 SDP is sent, those pointers will be invalid which can cause use-after-free
203 issues. To prevent this, filter_on_tx_message() now uses pj_strdup with the
204 tdata->pool as the backing store to save the local IP address to the local
205 variable. pj_strassign() can then be used safely later on since the tdata
206 will be available for the life of the transaction.
207
208 Resolves: #GHSA-g8q2-p36q-94f6
209
210 #### ooh323c/ooq931.c: Ensure ooQ931Decode doesn't run out-of-bounds.
211 Author: George Joseph
212 Date: 2026-06-02
213
214 Several bounds checks have been edded to ooQ931Decode to prevent it from
215 running past the end of the data buffer when parsing information elements.
216
217 Resolves: #GHSA-746q-794h-cc7f
218
219 #### ARI: Make ARI applications respect live_dangerously.
220 Author: George Joseph
221 Date: 2026-05-21
222
223 DeveloperNote: ARI applications can no longer call "dangerous" dialplan
224 functions like DB(), FILE(), SHELL(), CURL(), STAT(), etc. without
225 enabling "live_dangerously" in asterisk.conf.
226
227 Resolves: #GHSA-vrfp-mg3q-3959
228
229 #### res_rtp_asterisk.c: Address 2 potential T.140 RED buffer overruns.
230 Author: George Joseph
231 Date: 2026-04-27
232
233 * Add check to red_t140_to_red() to ensure that the new primary payload
234 can't cause the rtp_red->len array items to wrap or cause an overrun of
235 the rtp_red->t140red_data buffer.
236
237 * Add check to rtp_red_buffer() to ensure that a T.140 frame to be sent
238 can't cause rtp_red->len array items to wrap or cause an overrun of
239 the rtp_red->buf_data buffer.
240
241 Resolves: #GHSA-vfhr-r9x9-c687
242 Resolves: #GHSA-j2mm-57pq-jh94
243
244 #### res/res_pjsip_pubsub.c: Fix buffer over-read in MWI body parser
245 Author: Roberto Paleari
246 Date: 2026-04-29
247
248 Add constraint checks to prevent unauthenticated users from crashing Asterisk
249 instance by sending a crafted inbound SIP NOTIFY request with "Content-Type:
250 application/simple-message-summary".
251
252 Resolves: #GHSA-8jw3-ccr9-xrmf
253
254 #### manager: Use remote address in user error logging
255 Author: Mike Bradeen
256 Date: 2026-03-30
257
258 To avoid a potential null dereference use the remote address
259 in error logging when there is no user or the user acl fails.
260
261 Resolves: #GHSA-3rhj-hhw7-m6fw
262
263 #### ooh323: Prevent potential buffer overflow in trace logging
264 Author: Mike Bradeen
265 Date: 2026-03-31
266
267 Replace a call to vsprintf with a call to ast_vasprintf to
268 prevent a possible buffer overflow.
269
270 Resolves: #GHSA-x348-j6c9-77f3
271
272 #### app_sms: Bound protocol 1 SMS unpacking to fixed-size buffers
273 Author: Pengpeng Hou
274 Date: 2026-04-01
275
276 The protocol 1 unpack helpers trusted externally controlled lengths and wrote
277 them directly into fixed-size buffers in sms_t. Clamp the address, header,
278 and body copies to the destination array sizes so malformed messages cannot
279 overwrite adjacent state.
280
281 Resolves: #GHSA-q9fr-m7g8-6ph5
282
283 #### res_xmpp: Fix stack buffer overflow in namespace prefix handling
284 Author: Milan Kyselica
285 Date: 2026-03-26
286
287 The snprintf size parameter in xmpp_action_hook() is computed from
288 the attacker-controlled namespace prefix length and is not bounded
289 by the 256-byte stack buffer size. When a remote XMPP peer sends a
290 stanza with a child element whose namespace prefix exceeds 249
291 characters, snprintf writes past the buffer boundary.
292
293 Use sizeof(attr) as the snprintf size limit and %.*s precision to
294 extract only the prefix portion of the element name, preserving
295 the original truncation behavior for valid inputs.
296
297 Resolves: #GHSA-mxgm-8c6f-5p8f
298
299 #### res_pjsip_pubsub: Add width limit to sscanf in MWI NOTIFY parser
300 Author: Milan Kyselica
301 Date: 2026-03-24
302
303 The parse_simple_message_summary() function uses sscanf with an
304 unbounded %s format specifier to parse the Message-Account field
305 from incoming SIP NOTIFY bodies into a fixed-size 512-byte stack
306 buffer (PJSIP_MAX_URL_SIZE). A single unauthenticated SIP NOTIFY
307 with a Message-Account value exceeding 512 bytes overflows the
308 buffer, corrupting adjacent stack data and permanently disabling
309 the PJSIP transport layer without crashing the process.
310
311 Add a width specifier (%511s) to limit the sscanf write to
312 PJSIP_MAX_URL_SIZE - 1 bytes plus the NUL terminator, matching
313 the destination buffer size.
314
315 Resolves: #GHSA-589g-qgf8-m6mx
316
317 #### res_config_ldap: Escape LDAP filter values per RFC 4515
318 Author: Milan Kyselica
319 Date: 2026-03-23
320
321 The LDAP realtime driver constructs search filters by directly
322 concatenating user-supplied values without RFC 4515 escaping.
323 When LDAP is used as a realtime backend for endpoint
324 identification, characters with special meaning in LDAP filters
325 (*, (, ), \) can be injected via the SIP From header username.
326
327 Add ldap_filter_escape_value() that escapes RFC 4515 special
328 characters to their \HH hex representation, and apply it to
329 non-LIKE query values. The LIKE query path preserves the existing
330 wildcard conversion behavior with a note for maintainers.
331
332 Resolves: #GHSA-r6c2-hwc2-j4mp
333
334 #### cel_pgsql, cel_tds: Escape eventtype field to prevent SQL injection
335 Author: Milan Kyselica
336 Date: 2026-03-23
337
338 The eventtype column handler in cel_pgsql.c inserts
339 record.user_defined_name directly into the SQL query without
340 calling PQescapeStringConn(), while all other string fields in
341 the same function are properly escaped. Similarly, cel_tds.c
342 passes the raw user_defined_name into the SQL INSERT without
343 routing it through anti_injection(), while all other fields are
344 processed through that function.
345
346 For cel_pgsql.c, escape the eventtype value using
347 PQescapeStringConn(), matching the existing pattern used for all
348 other string fields at lines 308-331 of the same function.
349
350 For cel_tds.c, route the eventtype value through
351 anti_injection() consistent with how all other fields are handled
352 in the same function.
353
354 Resolves: #GHSA-ph27-3m5q-mj5m
355
356 #### http: Escape error page text to prevent reflected XSS
357 Author: Milan Kyselica
358 Date: 2026-04-08
359
360 The text parameter in ast_http_create_response() is inserted into
361 the HTML body without escaping, while the server name on the same
362 page is properly escaped via ast_xml_escape(). When res_phoneprov
363 passes the decoded request URI as the text of a 404 response, HTML
364 metacharacters in the URI are rendered by the browser.
365
366 Apply ast_xml_escape() to the text parameter before inserting it
367 into the HTML template, using the same function already used for
368 the server name.
369
370 Resolves: #GHSA-4pgv-j3mr-3rcp
371
372 #### codec_codec2: Only process complete Codec2 frames in decoder
373 Author: Milan Kyselica
374 Date: 2026-04-08
375
376 The codec2_samples() function uses floor division (160 * datalen/6)
377 to compute expected output samples, but the decode loop condition
378 (x < datalen) iterates with ceiling behavior when datalen is not a
379 multiple of CODEC2_FRAME_LEN. This mismatch causes the loop to
380 decode one extra frame beyond what the framework bounds check
381 budgeted for, leading to an out-of-bounds write on the output buffer.
382
383 Change the loop condition to only process complete frames, matching
384 the floor-division behavior of codec2_samples(). This also prevents
385 an out-of-bounds read on the input side when fewer than
386 CODEC2_FRAME_LEN bytes remain.
387
388 Resolves: #GHSA-qf8j-jp7h-c5hx
389
390 #### format_ogg_speex: Add bounds check to prevent heap buffer overflow
391 Author: Milan Kyselica
392 Date: 2026-03-23
393
394 The ogg_speex_read() function copies OGG packet data via memcpy()
395 without validating the packet size against the destination buffer
396 (BUF_SIZE = 200 bytes). A crafted .spx file with an oversized OGG
397 audio packet causes a heap buffer overflow that corrupts the
398 adjacent speex_desc structure containing libogg heap pointers,
399 leading to a crash (SIGSEGV) on playback.
400
401 Add a bounds check for both negative and oversized values before
402 the memcpy, consistent with how format_ogg_vorbis bounds its reads
403 via ov_read().
404
405 Resolves: #GHSA-8jhw-m2hg-vp3h
406