Bug 2531100

Summary: CVE-2026-57165 asterisk: pre-authentication overflow in the telnet CLI history [epel-all]
Product: [Fedora] Fedora EPEL Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: asteriskAssignee: EPEL Packagers SIG <epel-packagers-sig>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: epel10CC: bennie.joubert, epel-packagers-sig, jsmith.fedora, lemenkov
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["bcbeaab3-e284-4e26-a967-609f5de3dfde"]}
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-09-11 19:39:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2528764    

Description Guilherme de Almeida Suckevicz 2026-09-09 17:28:47 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

PJSIP is a free and open source multimedia communication library written in C. Prior to commit 628b716, a stack buffer overflow exists in the PJLIB-UTIL telnet CLI front-end when redrawing the command line during history recall (handle_up_down() in cli_telnet.c). This affects only applications that enable the telnet CLI front-end (same gating as the related CLI issue). The line-redraw sequence for a recalled history entry can accumulate more data than a fixed-size stack buffer holds, which may lead to application termination. Exploitation requires access to the unauthenticated telnet CLI, which already permits arbitrary CLI commands, so the additional impact is limited. Applications that do not enable the telnet CLI front-end are not affected. This issue has been patched via commit 628b716.

Comment 1 Peter Lemenkov 2026-09-11 19:39:36 UTC
Not applicable to Asterisk.

This is a flaw in PJLIB-UTIL's telnet CLI front-end (handle_up_down() in cli_telnet.c). The upstream advisory states it affects only applications that enable that front-end, and that applications which do not enable it are not affected.

Asterisk bundles pjproject but does not use its CLI framework. There are no references to pj_cli anywhere in the Asterisk source tree — Asterisk has its own unrelated CLI implementation. Nothing ever calls pj_cli_telnet_create(), so the vulnerable function is never reachable.

Closing as NOTABUG, matching the Fedora tracker (bug 2531101). Note this is a reachability determination rather than the code being absent: cli_telnet.c is still compiled into the bundled library, so this would need revisiting if a future version of Asterisk adopted pjproject's CLI framework.