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 EC973334C00 for ; Wed, 24 Dec 2025 12:28:54 +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=1766579335; cv=none; b=s2E3wdYTcIpwJJNC96cTpwsn8iHKTvvLZsLydbzgHd0AwaIgA0Fh67rtuLwF25fuK/Mn0M9Thy8TDhQlySFwnydY54reOlMOh/+xoAirOT2yHFSvXScYN9m276DcqupHO0hvZLioT0xsNglzFGzIi2r2Grqx04Q+xU8W4Rblr74= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766579335; c=relaxed/simple; bh=0d+yFAl8PqMtDnDOkU3AUksIUjfE/U1VRFVHJOHmMSQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tCw7aYDrLX+pedKvDoUQPJIhG97l9Imw77xwn/HzhhsedLTvdqzMn1AaCMcixqnI1+ckZfyDaxqMKFkfdnsx2R8nQbrmeU5OuMcJ5zpLbqOrc4ISS1gLTG1n5XFG77vKn/VX0x5xc+N1eKSgCmZd0uz4ZIFTwk+lQUUsy3NSEcU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fetHSxCO; 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="fetHSxCO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DE38C4CEFB; Wed, 24 Dec 2025 12:28:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766579334; bh=0d+yFAl8PqMtDnDOkU3AUksIUjfE/U1VRFVHJOHmMSQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=fetHSxCO33k/ubTNRIvDeeUkpVdNUQjyCBXGAtnj6MrCaIVWHiLM0rHTBcoDMVEwn dScqX/YiL8NQ4Bu3ROD+IOEPozHjFCPrdIPrAPWGVF+mpzCE/3mufEkOu7kWHMSIfP ikSTIWCvXCd8WqmIyQ4VEAQTYJSxhButBvvlB+JM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54072: ALSA: pcm: Fix potential data race at PCM memory allocation helpers Date: Wed, 24 Dec 2025 13:27:05 +0100 Message-ID: <2025122432-CVE-2023-54072-4a34@gregkh> X-Mailer: git-send-email 2.52.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=2915; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=x4JVEukS+q0J1kTqyYahNLITxDGikPR7HntrZUTNg8I=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnet3+8rm9uWN1+7MmUBpc3IacnTPtyYfVHxrtFe/tcu LtaN3/V7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJGHYwLDhsLiQx5W5gWeY/ hdzdMrOXMFh+42KYn/Yk/8fkD69dBfIK4nfq/BTOVL80DQA= 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: pcm: Fix potential data race at PCM memory allocation helpers The PCM memory allocation helpers have a sanity check against too many buffer allocations. However, the check is performed without a proper lock and the allocation isn't serialized; this allows user to allocate more memories than predefined max size. Practically seen, this isn't really a big problem, as it's more or less some "soft limit" as a sanity check, and it's not possible to allocate unlimitedly. But it's still better to address this for more consistent behavior. The patch covers the size check in do_alloc_pages() with the card->memory_mutex, and increases the allocated size there for preventing the further overflow. When the actual allocation fails, the size is decreased accordingly. The Linux kernel CVE team has assigned CVE-2023-54072 to this issue. Affected and fixed versions =========================== Fixed in 5.4.255 with commit 7e1d1456c8db9949459c5a24e8845cfe92430b0f Fixed in 5.10.193 with commit 7e11c58b2620a22c67a5ae28d64ce383890ee9f4 Fixed in 5.15.129 with commit a0ab49e7a758b488b2090171a75d50735c0876f6 Fixed in 6.1.39 with commit 3eb4e47a94e3f76521d7d344696db61e6a9619c7 Fixed in 6.4.4 with commit 773ccad902f67583a58b5650a2f8d8daf2e76fac Fixed in 6.5 with commit bd55842ed998a622ba6611fe59b3358c9f76773d 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-2023-54072 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/core/pcm_memory.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/7e1d1456c8db9949459c5a24e8845cfe92430b0f https://git.kernel.org/stable/c/7e11c58b2620a22c67a5ae28d64ce383890ee9f4 https://git.kernel.org/stable/c/a0ab49e7a758b488b2090171a75d50735c0876f6 https://git.kernel.org/stable/c/3eb4e47a94e3f76521d7d344696db61e6a9619c7 https://git.kernel.org/stable/c/773ccad902f67583a58b5650a2f8d8daf2e76fac https://git.kernel.org/stable/c/bd55842ed998a622ba6611fe59b3358c9f76773d