Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[gentoo-security] GLSA: pptpd (200304-08)
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index News & Announcements
View previous topic :: View next topic  
Author Message

Joined: 16 Apr 2002
Posts: 18335

PostPosted: Mon Apr 28, 2003 1:31 pm    Post subject: [gentoo-security] GLSA: pptpd (200304-08) Reply with quote

Daniel Ahlberg wrote:
- - - ---------------------------------------------------------------------
- - - ---------------------------------------------------------------------

PACKAGE : pptpd
SUMMARY : buffer overflow
DATE : 2003-04-28 09:22 UTC
EXPLOIT : remote
FIXED VERSION : >=pptpd-
CVE : CAN-2003-0213

- - - ---------------------------------------------------------------------

- - From advisory:

"PPTP packet header contain 16bit length which specifies the full size of
the packet:

bytes_this = read(clientFd, packet + bytes_ttl, 2 - bytes_ttl);
// ...
bytes_ttl += bytes_this;
// ...
length = htons(*(u_int16_t *) packet);
if (length > PPTP_MAX_CTRL_PCKT_SIZE) {
// abort

Looks good so far, except:

bytes_this = read(clientFd, packet + bytes_ttl, length - bytes_ttl);

If given length was 0 or 1, the "length - bytes_ttl" result is -1 or -2,
which means that it reads unlimited amount of data from client into
"packet", which is a buffer located in stack.

The exploitability only depends on if libc allows the size parameter to be
larger than SSIZE_MAX bytes. GLIBC does, Solaris and *BSD don't."

Read the full advisory at:


It is recommended that all Gentoo Linux users who are running
net-dialup/pptpd upgrade to pptpd- as follows:

emerge sync
emerge pptpd
emerge clean

- - - --------------------------------------------------------------------- - GnuPG key is available at
- - - ---------------------------------------------------------------------

Mailing List Archive: Unavailable
Don't even pause and ask them why. Turn around and say goodbye.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index News & Announcements All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum