Bug 231069 - CVE-2007-1217 Overflow in CAPI subsystem
CVE-2007-1217 Overflow in CAPI subsystem
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: kernel (Show other bugs)
3.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Don Howard
Martin Jenner
impact=moderate,source=vendorsec,repo...
: Security
: 402771 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-05 17:16 EST by Marcel Holtmann
Modified: 2007-11-30 17:07 EST (History)
6 users (show)

See Also:
Fixed In Version: RHSA-2007-0671
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-08-16 05:34:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
patch for this BZ (17.85 KB, patch)
2007-03-26 09:52 EDT, Radovan Augustin
no flags Details | Diff
CVS repository patch, adds CONFIG_CAPI_TRACE option (357 bytes, patch)
2007-03-26 09:53 EDT, Radovan Augustin
no flags Details | Diff
correct patch, only compilation tested, need to test with real hardware (18.89 KB, patch)
2007-03-30 09:13 EDT, Radovan Augustin
no flags Details | Diff

  None (edit)
Description Marcel Holtmann 2007-03-05 17:16:38 EST
The bufprint routine used by capi_cmsg2str does an unbounded vsprintf into a
8192 byte buffer, perhaps hoping it's big enough.

If the content of that vsprintf can be controlled by remote peers, this may lead
to a remote security hole for daemons using CAPI (pppd-capi-plugin,
asterisk-chan-capi, capi4hylafax, ...). Or a DoS.

If the content of that vsprintf can be controlled by local users making use of a
system service (such as sending a fax, making a phone call, ...) that uses CAPI,
this is a privilege escalation or remote authenticated user security hole, or a DoS.
Comment 2 Ernie Petrides 2007-03-13 19:49:12 EDT
Marcel, the exploit in bug 230563 comment #1 requires access to
/dev/capi20, which has permission 600 (and thus needs super-user
privileges).  If that is our only exposure, please close this as
NOTABUG.
Comment 5 Radovan Augustin 2007-03-26 09:52:13 EDT
Created attachment 150897 [details]
patch for this BZ
Comment 6 Radovan Augustin 2007-03-26 09:53:10 EDT
Created attachment 150899 [details]
CVS repository patch, adds CONFIG_CAPI_TRACE option
Comment 7 Radovan Augustin 2007-03-26 09:59:50 EDT
Compilation is successful but not tested, because i do not have ISDN card available.
Comment 8 Radovan Augustin 2007-03-26 13:30:18 EDT
Patch still contains errors, please do not test it now.
Comment 9 Radovan Augustin 2007-03-30 09:13:28 EDT
Created attachment 151273 [details]
correct patch, only compilation tested, need to test with real hardware
Comment 13 Jerome Marchand 2007-07-26 03:51:32 EDT
fixed in build 2.4.21-51.EL
Comment 16 Red Hat Bugzilla 2007-08-16 05:34:49 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2007-0671.html
Comment 17 Jan Lieskovsky 2007-11-29 09:08:05 EST
*** Bug 402771 has been marked as a duplicate of this bug. ***

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