Bug 501243 - (CVE-2009-0688) CVE-2009-0688 cyrus-sasl: sasl_encode64() does not reliably null-terminate its output
(CVE-2009-0688) CVE-2009-0688 cyrus-sasl: sasl_encode64() does not reliably n...
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: postfix (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: Miroslav Lichvar
Depends On:
  Show dependency treegraph
Reported: 2009-05-18 04:26 EDT by Jan F. Chadima
Modified: 2009-05-22 05:41 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-05-22 05:41:54 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jan F. Chadima 2009-05-18 04:26:06 EDT
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:
Actual results:

Expected results:

Additional info:
Comment 1 Miroslav Lichvar 2009-05-22 05:41:54 EDT
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.