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)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
: Security
Depends On: 1250034 1293521
Blocks: 1250036
  Show dependency treegraph
Reported: 2015-08-04 07:45 EDT by Adam Mariš
Modified: 2018-07-19 02:12 EDT (History)
30 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:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
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:

Upstream patches:
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

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.