It was found that the raw midi kernel driver does not protect against concurrent access which leads to a double realloc (double free) in sndrawmidiinputparams() and sndrawmidioutputstatus() which are part of sndrawmidiioctl() handler in rawmidi.c file. A malicious local attacker could possibly use this for privilege escalation.
[
{
"target": {
"file": "sound/core/rawmidi.c",
"function": "snd_rawmidi_output_params"
},
"id": "CVE-2018-10902-17ab9815",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@39675f7a7c7e7702f7d5341f1e0d01db746543a0",
"digest": {
"length": 740.0,
"function_hash": "47592594093452486145096741910697240426"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
},
{
"target": {
"file": "sound/core/rawmidi.c",
"function": "snd_rawmidi_input_params"
},
"id": "CVE-2018-10902-61df2c6f",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@39675f7a7c7e7702f7d5341f1e0d01db746543a0",
"digest": {
"length": 581.0,
"function_hash": "231493118801884591439354558709258719162"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
},
{
"target": {
"file": "sound/core/rawmidi.c"
},
"id": "CVE-2018-10902-b6f32cee",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@39675f7a7c7e7702f7d5341f1e0d01db746543a0",
"digest": {
"threshold": 0.9,
"line_hashes": [
"103869709904790835861354663284100685255",
"172476687922691229711907875173726494451",
"185273750097819839362210831901844618225",
"247368664876064755449112871235901120017",
"119330573800510987977087301618403311055",
"79079938549353204349676763168407178902",
"248054940930533709656909776563259102927",
"11764473645761973611497286295848278807",
"240525041752463322755580079859220987667",
"229608825390606869486696562382087297805",
"145344038032392187566964051422724512952",
"230527542448507881056313015956447169522",
"25557757486625145399115885709841825889",
"94559848586758992792161404776801148222",
"101560482263486459603977285322951867676",
"172476687922691229711907875173726494451",
"274808959102814311486236919791767140791",
"200434715665722562508531963480973766593",
"119330573800510987977087301618403311055",
"79079938549353204349676763168407178902",
"248054940930533709656909776563259102927",
"11764473645761973611497286295848278807",
"240525041752463322755580079859220987667",
"229608825390606869486696562382087297805",
"30691522771064682678490959484270665265",
"37525951676602685050809914773409080113",
"240038671349205959905973837927880106661"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-10902.json"