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 B928B2AF00 for ; Sat, 4 Oct 2025 15:17:16 +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=1759591036; cv=none; b=U3BV0AvcdPXxiHTc5YmpUOzY1q9cRDTvkB6TctKTNOdCeNsc7AhSfL34iS+krfonhP6G8JMdPnw95nE+OnGRy3/FHTPKHMRO6LYozCSJlJigojdKAfK5OCGSKfCebz0BxCjHrw7DXaFOWQ4CcpZYc3ASXcZ8UymudCEH+MB+fk8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591036; c=relaxed/simple; bh=5afX0J1/pHRy92vlKjSUEwruSYvY8DI2b5ZuobjEmS0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IYjI+hgG3vAWQfA0CQ3ZUliCf9f+CA9aLXHpZ5FVYr6/Wk8KwGr8yx9SKOUsCYqlsn8eBt6qLobEYxJ/ICEfCzZmptoJcB22XnRRDdFaVMPuKUYm3VR7abO7EnzTzoawkrCeT43FawL5cMqdQf4hQ2epk9Ga8RQTqYPQMnJnL1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jKJeUo/n; 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="jKJeUo/n" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E254C4CEF1; Sat, 4 Oct 2025 15:17:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591036; bh=5afX0J1/pHRy92vlKjSUEwruSYvY8DI2b5ZuobjEmS0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jKJeUo/n/iV94KKCMCc4PN4U5uorByGxuFKqOaoazyKzeZTrhX3W8tfb7KmdwFvuk XU1QW7YZ1uAD+/BVMxJI5hcuu2oHcGktq1ACLFKV+4tkgDR9fauAAE2uqA8iLiCLVd 6BwAl06Vtn1LhHb6C8hveDlXwP8r4fpezK1JUFnI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50484: ALSA: usb-audio: Fix potential memory leaks Date: Sat, 4 Oct 2025 17:16:43 +0200 Message-ID: <2025100440-CVE-2022-50484-1a6a@gregkh> X-Mailer: git-send-email 2.51.0 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=3053; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zqF5ceFBy8y/MKwtOaQmcdvpBDl1FmU0RwFQuorckvU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPrSK84gX1O39o54r6t02ReDWr92rsEqHYX7+tbV2n2 7FscFbpiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIms3cMwv05i5+UFhQsD73FM i1hzPjPT71J7IMP84vomjyDWaTEJX0Q23X/6+OySvZ8mAQA= 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: usb-audio: Fix potential memory leaks When the driver hits -ENOMEM at allocating a URB or a buffer, it aborts and goes to the error path that releases the all previously allocated resources. However, when -ENOMEM hits at the middle of the sync EP URB allocation loop, the partially allocated URBs might be left without released, because ep->nurbs is still zero at that point. Fix it by setting ep->nurbs at first, so that the error handler loops over the full URB list. The Linux kernel CVE team has assigned CVE-2022-50484 to this issue. Affected and fixed versions =========================== Fixed in 4.9.331 with commit 0604e5e5537af099ea2f6dfd892afe5c92db8a80 Fixed in 4.14.296 with commit 28d8d267af5d73f91d7640cbdb4024703256e36c Fixed in 4.19.262 with commit 46f0aed47673e275d682af60ed26dcc28add8eae Fixed in 5.4.220 with commit 988ec0cd0a2643c25c1658f7c33de2e15a5a2e31 Fixed in 5.10.150 with commit bc1d16d282bca421c6fc31de4b8fd412010f01bd Fixed in 5.15.75 with commit 0672215994e2347a9b4f145e2bc1709b1e01cee3 Fixed in 5.19.17 with commit faa8c1ed77d0169955b9b3516b714cc5fb512f27 Fixed in 6.0.3 with commit e4442410f76d66b9f7e854010bce04853f665324 Fixed in 6.1 with commit 6382da0828995af87aa8b8bef28cc61aceb4aff3 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-2022-50484 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/endpoint.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/0604e5e5537af099ea2f6dfd892afe5c92db8a80 https://git.kernel.org/stable/c/28d8d267af5d73f91d7640cbdb4024703256e36c https://git.kernel.org/stable/c/46f0aed47673e275d682af60ed26dcc28add8eae https://git.kernel.org/stable/c/988ec0cd0a2643c25c1658f7c33de2e15a5a2e31 https://git.kernel.org/stable/c/bc1d16d282bca421c6fc31de4b8fd412010f01bd https://git.kernel.org/stable/c/0672215994e2347a9b4f145e2bc1709b1e01cee3 https://git.kernel.org/stable/c/faa8c1ed77d0169955b9b3516b714cc5fb512f27 https://git.kernel.org/stable/c/e4442410f76d66b9f7e854010bce04853f665324 https://git.kernel.org/stable/c/6382da0828995af87aa8b8bef28cc61aceb4aff3