lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_432CC56D1097C8EA26EC0ECDCC787E6CEC0A@qq.com>
Date: Tue, 16 Jul 2024 18:20:45 +0800
From: Edward Adam Davis <eadavis@...com>
To: syzbot+78d5b129a762182225aa@...kaller.appspotmail.com
Cc: linux-kernel@...r.kernel.org,
	syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [sound?] [usb?] UBSAN: shift-out-of-bounds in parse_audio_unit

csize is 0 ?

#syz test: upstream a19ea421490d

diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c
index 409fc1164694..8e596af23bee 100644
--- a/sound/usb/mixer.c
+++ b/sound/usb/mixer.c
@@ -1999,6 +1999,9 @@ static int parse_audio_feature_unit(struct mixer_build *state, int unitid,
 
 	if (state->mixer->protocol == UAC_VERSION_1) {
 		csize = hdr->bControlSize;
+		printk("c: %d, bLen: %d, %d, \n", channels, hdr->bLength, csize, __func__);
+		if (hdr->bLength < 7 || csize < 1)
+			return -EINVAL;
 		channels = (hdr->bLength - 7) / csize - 1;
 		bmaControls = hdr->bmaControls;
 	} else if (state->mixer->protocol == UAC_VERSION_2) {


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ