Bug 1250030 - (CVE-2015-5707) CVE-2015-5707 kernel: number wraparound vulnerability in function start_req()
CVE-2015-5707 kernel: number wraparound vulnerability in function start_req()
Status: NEW
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=20150322,repor...
: Security
Depends On: 1250034 1293521
Blocks: 1250036
  Show dependency treegraph
 
Reported: 2015-08-04 07:45 EDT by Adam Mariš
Modified: 2016-10-04 00:20 EDT (History)
32 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
An integer-overflow vulnerability was found in the scsi block-request handling code in function start_req(). A local attacker could use specially crafted IOV requests to overflow a counter used in bio_map_user_iov()'s page calculation, and write past the end of the array that contains kernel-page pointers.
Story Points: ---
Clone Of:
Environment:
Last Closed:
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 Adam Mariš 2015-08-04 07:45:20 EDT
This bug, which was probably introduced in Linux 2.6.28, was assigned CVE.
In drivers/scsi/sg.c in function start_req(), there was code segment vulnerable to number wraparound in the calculation of total number of pages in bio_map_user_iov().
This can result to allocating small array of pointers to pages that would be overflowed. It was fixed in Linux 4.1-rc1.

CVE assignment:
http://seclists.org/oss-sec/2015/q3/278

Upstream patches:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=fdc81f45e9f57858da6351836507fbcf1b7583ee
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=451a2886b6bf90e2fb378f7c46c655450fb96e81
Comment 1 Adam Mariš 2015-08-04 07:55:22 EDT
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1250034]
Comment 2 Wade Mealing 2015-12-21 20:27:17 EST
Statement:

This issue affects the Linux kernels as shipped with Red Hat Enterprise Linux 6, 7 MRG-2 and realtime kernels and does not plan be addressed in a future update.

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