Bug 1535199 (CVE-2017-13216)

Summary: CVE-2017-13216 kernel: escalation of privileges (EoP) in ashmem_ioctl function in drivers/staging/android/ashmen.c
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, airlied, ajax, aquini, bhu, blc, bmasney, brdeoliv, bskeggs, dhoward, dvlasenk, ewk, fhrbata, hdegoede, hkrzesin, iboverma, ichavero, itamar, jarodwilson, jforbes, jglisse, john.j5live, jonathan, josef, jross, jshortt, jstancek, jwboyer, kernel-maint, kernel-mgr, linville, matt, mchehab, mcressma, mjg59, mlangsdo, nmurray, ptalbert, rvrbovsk, skozina, steved, walters, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-14 18:27:45 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: 1535200    
Bug Blocks: 1535203    

Description Laura Pardo 2018-01-16 20:04:34 UTC
A flaw was found in ashmem_ioctl of ashmem.c, there is an out-of-bounds write due to insufficient locking when accessing asma. This could lead to a local elevation of privilege enabling code execution as a privileged process with no additional execution privileges needed. User interaction is not needed for exploitation.

References:
https://source.android.com/security/bulletin/2018-01-01#asterisk
https://www.exploit-db.com/exploits/43464/

Comment 1 Laura Pardo 2018-01-16 20:06:23 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1535200]

Comment 2 Justin M. Forbes 2018-01-17 12:43:29 UTC
The ASHMEM driver is not enabled for Fedora.

Comment 3 Wade Mealing 2018-01-24 08:08:30 UTC
The ASHMEM driver is not enabled in RHEL.

Red Hat Products are not affected by this flaw.

Comment 4 Product Security DevOps Team 2021-01-14 18:27:45 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2017-13216