<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>188148</bug_id>
          
          <creation_ts>2007-08-08 19:10 0000</creation_ts>
          <short_desc>app-emulation/bochs DoS and heap overflow (CVE 2007-28{93,94})</short_desc>
          <delta_ts>2007-11-18 00:21:26 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Security</product>
          <component>Vulnerabilities</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <status_whiteboard>B1 [glsa]</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mjf@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>carenas@sajinet.com.pe</cc>
    
    <cc>lu_zero@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>mjf@gentoo.org</who>
            <bug_when>2007-08-08 19:10:26 0000</bug_when>
            <thetext>Tavis Ormandy discovered two issues that affect bochs &lt;= 2.3

The first issue is caused by a heap overflow error in the emulated NE2000 device that allows a large value in the TXCNT register to exceed the available memory, which could be exploited by an attacker with &quot;root&quot; privileges on a vulnerable guest system to execute arbitrary code on the host system.

The second vulnerability is caused by a divide-by-zero in the emulated floppy disk controller, which could be exploited by malicious users to terminate the bochs process, creating a denial of service condition.

http://www.frsirt.com/english/advisories/2007/1936</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mjf@gentoo.org</who>
            <bug_when>2007-08-08 19:16:38 0000</bug_when>
            <thetext>CC&apos;ing maintainer and setting whiteboard status.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2007-08-14 10:45:47 0000</bug_when>
            <thetext>Debian seems to have fixed this with DSA 1351-1.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carenas@sajinet.com.pe</who>
            <bug_when>2007-09-03 21:30:26 0000</bug_when>
            <thetext>fedora also published a fix which links to the following already closed (in cvs) upstream bug report :

http://sourceforge.net/tracker/?func=detail&amp;atid=112580&amp;aid=1729822&amp;group_id=12580

fedora&apos;s CVS contains patches for both bugs that apply to 2.3 in :

http://cvs.fedoraproject.org/viewcvs/devel/bochs/</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carenas@sajinet.com.pe</who>
            <bug_when>2007-09-03 22:29:14 0000</bug_when>
            <thetext>Created an attachment (id=129950)
fix for CVE-2007-2893 from CVS

reconstructed from CVS with information from fedora package.

tested in bochs-2.3 for amd64</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carenas@sajinet.com.pe</who>
            <bug_when>2007-09-03 22:30:22 0000</bug_when>
            <thetext>Created an attachment (id=129952)
fix for CVE-2007-2894 from CVS

reconstructed from CVS with information from fedora package.

tested in bochs-2.3 for amd64</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2007-09-08 15:32:57 0000</bug_when>
            <thetext>lu_zero please advise.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lu_zero@gentoo.org</who>
            <bug_when>2007-09-09 00:10:24 0000</bug_when>
            <thetext>bochs-2.3 doesn&apos;t build for me and I&apos;m tempted to remove it since qemu covers the needs in a simpler and faster way. I&apos;ll try to come up either with a snapshot that builds or using the patches on the previous version.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lu_zero@gentoo.org</who>
            <bug_when>2007-09-09 11:47:33 0000</bug_when>
            <thetext>spent more time on bochs-2.3 and eventually sorted my, seems to be, local issue.

Ebuild committed as ~arch</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-09-09 11:52:12 0000</bug_when>
            <thetext>Arches please stabilise app-emulation/bochs-2.3</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-09-09 16:10:53 0000</bug_when>
            <thetext>lu_zero did ppc and x86 has been stabled by me</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-09-10 09:57:22 0000</bug_when>
            <thetext>alpha stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>angelos@gentoo.org</who>
            <bug_when>2007-09-16 15:08:00 0000</bug_when>
            <thetext>amd64 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-09-16 16:51:54 0000</bug_when>
            <thetext>Please file GLSA request</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2007-09-29 14:10:35 0000</bug_when>
            <thetext>(In reply to comment #13)
&gt; Please file GLSA request
&gt; 
done.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2007-11-18 00:21:26 0000</bug_when>
            <thetext>GLSA 200711-21</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>129950</attachid>
            <date>2007-09-03 22:29 0000</date>
            <desc>fix for CVE-2007-2893 from CVS</desc>
            <filename>bochs-2.3-CVE-2007-2893.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IGlvZGV2L25lMmsuY2MKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2N2c3Jvb3QvYm9jaHMv
Ym9jaHMvaW9kZXYvbmUyay5jYyx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS45MQpyZXRyaWV2aW5n
IHJldmlzaW9uIDEuOTIKZGlmZiAtdSAtcCAtcjEuOTEgLXIxLjkyCi0tLSBpb2Rldi9uZTJrLmNj
CTMgRmViIDIwMDcgMTc6NTY6MzUgLTAwMDAJMS45MQorKysgaW9kZXYvbmUyay5jYwkxMCBNYXIg
MjAwNyAxNToxNzozMSAtMDAwMAkxLjkyCkBAIC0xMjc4LDggKzEyNzgsOCBAQCB2b2lkIGJ4X25l
MmtfYzo6cnhfaGFuZGxlcih2b2lkICphcmcsIGNvCiAgKi8KIHZvaWQgYnhfbmUya19jOjpyeF9m
cmFtZShjb25zdCB2b2lkICpidWYsIHVuc2lnbmVkIGlvX2xlbikKIHsKLSAgdW5zaWduZWQgcGFn
ZXM7Ci0gIHVuc2lnbmVkIGF2YWlsOworICBpbnQgcGFnZXM7CisgIGludCBhdmFpbDsKICAgdW5z
aWduZWQgaWR4OwogICBpbnQgd3JhcHBlZDsKICAgaW50IG5leHRwYWdlOwo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>129952</attachid>
            <date>2007-09-03 22:30 0000</date>
            <desc>fix for CVE-2007-2894 from CVS</desc>
            <filename>bochs-2.3-CVE-2007-2894.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IGlvZGV2L2Zsb3BweS5jYwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3Zzcm9vdC9ib2No
cy9ib2Nocy9pb2Rldi9mbG9wcHkuY2MsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMTA2CnJldHJp
ZXZpbmcgcmV2aXNpb24gMS4xMDcKZGlmZiAtdSAtcCAtcjEuMTA2IC1yMS4xMDcKLS0tIGlvZGV2
L2Zsb3BweS5jYwk2IEFwciAyMDA3IDE1OjIyOjE3IC0wMDAwCTEuMTA2CisrKyBpb2Rldi9mbG9w
c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LT5zZWN0b3JzX3Blcl90cmFjayA9IGZsb3BweV90eXBlW3R5cGVfaWR4XS5zcHQ7CiAg
ICAgbWVkaWEtPnNlY3RvcnMgICAgICAgICAgID0gZmxvcHB5X3R5cGVbdHlwZV9pZHhdLnNlY3Rv
cnM7CiAjZW5kaWYKLSAgICByZXR1cm4gMTsgLy8gc3VjY2VzcworICAgIHJldHVybiAobWVkaWEt
PnNlY3RvcnMgPiAwKTsgLy8gc3VjY2VzcwogICB9IGVsc2UgewogICAgIC8vIHVua25vd24gZmls
ZSB0eXBlCiAgICAgQlhfRVJST1IoKCJ1bmtub3duIG1vZGUgdHlwZSIpKTsK
</data>        

          </attachment>
    </bug>

</bugzilla>