Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 69152
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Dan Margolis (RETIRED) <krispykringle@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
cbcp-dosfix.patch cbcp-dosfix.patch patch Luke Macken (RETIRED) 2004-10-28 12:38 0000 3.31 KB Details | Diff
cbcp-dosfix.patch-30852.out Patch failure on sparc text/plain Gustavo Zacarias (RETIRED) 2004-10-30 06:22 0000 2.42 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 69152 depends on: Show dependency tree
Bug 69152 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-10-27 08:27 0000
Reporter claims a bad pointer dereference in pppd that could cause an attacker
to crash the pppd process. This could lead to a DoS, but he assures that RCE is
not possible. Tested on an earlier version than that which is masked in
portage. Unconfirmed on the ~ masked version.

------- Comment #1 From Luke Macken (RETIRED) 2004-10-28 12:38:43 0000 -------
Created an attachment (id=42796) [details]
cbcp-dosfix.patch

The diff of cbcp.c from CVS, which fixes DoS vulnerabilities.

------- Comment #2 From Luke Macken (RETIRED) 2004-10-28 12:40:48 0000 -------
net-dialup,

the attached file is the diff of cbcp.c from their CVS tree.  This version fixes DoS vulnerabilities mentioned above.

Please verify patch, and make sure it doesn't break anything (they changed the way they output debug info).

------- Comment #3 From Luke Macken (RETIRED) 2004-10-29 05:51:40 0000 -------
I spoke with upstream regarding this issue.

By default, pppd is not vulnerable to this attack because the line "CBCP=y" is commented out in pppd/Makefile.linux, but our ebuild turns this on, making us vulnerable.

2.4.3 should be getting released hopefully within the next week, and upstream confirmed that applying the cbcp.c diff should work just fine too.

------- Comment #4 From Alin Năstac 2004-10-30 01:18:41 0000 -------
I verified the patch against ppp-2.4.2-r6. src_unpack & src_compile end up
successfully.

I cannot do more than that since I don't have dev status yet (see bug #63588). 

------- Comment #5 From Daniel Black 2004-10-30 05:38:43 0000 -------
ppp-2.4.2-r7 added with patch. Sorry for the delay.

------- Comment #6 From Sune Kloppenborg Jeppesen 2004-10-30 05:59:03 0000 -------
Thx Daniel.

Arches please mark ppp-2.4.2-r7 stable.

------- Comment #7 From Gustavo Zacarias (RETIRED) 2004-10-30 06:22:06 0000 -------
Created an attachment (id=42906) [details]
Patch failure on sparc

------- Comment #8 From Gustavo Zacarias (RETIRED) 2004-10-30 06:22:36 0000 -------
Patch fails miserably...

------- Comment #9 From Alin Năstac 2004-10-30 06:59:35 0000 -------
All I had to do was to copy this patch to files/2.4.2 directory and add at the
end of src_unpack the following line:
        epatch ${FILESDIR}/2.4.2/cbcp-dosfix.patch

The result:
alin ppp # ebuild ppp-2.4.2-r6.ebuild unpack
>>> md5 src_uri ;-) ppp-2.4.2.tar.gz
>>> md5 src_uri ;-) ppp-2.4.2-mppe-mppc-1.1.patch.gz
>>> md5 src_uri ;-) ppp-dhcpc.tgz
>>> Unpacking source...
>>> Unpacking ppp-2.4.2.tar.gz to /var/tmp/portage/ppp-2.4.2-r6/work
>>> Unpacking ppp-2.4.2-mppe-mppc-1.1.patch.gz to /var/tmp/portage/ppp-2.4.2-r6/work
>>> Unpacking ppp-dhcpc.tgz to /var/tmp/portage/ppp-2.4.2-r6/work
 * Applying mpls.patch.gz ...                                                  
                              [ ok ]
 * Applying killaddr-smarter.patch.gz ...                                      
                              [ ok ]
 * Applying cflags.patch ...                                                   
                              [ ok ]
 * Applying control_c.patch ...                                                
                              [ ok ]
 * Disabling active-filter
pam
 * Enabling PAM
 * Enabling CBCP
 * Enabling radius
 * Applying cbcp-dosfix.patch ...                                              
                              [ ok ]
>>> Source unpacked.

------- Comment #10 From Sune Kloppenborg Jeppesen 2004-10-30 07:09:27 0000 -------
Arches please test. Dragonheart just fixed the patch in cvs.

------- Comment #11 From Daniel Black 2004-10-30 07:11:27 0000 -------
Until you commit the patch to cvs and the act of commiting it changes the patch
line:
#define RCSID   "$Id: cbcp.c,v 1.15 2003/01/17 07:23:35 fcusack Exp $"
to:
#define RCSID   "$Id: cbcp-dosfix.patch,v 1.2 2004/10/30 13:49:28 dragonheart
Exp $"
causing the foresaid misable failure.

Patch modified to not change the first hunk (being the above line). Arch
marking may resume.

------- Comment #12 From Simon Stelling (RETIRED) 2004-10-30 09:58:32 0000 -------
stable on amd64

------- Comment #13 From Jason Wever (RETIRED) 2004-10-30 10:05:14 0000 -------
sparc'd

------- Comment #14 From Bryan Østergaard (RETIRED) 2004-10-30 14:26:51 0000 -------
Stable on alpha.

------- Comment #15 From SpanKY 2004-10-30 22:46:51 0000 -------
arm/hppa/ia64 stable

------- Comment #16 From Jochen Maes (RETIRED) 2004-10-31 03:58:46 0000 -------
stable on ppc

------- Comment #17 From Thierry Carrez (RETIRED) 2004-10-31 08:36:06 0000 -------
Ready, security please vote on GLSA need

------- Comment #18 From Sune Kloppenborg Jeppesen 2004-10-31 10:14:33 0000 -------
I vote for a GLSA on this one.

------- Comment #19 From Thierry Carrez (RETIRED) 2004-11-01 02:31:40 0000 -------
I agree, we need one.

------- Comment #20 From Sune Kloppenborg Jeppesen 2004-11-01 10:09:20 0000 -------
GLSA 200411-01

lewk you might be fast with drafting but closing.....:-)

------- Comment #21 From Hardave Riar (RETIRED) 2004-11-05 03:51:09 0000 -------
Stable on mips.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug