Bug 1410370 (CVE-2016-9754)

Summary: CVE-2016-9754 kernel: Integer overflow in ring_buffer_resize()
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: aquini, bhu, dhoward, fhrbata, gansalmon, iboverma, ichavero, itamar, jforbes, jkacur, joelsmith, jonathan, jross, jwboyer, kernel-maint, kernel-mgr, lgoncalv, madhu.chinakonda, mchehab, mcressma, nmurray, pholasek, rt-maint, rvrbovsk, slawomir, williams, wmealing
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 4.6.1 Doc Type: If docs needed, set a value
Doc Text:
An integer overflow vulnerability was found in the ring_buffer_resize() calculations in which a privileged user can adjust the size of the ringbuffer message size. These calculations can create an issue where the kernel memory allocator will not allocate the correct count of pages yet expect them to be usable. This can lead to the ftrace() output to appear to corrupt kernel memory and possibly be used for privileged escalation or more likely kernel panic.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-27 10:51:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1410372    

Description Adam Mariš 2017-01-05 10:45:45 UTC
An integer overflow vulnerability in ring_buffer_resize() calculations in which a privileged user can adjust the size of the ringbuffer message size.   These calculations can create an issue where the kernel memory allocator will not allocate the correct count of pages yet expect them to be usable.  This can lead to the ftrace() output to appear to corrupt kernel memory and possibly be used for privileged escalation or more likely kernel panic.

Upstream patch:

https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=59643d1535eb220668692a5359de22545af579f6

Reference:

https://source.android.com/security/bulletin/2017-01-01.html#eop-in-kernel-profiling-subsystem

Comment 2 Wade Mealing 2017-01-19 05:17:05 UTC
Statement:

This issue does not affect the Linux kernels as shipped with Red Hat Enterprise Linux 5,6 and 7 kernels.