Bug 1525474 (CVE-2017-17558) - CVE-2017-17558 kernel: Unallocated memory access by malicious USB device via bNumInterfaces overflow
Summary: CVE-2017-17558 kernel: Unallocated memory access by malicious USB device via ...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2017-17558
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=moderate,public=20171211,repor...
Depends On: 1695841 1525476 1536886 1536887 1536888 1536889 1536890 1695842
Blocks: 1525480
TreeView+ depends on / blocked
 
Reported: 2017-12-13 12:12 UTC by Adam Mariš
Modified: 2019-06-11 11:13 UTC (History)
46 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
The usb_destroy_configuration() function, in 'drivers/usb/core/config.c' in the USB core subsystem, in the Linux kernel through 4.14.5 does not consider the maximum number of configurations and interfaces before attempting to release resources. This allows local users to cause a denial of service, due to out-of-bounds write access, or possibly have unspecified other impact via a crafted USB device. Due to the nature of the flaw, privilege escalation cannot be fully ruled out, although we believe it is unlikely.
Clone Of:
Environment:
Last Closed: 2019-06-08 03:34:11 UTC


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0676 None None None 2018-04-10 08:15:04 UTC
Red Hat Product Errata RHSA-2018:1062 None None None 2018-04-10 09:38:52 UTC
Red Hat Product Errata RHSA-2019:1170 None None None 2019-05-14 19:08:28 UTC
Red Hat Product Errata RHSA-2019:1190 None None None 2019-05-14 20:26:45 UTC

Description Adam Mariš 2017-12-13 12:12:21 UTC
The usb_destroy_configuration() function in 'drivers/usb/core/config.c' in the USB core subsystem in the Linux kernel through 4.14.5 does not consider the maximum number of configurations and interfaces before attempting to release resources, which allows local users to cause a denial of service (due to out-of-bounds write access) or possibly have unspecified other impact via a crafted USB device. Due to the nature of the flaw, privilege escalation cannot be fully ruled out, although we believe it is unlikely.

References:

http://seclists.org/oss-sec/2017/q4/392

https://www.spinics.net/lists/linux-usb/msg163644.html

https://marc.info/?t=151302896700010&r=1&w=2 (a whole thread)

https://www.spinics.net/lists/linux-usb/msg163693.html

https://marc.info/?t=151310689000001&r=1&w=2 (a whole thread)

An upstream patch:

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

Comment 1 Adam Mariš 2017-12-13 12:13:21 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1525476]

Comment 5 Vladis Dronov 2018-01-21 23:30:11 UTC
Statement:

This issue affects the Linux kernel packages as shipped with Red Hat Enterprise Linux 5. This is not currently planned to be addressed in future updates of the product due to its life cycle. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.

This issue affects the versions of the Linux kernel as shipped with Red Hat Enterprise Linux 6, 7, its real-time kernel, Red Hat Enterprise MRG 2, Red Hat Enterprise Linux 7 for ARM 64 and Red Hat Enterprise Linux 7 for Power 9 LE. Future Linux kernel updates for the respective releases may address this issue.

Comment 6 Vladis Dronov 2018-01-21 23:30:39 UTC
What is Red Hat Enterprise Linux 7 for ARM 64,
        Red Hat Enterprise Linux 7 for Power 9 LE

The kernel package as shipped with Red Hat Enterprise Linux 7 for ARM 64 and Red Hat Enterprise Linux 7 for Power 9 LE is an updated kernel intended to support new architectures not available at the time of Red Hat Enterprise Linux 7 original shipping. The new kernel version is based on an upstream Linux kernel version 4.11. The offering is distributed with other updated packages, but most of the userspace is the standard Red Hat Enterprise Linux 7 Server RPM files.

For more information please refer to:

https://access.redhat.com/articles/3158541
https://access.redhat.com/articles/3158511

Comment 7 errata-xmlrpc 2018-04-10 08:14:43 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2018:0676 https://access.redhat.com/errata/RHSA-2018:0676

Comment 8 errata-xmlrpc 2018-04-10 09:38:30 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2018:1062 https://access.redhat.com/errata/RHSA-2018:1062

Comment 10 errata-xmlrpc 2019-05-14 19:08:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.4 Extended Update Support

Via RHSA-2019:1170 https://access.redhat.com/errata/RHSA-2019:1170

Comment 11 errata-xmlrpc 2019-05-14 20:26:43 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise MRG 2

Via RHSA-2019:1190 https://access.redhat.com/errata/RHSA-2019:1190


Note You need to log in before you can comment on or make changes to this bug.