All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ALSA: usb-audio: Limit recursion depth when walking audio units
@ 2026-11-24 13:25 Yannick Müller
  2026-11-24 13:25 ` [PATCH 1/2] ALSA: usb-audio: Limit the depth of the clock topology walk Yannick Müller
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Yannick Müller @ 2026-11-24 13:25 UTC (permalink / raw)
  To: tiwai, perex; +Cc: linux-sound, Yannick Müller

Fix a bug that makes it possible to overflow the kernel stack by
specifying a long chain of unique nested audio units. The current
implementation lets an external device specify up to 255 audio units,
which results in a stack overflow, as walking through all of them
recursively leads to too many nested calls.

Limit the recursion depth to 16 nested units so that a device can no
longer exhaust the kernel stack with a long chain.

Yannick Müller (2):
  ALSA: usb-audio: Limit the depth of the clock topology walk
  ALSA: usb-audio: Limit the unit nesting depth in the mixer parser

 sound/usb/clock.c | 20 +++++++++++++++-----
 sound/usb/mixer.c | 25 ++++++++++++++++++++++++-
 2 files changed, 39 insertions(+), 6 deletions(-)


base-commit: 8d7fe9885c62fc9a95bf55d9db244d9672a8aadc
-- 
2.47.3


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-25 13:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 13:25 [PATCH 0/2] ALSA: usb-audio: Limit recursion depth when walking audio units Yannick Müller
2026-11-24 13:25 ` [PATCH 1/2] ALSA: usb-audio: Limit the depth of the clock topology walk Yannick Müller
2026-11-24 13:30   ` sashiko-bot
2026-11-24 13:25 ` [PATCH 2/2] ALSA: usb-audio: Limit the unit nesting depth in the mixer parser Yannick Müller
2026-11-25 13:44 ` [PATCH 0/2] ALSA: usb-audio: Limit recursion depth when walking audio units Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.