Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1489088 - (CVE-2017-9725) CVE-2017-9725 kernel: Incorrect type conversion for size during dma allocation
CVE-2017-9725 kernel: Incorrect type conversion for size during dma allocation
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=20151012,repor...
: Security
Depends On: 1489089 1495401 1495402 1495403 1495404 1495405 1495406 1495407
Blocks: 1489091
  Show dependency treegraph
 
Reported: 2017-09-06 12:28 EDT by Adam Mariš
Modified: 2018-08-28 18:21 EDT (History)
44 users (show)

See Also:
Fixed In Version: kernel 4.3
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found where the kernel truncated the value used to indicate the size of a buffer which it would later become zero using an untruncated value. This can corrupt memory outside of the original allocation.
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)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0676 None None None 2018-04-10 04:06 EDT
Red Hat Product Errata RHSA-2018:1062 None None None 2018-04-10 05:30 EDT
Red Hat Product Errata RHSA-2018:1130 None None None 2018-04-17 12:20 EDT
Red Hat Product Errata RHSA-2018:1170 None None None 2018-04-17 11:29 EDT

  None (edit)
Description Adam Mariš 2017-09-06 12:28:21 EDT
A flaw was found in the Linux kernels implementation of DMA memory allocation.

When allocating a DMA buffer, a section of memory is allocated and then set to zeros.  The size parameter of allocation was truncated due to an incorrect casting when the allocation function is called.  During clearing the allocation used an untruncated value as the size to clear and would "zero" a larger section of kernel memory than was allocated, possibly corrupting memory and allowing for privilege escalation.

At this time Red Hat Product Security believes that there is no direct control of the size parameter used in this function in Red Hat kernels.

Patch:

https://source.codeaurora.org/quic/la/kernel/msm-4.4/commit/?h=aosp/android-4.4&id=1f8f9b566e8446c13b954220c226c58d22076f88
Comment 1 Adam Mariš 2017-09-06 12:29:29 EDT
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1489089]
Comment 2 Adam Mariš 2017-09-06 12:47:16 EDT
External References:

https://source.android.com/security/bulletin/2017-09-01
Comment 3 Justin M. Forbes 2017-09-06 14:10:40 EDT
This was fixed upstream 2 years ago, it was never an issue in any currently supported Fedora release.
Comment 4 Adam Mariš 2017-09-07 04:48:58 EDT
Mainline kernel patch:

https://github.com/torvalds/linux/commit/67a2e213e7e937c41c52ab5bc46bf3f4de469f6e
Comment 6 Wade Mealing 2017-09-25 21:59:24 EDT
Statement:

This issue does not affect the Linux kernel packages as shipped with Red Hat Enterprise Linux 5 and 6.

This issue affects the Linux kernel packages as shipped with Red Hat Enterprise Linux 7 and MRG-2.

Future Linux kernel updates for the respective releases may address this issue.
Comment 10 errata-xmlrpc 2018-04-10 04:06:09 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2018:0676 https://access.redhat.com/errata/RHSA-2018:0676
Comment 11 errata-xmlrpc 2018-04-10 05:29:45 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2018:1062 https://access.redhat.com/errata/RHSA-2018:1062
Comment 12 errata-xmlrpc 2018-04-17 11:29:03 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise MRG 2

Via RHSA-2018:1170 https://access.redhat.com/errata/RHSA-2018:1170
Comment 13 errata-xmlrpc 2018-04-17 12:19:48 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.4 Extended Update Support

Via RHSA-2018:1130 https://access.redhat.com/errata/RHSA-2018:1130

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