Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96826 - net-misc/asterisk stack overflow
Summary: net-misc/asterisk stack overflow
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Other
: High trivial (vote)
Assignee: Gentoo Security
URL: http://www.securityfocus.com/archive/...
Whiteboard: ~1 [noglsa] jaervosz
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-23 00:00 UTC by Sune Kloppenborg Jeppesen (RETIRED)
Modified: 2019-11-28 22:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-06-23 00:00:49 UTC
Full details in the URL.
---
There is a programming error in the function that parses commands in the 

Asterisk system. This is used by the manager interface if the user is 

allowed to submit CLI commands. The coding error can result in the 

overflow of one of the parameters of the calling function. That is, the 

command parsing function will return without error. However, the calling 

function will cause a segmentation fault.



If the command string is specifically crafted, is it possible to use 

this stack overflow to execute arbitrary code on the Asterisk system. 

The resulting execution is (typically) run with root privileges.



A command consisting of a recurring string of two double quotes followed 

by a tab character will induce the segmentation fault within a Call 

Manager thread.
Comment 1 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-06-23 00:03:33 UTC
voip please verify wether this affects our older stable version and bump the 
unstable version if this is a valid report. 
 
Also an upstream reference for this would be nice. 
Comment 2 Stefan Knoblich (RETIRED) gentoo-dev 2005-06-23 14:54:10 UTC
http://www.portcullis-security.com/advisory/advisory-05-013.txt

there is no further information available at the moment

bumping asterisk-1.0.8 isn't possible without removing bristuff support (i.e.
major feature) because the 1.0.7 bristuff patch doesn't apply

i've created a diff of the cli.c changes in asterisk-1.0.8 and added that to
-1.0.7-r1 (which has it's ~* keywords restored now)

i'm going to write a short email to gentoo-dev and gentoo-users outlining the
non-root changes (for those who haven't read the Changelog, ebuild and planet.g.o)

older versions of asterisk may be affected, i'm going to check whether that
patch applies to 1.0.5 and 1.0.6 (and restoring the keywords of the non-root 
versions)
Comment 3 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-06-23 23:12:00 UTC
Thx Stefan. 1.0.7-r1 still needs to be marked ~ppc, should I call them to 
mark? 
Comment 4 Thierry Carrez (RETIRED) gentoo-dev 2005-06-24 07:04:46 UTC
I think we need to call ppc to mark ~ppc if they can.
Comment 5 Stefan Knoblich (RETIRED) gentoo-dev 2005-06-25 02:57:06 UTC
1.0.8 is in the tree now too, has been marked ~ppc
Comment 6 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-06-25 05:05:27 UTC
Thx Stefan. Since this is ~ -> Closing without GLSA.