Bug 1783498 (CVE-2019-19527)

Summary: CVE-2019-19527 kernel: use-after-free caused by a malicious USB device in the drivers/hid/usbhid/hiddev.c driver
Product: [Other] Security Response Reporter: msiddiqu
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, airlied, asavkov, bhu, blc, brdeoliv, bskeggs, dhoward, dvlasenk, esammons, fhrbata, hdegoede, hkrzesin, iboverma, ichavero, itamar, jarodwilson, jeremy, jforbes, jglisse, jlelli, joe.lawrence, john.j5live, jonathan, josef, jpoimboe, jross, jshortt, jstancek, jthierry, jwboyer, kernel-maint, kernel-mgr, labbott, lgoncalv, linville, masami256, matt, mchehab, mcressma, mjg59, mlangsdo, nmurray, qzhao, rhandlin, rkeshri, rt-maint, rvrbovsk, steved, williams, ycote
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 vulnerability was found in hiddev_open in drivers/hid/usbhid/hiddev.c in the USB Human Interface Device class subsystem, where an existing device must be validated prior to its access. The device should also ensure the hiddev_list cleanup occurs at failure, as this may lead to a use-after-free problem, or possibly escalate privileges to an unauthorized user.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-07 10:32:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1783503, 1803439, 1803440, 1803441, 1803442, 1803443, 1803444, 1803445, 1803446, 1803447, 1803448, 1803449, 1803450, 1803451, 1803452, 1803453, 1803454, 1803455, 1803456, 1803457, 1803458, 1803459, 1803460, 1803461, 1803462, 1803463, 1803464, 1803465, 1803466, 1804539, 1804540, 1804541, 1804542, 1814257, 1814259    
Bug Blocks: 1783502    

Description msiddiqu 2019-12-13 20:29:51 UTC
A vulnerability was found in hiddev_open in drivers/hid/usbhid/hiddev.c  in USB human interface device class  subsystem,  in this problem if a USB device fails to initialize correctly list management code in the error handling path can delete a list entry while other USB code paths could be using it.  This may lead to a use-after-free situation which is frequently used by attackers to corrupt memory, panic the system or possibly escalate privileges.

Upstream Patch: 

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6d4472d7bec39917b54e4e80245784ea5d60ce49
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9c09b214f30e3c11f9b0b03f89442df03643794d

References:

https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.2.10
http://www.openwall.com/lists/oss-security/2019/12/03/4
http://seclists.org/oss-sec/2019/q4/115

Comment 1 msiddiqu 2019-12-13 20:33:08 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1783503]

Comment 2 Justin M. Forbes 2019-12-16 16:58:59 UTC
This is fixed for Fedora with the 5.2.10 stable kernel update.

Comment 4 Rohit Keshri 2020-02-16 08:56:58 UTC
Mitigation:

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Comment 19 Petr Matousek 2020-03-25 13:52:29 UTC
Statement:

This issue is rated as Moderate because of the need of physical access to the system.

Comment 22 errata-xmlrpc 2020-04-07 09:55:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:1378 https://access.redhat.com/errata/RHSA-2020:1378

Comment 23 Product Security DevOps Team 2020-04-07 10:32:00 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-2019-19527

Comment 24 errata-xmlrpc 2020-04-07 12:24:06 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:1372 https://access.redhat.com/errata/RHSA-2020:1372

Comment 25 errata-xmlrpc 2020-07-29 18:18:56 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:3220 https://access.redhat.com/errata/RHSA-2020:3220

Comment 26 errata-xmlrpc 2020-07-29 18:19:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:3221 https://access.redhat.com/errata/RHSA-2020:3221

Comment 30 errata-xmlrpc 2020-10-13 09:03:15 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.7 Extended Update Support

Via RHSA-2020:4236 https://access.redhat.com/errata/RHSA-2020:4236