Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9CA23CB574 for ; Sun, 18 Oct 2026 15:58:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792339120; cv=none; b=E3Z0UxVGc9j5ayEh2Yce2NEGUyzH1bLyRjoeSN3gxVJVuThMVPgKZJry5duHjvOG5FfVF7NYcMENP0w9CvdWtgrqvAF4CMliywQX34gXWLUkuWZIV4/keNJfZdYRSMLqPtq8ix4RIRDcAkxqxL9Irwfcu6WAPC6Z+TtWBwkM3YE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792339120; c=relaxed/simple; bh=Lz6yqQcyNQ+qNBi1GrKnfXk64lXwuf11pnH7watecpE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pbiOsfARaH4A7m+gHlur8cD3UhXktOizmn96TbmhjhNTchmxUTGc5Hy7ZOvUnmZ7/5TM/cg7bq46xrZzh01pT8irmUthCbY9Zn/oLmSFrjHW0tCE1kFRRxCmV2q5alU4JdEOlKthfT39sF0VL0J1DVo369JJKJ5VWf/uy6H8FzI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vgGGp1e+; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vgGGp1e+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62DA91F000C4; Sun, 18 Oct 2026 15:58:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792339118; bh=ktSB8wEb3VegL2hREvO+P1J6mBMcBaUdE1oVxMcxFus=; h=From:To:Cc:Subject:Date:Reply-To; b=vgGGp1e+h1pvb2/ffL/wAS1OcDG188SUwWOdMyIiS51u1psjSKn/uMAd1/ZXHPSKa gAKy5gryyPeewweegVZYDl7pKg5PoHyXLKfzQNWPtwDTMbEjDO7jD6y5FAqcMYGbET qncVP0ZkcFOR4SSvh5l+ZN9YqzeeyRdsBpBIAZbY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98741: ALSA: ua101: reject mismatched capture/playback packet sizes Date: Sun, 18 Oct 2026 17:45:16 +0200 Message-ID: <2026101813-CVE-2026-98741-2c60@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4494; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6Z825vWPdICxSqxr9yxdZhe5winBGYBzBPqNqmDgUtY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXvpeMr5UvcRCLK8p4VAw09bSvhWMWw53c/Iv3nUvT nmOZ/HGjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIOTWG+Q5LLr7Qal/O4d+T /9aGs2eq3e3PLxkWLNvGdKpzo6oFy9OTTtYbVq/Wdd76DAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ALSA: ua101: reject mismatched capture/playback packet sizes detect_usb_format() cross-checks bSubframeSize, bBitResolution and tSamFreq between the capture and playback interfaces, but never relates the two endpoints' wMaxPacketSize and bNrChannels. Each playback URB gets a buffer of ua->playback.max_packet_bytes, while the number of bytes written into it is derived from the capture stream: capture_urb_complete() computes frames from the received capture packet and capture.frame_bytes, and start_usb_playback() and playback_work() multiply that by playback.frame_bytes. A device declaring a large capture wMaxPacketSize with few capture channels and a small playback wMaxPacketSize with many playback channels therefore memset()s and memcpy()s past the end of the playback buffer, in open() of the PCM node the driver registers during probe. usb_submit_urb() rejects the over-long iso_frame_desc[0].length with -EMSGSIZE, but only after the write. Reject such descriptors at probe time. Genuine UA-101/UA-1000 hardware declares proportional packet sizes and is unaffected. BUG: KASAN: slab-out-of-bounds in start_usb_playback (sound/usb/misc/ua101.c:586) Write of size 2048 at addr ffff8881098f3c00 by task exploit/5021 Call Trace: __asan_memset (mm/kasan/shadow.c:84) start_usb_playback (sound/usb/misc/ua101.c:586) playback_pcm_open (sound/usb/misc/ua101.c:679) snd_pcm_open_substream (sound/core/pcm_native.c:2829) snd_pcm_open (sound/core/pcm_native.c:2865 sound/core/pcm_native.c:2932) snd_pcm_playback_open (sound/core/pcm_native.c:2891) snd_open (sound/core/sound.c:166) chrdev_open (fs/char_dev.c:411) do_dentry_open (fs/open.c:996) vfs_open (fs/open.c:1101) path_openat (fs/namei.c:4837 fs/namei.c:5000) do_file_open (fs/namei.c:5029) do_sys_openat2 (fs/open.c:1417) __x64_sys_openat (fs/open.c:1423 fs/open.c:1439 fs/open.c:1434) do_syscall_64 (arch/x86/entry/syscall_64.c:61 arch/x86/entry/syscall_64.c:84) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121) The buggy address belongs to the object at ffff8881098f3c00 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 0 bytes inside of allocated 168-byte region [ffff8881098f3c00, ffff8881098f3ca8) The Linux kernel CVE team has assigned CVE-2026-98741 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.34 with commit 63978ab3e3e963db28093b53bb4598f2702e1ad7 and fixed in 6.12.113 with commit fd3a7bf0d988b0878a1957df150edb35f81db87e Issue introduced in 2.6.34 with commit 63978ab3e3e963db28093b53bb4598f2702e1ad7 and fixed in 6.18.56 with commit eb0c7fda59cf650076f8ed5b949a6c8441aa3606 Issue introduced in 2.6.34 with commit 63978ab3e3e963db28093b53bb4598f2702e1ad7 and fixed in 7.2.10 with commit 4294fe57048594a9e158b61c967bb7f943cda477 Issue introduced in 2.6.34 with commit 63978ab3e3e963db28093b53bb4598f2702e1ad7 and fixed in 7.3-rc6 with commit 86f86e6fdedc33c5b8d38b9208b350f8accf57ee Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-98741 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: sound/usb/misc/ua101.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/fd3a7bf0d988b0878a1957df150edb35f81db87e https://git.kernel.org/stable/c/eb0c7fda59cf650076f8ed5b949a6c8441aa3606 https://git.kernel.org/stable/c/4294fe57048594a9e158b61c967bb7f943cda477 https://git.kernel.org/stable/c/86f86e6fdedc33c5b8d38b9208b350f8accf57ee