Description
In the Linux kernel, the following vulnerability has been resolved: ALSA: seq: Don't leak the extension cell pointer in the bounce payload The bounce_error_event() embeds the failed event in the bounce payload by pointing data.ext.ptr at it. When that event is a queued variable-length event, its own data.ext.ptr holds the address of its first extension cell, put there by snd_seq_event_dup(). The payload goes out verbatim through snd_seq_expand_var_event(), so the address reaches userspace. That is the same address commit 705dd6dcbc0e ("ALSA: seq: Clear variable event pointer on read") removed from the event header. The read path still clears it there, just above the call that expands the payload. Embed a sanitised copy instead, treated exactly as snd_seq_read() treats the header. A stack copy is enough because delivery is synchronous and snd_seq_event_dup() copies before returning. An unprivileged client reaches this by setting SNDRV_SEQ_FILTER_BOUNCE, queueing a variable-length event to a port that does not exist and reading the bounce back. Eight bytes on 64-bit, from its own pool.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
05e2358fec8812c37516ccea63bc4b9956d864ba to < c92b2e6e418a3885758438dddcead6e954a9e095affected93d260ce43a81df579c98bee92b91316df9c1c57 to < 42c3f856d13a91a0d4c302a0c6854813621136dbaffecteddae23c545eb5a2be3b27a82fd0f611894fb8ab69 to < b1e8d40663997aacaa198f37ce6893e07aaba77aaffectedefc86691e4d8083d9e380ea95042c2cf679f65fd to < 6e6e471eef1d5d8cb056c7d364023fe048249204affectedefc86691e4d8083d9e380ea95042c2cf679f65fd to < 59e1592d3c270ff4642d5d6dc55c545306eb0693affectedeae296065ede41a24040e6a7c909ec970f78b4ebaffected0527a56cb327021cb73167cfddf0e49efa043500affected6.12.97 to < 6.12.110affected6.18.40 to < 6.18.52affected6.6.160 to < 6.7affected7.1.5 to < 7.2affected
Linux Linux
Default version status: affected
7.2affected0 to < 7.2unaffected6.12.110 to ≤ 6.12.*unaffected6.18.52 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/c92b2e6e418a3885758438dddcead6e954a9e095 ↗
- https://git.kernel.org/stable/c/42c3f856d13a91a0d4c302a0c6854813621136db ↗
- https://git.kernel.org/stable/c/b1e8d40663997aacaa198f37ce6893e07aaba77a ↗
- https://git.kernel.org/stable/c/6e6e471eef1d5d8cb056c7d364023fe048249204 ↗
- https://git.kernel.org/stable/c/59e1592d3c270ff4642d5d6dc55c545306eb0693 ↗