Bug 501243 - (CVE-2009-0688) CVE-2009-0688 cyrus-sasl: sasl_encode64() does not reliably null-terminate its output
Summary: (CVE-2009-0688) CVE-2009-0688 cyrus-sasl: sasl_encode64() does not reliably n...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: postfix
Version: 5.3
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Miroslav Lichvar
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-18 08:26 UTC by Jan F. Chadima
Modified: 2009-05-22 09:41 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-22 09:41:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan F. Chadima 2009-05-18 08:26:06 UTC
Description of problem:

The Cyrus SASL library contains a buffer overflow vulnerability
that could allow an attacker to execute code or cause a vulnerable
program to crash. The sasl_encode64() function converts a string
into base64. On some conditions sasl_encode64() does not terminate his output by nul character. Especially in this case: sasl_encode64 (in, inlen, out, outmax, &outlen) with outhmax exactly the size of output according to inlen (without the training zero)


Version-Release number of selected component (if applicable):


How reproducible:

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Miroslav Lichvar 2009-05-22 09:41:54 UTC
Postfix allocates the buffer correctly, the length is computed to include also the trailing zero.


Note You need to log in before you can comment on or make changes to this bug.