Bug 1647289 (CVE-2018-9385)

Summary: CVE-2018-9385 kernel: Out-of-bounds write due to incorrect bounds check in drivers/amba/bus.c:driver_override_store()
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abhgupta, acaringi, airlied, bhu, blc, brdeoliv, bskeggs, dbaker, dhoward, dvlasenk, ewk, fhrbata, hdegoede, hkrzesin, hwkernel-mgr, iboverma, ichavero, itamar, jarodwilson, jforbes, jkacur, john.j5live, jokerman, jonathan, josef, jross, jstancek, jwboyer, kernel-maint, kernel-mgr, lgoncalv, linville, mchehab, mcressma, mjg59, mlangsdo, nmurray, rt-maint, rvrbovsk, slawomir, steved, sthangav, trankin, vdronov, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 4.17-rc3 Doc Type: If docs needed, set a value
Doc Text:
It was found that the Linux kernel is vulnerable to an out-of-bounds buffer write due to incorrect bounds check in driver_override_store() function in drivers/amba/bus.c. This can lead to a memory corruption, a system panic, and to a denial of service. Due to the nature of the flaw, privilege escalation cannot be fully ruled out, although we believe it is unlikely.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-25 22:21:41 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: 1653266    
Bug Blocks: 1647290    

Description Sam Fowler 2018-11-07 04:08:06 UTC
It was found that the Linux kernel is vulnerable to an out-of-bounds buffer write due to incorrect bounds check in drivers/amba/bus.c:driver_override_store() function. This can lead to a memory corruption, a system panic and to a denial-of-service. Due to the nature of the flaw, privilege escalation cannot be fully ruled out, although we believe it is unlikely.

Reference:

https://lore.kernel.org/patchwork/patch/876235/

https://source.android.com/security/bulletin/pixel/2018-06-01#kernel-components

An upstream patch:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d2ffed5185df9d8d9ccd150e4340e3b6f96a8381