Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0329014EC60 for ; Tue, 24 Dec 2024 11:30:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735039827; cv=none; b=b+CviFdSZg60wT2GWmt85fljSflOUiwsaVx5ol7LsquSN7CP6JBRSUpU91TnU6ZlYAjSPmiGlkk8YL42xNW4PK2x82+YfReRLmr44hKAy8+1D4gCy5nGshKBrVhoNpuuweVFDny4Dkg60TRoBBmZb2WuFnNbw/EF3hZdtthMlHk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735039827; c=relaxed/simple; bh=rkMebnKHzFCrT7VU/T7KkjCYqW9KZRArCGk/twIDaqU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VoJ+fdAbmyjVwlkGuXkoozf5Rff8xt6Gwv1JBrli+dh0lQAdIeXks0lb2oZVbc83xr3KS9abzD8qacKx5S88mg8GmJ5SB15lvUumJNREcfCSfAGo+gQaVMa8QojzBvPNZS3aCbRyqk2UBY6UIiGYvGddfX3ImK+dNhRjS2oesr8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AfZjNLPc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="AfZjNLPc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15902C4CED0; Tue, 24 Dec 2024 11:30:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735039826; bh=rkMebnKHzFCrT7VU/T7KkjCYqW9KZRArCGk/twIDaqU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AfZjNLPcwXdGgFwaq7bK/Y/6C9TDbs1UVJu+qWfMDP+zdf/nJyvzEcj5DUQBf1alN 4SjS1r3y+5Zd7U00Hi/Zb2Y6jC31q15djFhCyLwh+L4sl80pbvGZLSvJ3tM8f1Fpnd kqGQexM8gPlxaOWJIIh4TtVa9Y1F9sqnoAqiK1Lk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53150: ALSA: usb-audio: Fix out of bounds reads when finding clock sources Date: Tue, 24 Dec 2024 12:29:30 +0100 Message-ID: <2024122427-CVE-2024-53150-3a7d@gregkh> X-Mailer: git-send-email 2.47.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3241; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rkMebnKHzFCrT7VU/T7KkjCYqW9KZRArCGk/twIDaqU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlZs8X3Tf10VM/IZdsKpvA9N25+OPojRPHilYctms99d k24+c8utiOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAm0vGCYQ7v3u9dCxf/1k35 H3bqVCH/fZE9W+czLDi3a/sEj9XBEQvnT3ls0Ka38fz+10cB X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ALSA: usb-audio: Fix out of bounds reads when finding clock sources The current USB-audio driver code doesn't check bLength of each descriptor at traversing for clock descriptors. That is, when a device provides a bogus descriptor with a shorter bLength, the driver might hit out-of-bounds reads. For addressing it, this patch adds sanity checks to the validator functions for the clock descriptor traversal. When the descriptor length is shorter than expected, it's skipped in the loop. For the clock source and clock multiplier descriptors, we can just check bLength against the sizeof() of each descriptor type. OTOH, the clock selector descriptor of UAC2 and UAC3 has an array of bNrInPins elements and two more fields at its tail, hence those have to be checked in addition to the sizeof() check. The Linux kernel CVE team has assigned CVE-2024-53150 to this issue. Affected and fixed versions =========================== Fixed in 5.4.287 with commit a632bdcb359fd8145e86486ff8612da98e239acd Fixed in 5.10.231 with commit 45a92cbc88e4013bfed7fd2ccab3ade45f8e896b Fixed in 5.15.174 with commit ab011f7439d9bbfd34fd3b9cef4b2d6d952c9bb9 Fixed in 6.1.120 with commit da13ade87a12dd58829278bc816a61bea06a56a9 Fixed in 6.6.64 with commit 74cb86e1006c5437b1d90084d22018da30fddc77 Fixed in 6.11.11 with commit ea0fa76f61cf8e932d1d26e6193513230816e11d Fixed in 6.12.2 with commit 096bb5b43edf755bc4477e64004fa3a20539ec2f Fixed in 6.13-rc1 with commit a3dd4d63eeb452cfb064a13862fb376ab108f6a6 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-2024-53150 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/clock.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/a632bdcb359fd8145e86486ff8612da98e239acd https://git.kernel.org/stable/c/45a92cbc88e4013bfed7fd2ccab3ade45f8e896b https://git.kernel.org/stable/c/ab011f7439d9bbfd34fd3b9cef4b2d6d952c9bb9 https://git.kernel.org/stable/c/da13ade87a12dd58829278bc816a61bea06a56a9 https://git.kernel.org/stable/c/74cb86e1006c5437b1d90084d22018da30fddc77 https://git.kernel.org/stable/c/ea0fa76f61cf8e932d1d26e6193513230816e11d https://git.kernel.org/stable/c/096bb5b43edf755bc4477e64004fa3a20539ec2f https://git.kernel.org/stable/c/a3dd4d63eeb452cfb064a13862fb376ab108f6a6