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 ACE63288C24 for ; Tue, 30 Dec 2025 12:16:20 +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=1767096980; cv=none; b=ucwPtbaG8ip3tQRPmD3wdDZORrus89gKFyy0H4H09lmZuvHgH78nGAueBvfFtiMOUW4TBreG0Uj7RvosbZuhigm3dcckaFBuX8CnsLXvEBnKWs5vlWCW7vs8eGYFd7F/MTzrV8r4aX0xv2+7Qqqy3W3NDKIaT28DDkq+htPJSu4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096980; c=relaxed/simple; bh=pueFAVIzkrls2j+ArM1/ndpItSKxMfS/GRZKYMJzZFE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=N2gpKtP/GdE4OfG8qmP9oXCWeHhz4+PeSL1gdaFPAIY/4r3wjiD6I5UZKc2uaa/lBQG/Q/gdN+JY4F+7SS0xB6Sd5HeEj22A75EoG/v2Y5so1b9UYnjab/ig92icXb+3J+uH0ATGVFK21nkJ9ty5tY4QacEy8z2Oi3RWqB7IyX4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tYSuhVzP; 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="tYSuhVzP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A1A5C4CEFB; Tue, 30 Dec 2025 12:16:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096980; bh=pueFAVIzkrls2j+ArM1/ndpItSKxMfS/GRZKYMJzZFE=; h=From:To:Cc:Subject:Date:Reply-To:From; b=tYSuhVzPUXCLtZmx7kMp+H5aAkJJZ4b3swey7biGxtaR6Hsp0fYEz68qSHJlBeStj /ukazJJvu95mxDc6WChXP2jj/mN/B+HnW99BVg5Q9kMd9iX4aRBkaaByc+iZRm9H64 oC+SAq4sqViwn9E7ymkjahHFkhoVU7+qMIPS/mkU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54212: ALSA: pcm: Move rwsem lock inside snd_ctl_elem_read to prevent UAF Date: Tue, 30 Dec 2025 13:13:42 +0100 Message-ID: <2025123024-CVE-2023-54212-dc0b@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=2338; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rb3wLP3imKCfl9BHMVwxtuW5eUejor/+cfC7xMHTSfQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB5+kb77DKF69z/Duc3FeySXH6z52nPi89nLYWeNbb FZe/T6qHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR+VsM8zTLTa6K9157VOyf 4nhw8foXnbMiCxnm+x+K1taznTTvK5OQz9/JvtOXnUxiBwA= 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: Move rwsem lock inside snd_ctl_elem_read to prevent UAF [ Note: this is a fix that works around the bug equivalently as the two upstream commits: 1fa4445f9adf ("ALSA: control - introduce snd_ctl_notify_one() helper") 56b88b50565c ("ALSA: pcm: Move rwsem lock inside snd_ctl_elem_read to prevent UAF") but in a simpler way to fit with older stable trees -- tiwai ] Add missing locking in ctl_elem_read_user/ctl_elem_write_user which can be easily triggered and turned into an use-after-free. Example code paths with SNDRV_CTL_IOCTL_ELEM_READ: 64-bits: snd_ctl_ioctl snd_ctl_elem_read_user [takes controls_rwsem] snd_ctl_elem_read [lock properly held, all good] [drops controls_rwsem] 32-bits (compat): snd_ctl_ioctl_compat snd_ctl_elem_write_read_compat ctl_elem_write_read snd_ctl_elem_read [missing lock, not good] CVE-2023-0266 was assigned for this issue. The Linux kernel CVE team has assigned CVE-2023-54212 to this issue. Affected and fixed versions =========================== Fixed in 5.10.163 with commit df02234e6b87d2a9a82acd3198e44bdeff8488c6 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-54212 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/control_compat.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/df02234e6b87d2a9a82acd3198e44bdeff8488c6