Bug 1443626 (CVE-2017-7892) - CVE-2017-7892 capnproto: Integer overflow due to a malicious message
Summary: CVE-2017-7892 capnproto: Integer overflow due to a malicious message
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: CVE-2017-7892
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1443628 1443629
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-19 15:02 UTC by Andrej Nemec
Modified: 2021-02-17 02:15 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-10-19 03:25:27 UTC
Embargoed:


Attachments (Terms of Use)

Description Andrej Nemec 2017-04-19 15:02:03 UTC
A vulnerability was found in capnproto. A malicious message could contain a far pointer pointing outside of the message. Cap'n Proto messages are broken into segments of continuous memory. A far pointer points from one segment into another, indicating both the segment number and an offset within that segment. If a malicious far pointer contained an offset large enough to overflow the pointer arithmetic (wrapping around to the beginning of memory), then it would escape bounds checking, in part because the compiler would elide half of the bounds check as an optimization.

External References:

https://github.com/sandstorm-io/capnproto/blob/master/security-advisories/2017-04-17-0-apple-clang-elides-bounds-check.md

Upstream patch:

https://github.com/sandstorm-io/capnproto/commit/52bc956459a5e83d7c31be95763ff6399e064ae4

Comment 1 Andrej Nemec 2017-04-19 15:02:58 UTC
Created capnproto tracking bugs for this issue:

Affects: epel-7 [bug 1443628]
Affects: fedora-all [bug 1443629]


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