From mboxrd@z Thu Jan 1 00:00:00 1970 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 4FB7E12CDA8 for ; Fri, 24 May 2024 15:10: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=1716563426; cv=none; b=HmgqUxi/4uOVhCYJTZOnDcMuYAEWldeEF8x8SmSobANt5EieYwzLb61dE7Pd0pVmvKE3w3cv/5H72amlJ2gaVoPWnGtGvZAGOl+kw5iKZqn2d0uuGkZ6YsGFEOMbwLTdvO+teEVgl8GCEHEudqSKWeTNHVpgTh2YsOBF6J//6Wk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716563426; c=relaxed/simple; bh=zmz3M0lc6Yr/NanmwAuGoP5ViBzo1dF8/AYDd0oE6f8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MxXW4vQ11wuk665pGRUAkGc53jdoIKz8nsHFD5m22RxTgNYSpU9OsHQZCVKS8svEpD6uuCWgdBya+eCaaYCS5WT8P8oojxuZn5KuAZE/ZQAGnFvZ/8LnI5AG4ZbFyB7m19gVjtN6l1I73+qPqcdrB0yhemWih2t34LW0sLKi3k4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Q/TvjkIm; 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="Q/TvjkIm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF24EC2BBFC; Fri, 24 May 2024 15:10:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716563426; bh=zmz3M0lc6Yr/NanmwAuGoP5ViBzo1dF8/AYDd0oE6f8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Q/TvjkImkqJaI1kMyGeiXJZwpgKnL+9JpiGxzZsYf02gdpSh+3CEJLjKS7ipcmuRL Im2nvM/MDJIng6n6Htzm2l54U/IPEsVGeplYxP9QodZEUrRghLCgNi4KEckXxpq0F+ JTBeimt9I3+/ynookvW4AcJ8gZJZNihtGZr0Xutk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47511: ALSA: pcm: oss: Fix negative period/buffer sizes Date: Fri, 24 May 2024 17:09:31 +0200 Message-ID: <2024052430-CVE-2021-47511-7bec@gregkh> X-Mailer: git-send-email 2.45.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=2586; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zmz3M0lc6Yr/NanmwAuGoP5ViBzo1dF8/AYDd0oE6f8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkBa1exGP7omMhtepYv6WRl5/LJKQcdNu4KnS+n8CnEK P56oX1mRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEpJdhnoUE85yfHRdu3PyV ukXf/M7cSY5JvxkWXJlaPufXV5O7jT+MSqqYZCeLOQtLAAA= 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: pcm: oss: Fix negative period/buffer sizes The period size calculation in OSS layer may receive a negative value as an error, but the code there assumes only the positive values and handle them with size_t. Due to that, a too big value may be passed to the lower layers. This patch changes the code to handle with ssize_t and adds the proper error checks appropriately. The Linux kernel CVE team has assigned CVE-2021-47511 to this issue. Affected and fixed versions =========================== Fixed in 4.4.295 with commit be8869d38859 Fixed in 4.9.293 with commit 502e1146873d Fixed in 4.14.258 with commit 8af815ab052e Fixed in 4.19.221 with commit f96c0959c1ee Fixed in 5.4.165 with commit f12c8a7515f6 Fixed in 5.10.85 with commit 02b2b691b77c Fixed in 5.15.8 with commit 00a860678098 Fixed in 5.16 with commit 9d2479c96087 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-2021-47511 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/oss/pcm_oss.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/be8869d388593e57223ad39297c8e54be632f2f2 https://git.kernel.org/stable/c/502e1146873d870f87da3b8f93d6bf2de5f38d0c https://git.kernel.org/stable/c/8af815ab052eaf74addbbfb556d63ce2137c0e1b https://git.kernel.org/stable/c/f96c0959c1ee92adc911c10d6ec209af50105049 https://git.kernel.org/stable/c/f12c8a7515f641885677960af450082569a87243 https://git.kernel.org/stable/c/02b2b691b77cd7b951fa7b6c9d44d4e472cdc823 https://git.kernel.org/stable/c/00a860678098fcd9fa8db2b5fb9d2ddf4776d4cc https://git.kernel.org/stable/c/9d2479c960875ca1239bcb899f386970c13d9cfe