Bug 1590720 (CVE-2018-10902) - CVE-2018-10902 kernel: MIDI driver race condition leads to a double-free
Summary: CVE-2018-10902 kernel: MIDI driver race condition leads to a double-free
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2018-10902
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1593082 1593083 1593084 1593085 1593086 1593087 1593088 1593089 1593090 1620291 1620292 1740219 1740220
Blocks: 1590715
TreeView+ depends on / blocked
 
Reported: 2018-06-13 09:24 UTC by Andrej Nemec
Modified: 2021-12-10 16:21 UTC (History)
49 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
It was found that the raw midi kernel driver does not protect against concurrent access which leads to a double realloc (double free) in snd_rawmidi_input_params() and snd_rawmidi_output_status() which are part of snd_rawmidi_ioctl() handler in rawmidi.c file. A malicious local attacker could possibly use this for privilege escalation.
Clone Of:
Environment:
Last Closed: 2019-06-10 10:28:49 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:3083 0 None None None 2018-10-30 07:34:31 UTC
Red Hat Product Errata RHSA-2018:3096 0 None None None 2018-10-30 07:40:34 UTC
Red Hat Product Errata RHSA-2019:0415 0 None None None 2019-02-26 12:04:00 UTC
Red Hat Product Errata RHSA-2019:0641 0 None None None 2019-03-26 07:45:15 UTC
Red Hat Product Errata RHSA-2019:3217 0 None None None 2019-10-29 12:55:40 UTC
Red Hat Product Errata RHSA-2019:3967 0 None None None 2019-11-26 11:52:24 UTC

Description Andrej Nemec 2018-06-13 09:24:54 UTC
It was found that the raw midi kernel driver does not protect against concurrent access which leads to a double-realloc (double free) in snd_rawmidi_input_params() and snd_rawmidi_output_status() which are part of snd_rawmidi_ioctl() handler in rawmidi.c file. A malicious local attacker could possibly use this for privilege escalation.

Upstream:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=39675f7a7c7e7702f7d5341f1e0d01db746543a0

Comment 7 Vladis Dronov 2018-08-22 21:53:54 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1620291]

Comment 9 Justin M. Forbes 2018-08-23 11:55:57 UTC
This was fixed for Fedora users with the 4.17.10 stable kernel update

Comment 10 Wade Mealing 2018-09-11 04:07:52 UTC
Statement:

This flaw affects all current shipping releases of Red Hat Enterprise Linux. This flaw requires real or emulated midi hardware available in the system. Fixes will be delivered when available.

Comment 11 Petr Matousek 2018-10-17 12:40:52 UTC
Acknowledgments:

Name: Trend Micro Zero Day Initiative

Comment 12 errata-xmlrpc 2018-10-30 07:34:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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

Comment 13 errata-xmlrpc 2018-10-30 07:40:16 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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

Comment 17 errata-xmlrpc 2019-02-26 12:03:59 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

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

Comment 18 errata-xmlrpc 2019-03-26 07:45:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise MRG 2

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

Comment 20 errata-xmlrpc 2019-10-29 12:55:38 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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

Comment 21 errata-xmlrpc 2019-11-26 11:52:20 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.5 Extended Update Support

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


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