Files
asterisk/res
Milan Kyselica 0363eca2a3 res_pjsip_pubsub: Add width limit to sscanf in MWI NOTIFY parser
The parse_simple_message_summary() function uses sscanf with an
unbounded %s format specifier to parse the Message-Account field
from incoming SIP NOTIFY bodies into a fixed-size 512-byte stack
buffer (PJSIP_MAX_URL_SIZE). A single unauthenticated SIP NOTIFY
with a Message-Account value exceeding 512 bytes overflows the
buffer, corrupting adjacent stack data and permanently disabling
the PJSIP transport layer without crashing the process.

Add a width specifier (%511s) to limit the sscanf write to
PJSIP_MAX_URL_SIZE - 1 bytes plus the NUL terminator, matching
the destination buffer size.

Resolves: #GHSA-589g-qgf8-m6mx
2026-06-25 08:22:46 -06:00
..
2023-04-03 07:58:23 -05:00
2024-02-28 18:39:03 +00:00
2023-01-10 14:07:44 -06:00
2025-01-29 14:18:25 +00:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2025-01-29 14:18:25 +00:00
2021-12-03 10:38:39 -06:00
2021-11-15 16:37:34 -06:00
2025-01-29 14:18:25 +00:00
2025-01-29 14:18:25 +00:00
2021-12-03 10:38:39 -06:00
2025-01-29 14:18:25 +00:00
2025-01-29 14:18:25 +00:00
2025-01-29 14:18:25 +00:00
2025-01-29 14:18:25 +00:00
2021-11-15 16:37:34 -06:00
2021-11-15 16:37:34 -06:00
2025-01-29 14:18:25 +00:00
2021-12-03 10:38:39 -06:00
2023-12-08 13:11:54 +00:00
2025-01-29 14:18:25 +00:00