diff options
| author | Takashi Iwai <tiwai@suse.de> | 2026-08-06 12:04:31 +0200 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-08-06 17:02:02 +0200 |
| commit | 02442d5fe8ee365a084b055d4fa81a0c1abfc3fd (patch) | |
| tree | ae9f6e8903f54e3941f686f4e61ad8d7d32b0a4e /include | |
| parent | a7e2cca7941bb99d0b1081bf05f00f6c9ecde2d4 (diff) | |
| download | linux-02442d5fe8ee365a084b055d4fa81a0c1abfc3fd.tar.gz linux-02442d5fe8ee365a084b055d4fa81a0c1abfc3fd.zip | |
ALSA: dummy: Check card index validity at probe
snd_dummy_probe() blindly trusts that the given devptr->id value is
within the proper card index range. It's OK for the devices the
driver itself creates at the module probe time, but if the device is
bound manually via sysfs interface, this could be -1 as "none", and
this leads to OOB access for index[] and other parameters.
Add a sanity check for the card index and warn/correct it if it's a
value out of the range.
Reported-by: syzbot+2fb5d1f7cc4c1f132bcc@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/6a73bd4d.01d0871a.3a0d52.0005.GAE@google.com
Cc: <stable@vger.kernel.org>
Link: https://patch.msgid.link/20260806100433.1287393-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
