Bug 1276588 - (CVE-2015-8019) CVE-2015-8019 kernel: net: buffer overflow when copying data from skbuff to userspace
CVE-2015-8019 kernel: net: buffer overflow when copying data from skbuff to u...
Status: CLOSED NOTABUG
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20151027,repor...
: Security
Depends On: 1276589
Blocks: 1276590
  Show dependency treegraph
 
Reported: 2015-10-30 04:55 EDT by Martin Prpič
Modified: 2016-05-09 05:32 EDT (History)
35 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-30 09:55:35 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Martin Prpič 2015-10-30 04:55:52 EDT
The following flaw was reported in the kernel:

skb_copy_and_csum_datagram_iovec doesn't check the actual length of the iovec's buffers to which it copies data, then memcpy_toiovec can copy to an address that was not specified by userspace, but garbage lying on the kernel stack.

In some cases, this address can be a valid userspace address, to which memcpy_toiovec will write the buffers. This can happen when userspace calls write followed by recvmsg.

In that case, memcpy_toiovec will dump the packet contents to the buffer passed to the write call, and can for example overwrite stack contents.

Upstream patch:

http://patchwork.ozlabs.org/patch/530642/

CVE request and assignment:

http://seclists.org/oss-sec/2015/q4/177
Comment 1 Martin Prpič 2015-10-30 04:56:41 EDT
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1276589]
Comment 2 Josh Boyer 2015-10-30 09:01:16 EDT
I don't think this is applicable to Fedora.  The original report was here:

http://www.openwall.com/lists/oss-security/2015/10/27/11

and that pointed out that impacted versions are only before 3.19 with a particular commit applied (89c22d8c3b27 ("net: Fix skb
csum races when peeking")) but are lacking the ioviter conversion.  The patch referenced in the initial comment also clearly spells this out.

All Fedora releases are on 4.1.y or newer, and should not be affected by this.
Comment 5 Vladis Dronov 2015-11-30 09:55:35 EST
Statement:

This issue does not affect the Linux kernel packages as shipped with Red Hat Enterprise Linux 5, 6, 7 and MRG-2, as the code introduced the flaw is not present in these products.

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