Bug 1731000 (CVE-2019-13631)

Summary: CVE-2019-13631 kernel: OOB writes in parse_hid_report_descriptor in drivers/input/tablet/gtco.c
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, airlied, bhu, blc, brdeoliv, bskeggs, desnesn, dhoward, dvlasenk, esammons, fhrbata, hdegoede, hkrzesin, iboverma, ichavero, itamar, jarodwilson, jeremy, jforbes, jlelli, john.j5live, jonathan, josef, jross, jshortt, jstancek, jwboyer, kernel-maint, kernel-mgr, lgoncalv, linville, mchehab, mcressma, mjg59, mlangsdo, nmurray, rt-maint, rvrbovsk, steved, williams, wmealing, yozone
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel's implementation of GTCO tablet/digitizer's version of the parse_hid_report_descriptor in drivers. An attacker with local access could use this flaw to create a specially crafted USB device inserted into the host to corrupt memory, trigger an out-of-bounds write during the generation of debugging messages, or possibly escalate the privileges of a process.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-27 10:46:35 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: 1731001, 1731814, 1731815, 1731816, 1731817, 1731818    
Bug Blocks: 1731002    

Description Dhananjay Arunesh 2019-07-18 06:24:21 UTC
A vulnerability was discovered in the linux kernels implementation of "GTCO tablet/digitizer"s version of parse_hid_report_descriptor in drivers.

An attacker with local access could create a malicious USB device which must be inserted into the local usb port to send a crafted USB response that triggers an out-of-bounds write during generation of debugging messages.

It is unlikely that this attack is effective or wide-spread as it requires specific usb hardware and physical access to the hardware to exploit.

Reference:
https://patchwork.kernel.org/patch/11040813/

Comment 1 Dhananjay Arunesh 2019-07-18 06:24:42 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1731001]

Comment 3 Wade Mealing 2019-07-22 06:47:13 UTC
Mitigation:

It is possible to prevent the kernel from loading the affected code by blacklisting the gtco kernel module. Visit https://access.redhat.com/solutions/41278  for specifics.

Comment 5 Wade Mealing 2019-07-22 07:17:32 UTC
This flaw is rated as moderate, it is unlikely that this attack vector will be frequently used by attackers to the complexity of physical access and creating a usb device that creates specific USB responses.