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 ...
Status: NEW
Alias: CVE-2017-17558
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
(Show other bugs)
Version: unspecified
Hardware: All Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=moderate,public=20171211,repor...
Keywords: Security
Depends On: 1536889 1525476 1536886 1536887 1536888 1536890
Blocks: 1525480
TreeView+ depends on / blocked
 
Reported: 2017-12-13 12:12 UTC by Adam Mariš
Modified: 2018-08-28 22:27 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.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0676 None None None 2018-04-10 08:15 UTC
Red Hat Product Errata RHSA-2018:1062 None None None 2018-04-10 09:38 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


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