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
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: impact=important,public=20180821:0328...
Keywords: Security
Depends On: 1593086 1593082 1593083 1593084 1593085 1593087 1593088 1593089 1593090 1620291 1620292
Blocks: 1590715
TreeView+ depends on / blocked
 
Reported: 2018-06-13 09:24 UTC by Andrej Nemec
Modified: 2019-06-11 11:13 UTC (History)
49 users (show)

(edit)
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:
(edit)
Last Closed: 2019-06-10 10:28:49 UTC


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:3083 None None None 2018-10-30 07:34 UTC
Red Hat Product Errata RHSA-2018:3096 None None None 2018-10-30 07:40 UTC
Red Hat Product Errata RHSA-2019:0415 None None None 2019-02-26 12:04 UTC
Red Hat Product Errata RHSA-2019:0641 None None None 2019-03-26 07:45 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


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