Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 612912 (CVE-2017-6952) - <dev-libs/capstone-3.0.5_rc2: Integer overflow in the cs_winkernel_malloc function (CVE-2017-6952)
Summary: <dev-libs/capstone-3.0.5_rc2: Integer overflow in the cs_winkernel_malloc fun...
Status: RESOLVED FIXED
Alias: CVE-2017-6952
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: https://bugzilla.redhat.com/show_bug....
Whiteboard: ~3 [noglsa/cve]
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-17 14:18 UTC by Agostino Sarubbo
Modified: 2017-03-27 01:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2017-03-17 14:18:29 UTC
From ${URL} :

Integer overflow in the cs_winkernel_malloc function in winkernel_mm.c
in Capstone 3.0.4 and earlier allows attackers to cause a denial of
service (heap-based buffer overflow in a kernel driver) or possibly
have unspecified other impact via a large value.

Upstream patch:

https://github.com/aquynh/capstone/commit/6fe86eef621b9849f51a5e1e5d73258a93440403


@maintainer(s): after the bump, in case we need to stabilize the package, please let us know if it is ready for the stabilization or not.
Comment 1 GLSAMaker/CVETool Bot gentoo-dev 2017-03-19 13:39:01 UTC
CVE-2017-6952 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-6952):
  Integer overflow in the cs_winkernel_malloc function in winkernel_mm.c in
  Capstone 3.0.4 and earlier allows attackers to cause a denial of service
  (heap-based buffer overflow in a kernel driver) or possibly have unspecified
  other impact via a large value.
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2017-03-25 15:38:05 UTC
The report looks a bit odd:

- it's a vulnerability in windows kernel driver. Not something you can easily build in gentoo today as it requires MSVS to build a driver

- the windows code was added in capstone-3.0.5-rc1. It's not present in 3.0.4 in gentoo at all
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2017-03-25 16:10:55 UTC
To ease CVE tracking of newer versions I've bumped up to
vulnerable version and applied upstream patch and removed
old 3.0.4 version as:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83209f33a128ec7f48adbfad813cfbc13a2fd444

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02d2f9e91bd5ee4d821aeab31a342760f341a738
Comment 4 Yury German Gentoo Infrastructure gentoo-dev 2017-03-27 01:13:10 UTC
Whiteboard was categorized incorrectly, corrected (Package was not stable). 

Sergei, thank you for taking the initiative. I am closing the bug noglsa