]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use a sleepable lock for midistat functions.
authormarkj <markj@FreeBSD.org>
Tue, 20 Aug 2019 17:52:12 +0000 (17:52 +0000)
committermarkj <markj@FreeBSD.org>
Tue, 20 Aug 2019 17:52:12 +0000 (17:52 +0000)
commit578ed341896611f6b419255564139e371a3344f2
tree0041e31fde36f8a756824d85743489156fafaf38
parentf555099cb8f204e0e0b079cacc0a81a0012926cb
Use a sleepable lock for midistat functions.

Otherwise the mutex needs to be dropped when copying out the midistat
sbuf, leading to a race which allows one to read kernel memory beyond
the end of the sbuf buffer.

Reported and tested by: pho
Security: CVE-2019-5612
sys/dev/sound/midi/midi.c