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 A76161E882A for ; Mon, 21 Oct 2024 12:02:43 +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=1729512163; cv=none; b=oXaf+r15wDJ6RPMDTzuCLHXRrvSDyqCrIEeaD9XKTSBm37+qZqFDu3Vs3aaHNZpADmcEBBlv82wj5WtbtEJPyI41qZ7tCpbCWFrpFuAxyzpwm9In4EAwDHtwl3jATMQ+ZdAsx5uqIDLqDCGfv2ZIAqwxvoC80smckDLjl8p7pZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729512163; c=relaxed/simple; bh=ynIAtt42wdy8gPfqrIBus84pKnFLSeSl1rtVeVMGXaE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sxM36lFkHr51qsJCKoh77o3qhIlk8dANDScqiURtOLRapab4m+tb5U+gwZ//DPj2JbKR8QqMP1UIZeH5dOaRdyfJFpP7DK4EI75QTUu8zvsqtS4IwJfU8n7mxIMiYIxjJjT8M4fmlDMQlxfCaMmxeuc1k+yeTAo265aL9j0Pv8k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Te09HdzD; 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="Te09HdzD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22AEDC4CEC3; Mon, 21 Oct 2024 12:02:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729512163; bh=ynIAtt42wdy8gPfqrIBus84pKnFLSeSl1rtVeVMGXaE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Te09HdzDHtWpPordNZjlkc3aQanfD8H2RdmprkmuMeR1YxTXEAGbgvTb8NbZhVArs 6pgf3V1wagtKjJVWkuIq44lkOb1cFFSlMWvBasT0SEee2v0kSiGbZgWHSIw+Th5HJU qh9HnV0XW8KXMDqn0No1t60eMJIIySiVf2Uty/Tk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47697: drivers: media: dvb-frontends/rtl2830: fix an out-of-bounds write error Date: Mon, 21 Oct 2024 14:00:25 +0200 Message-ID: <2024102113-CVE-2024-47697-5277@gregkh> X-Mailer: git-send-email 2.47.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=2929; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ynIAtt42wdy8gPfqrIBus84pKnFLSeSl1rtVeVMGXaE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliTr55h979ZLdvcy+a9O7FSt0TG+6fmmQdxjv93erOP ZxyDfnGHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARd3WGBUvOz+9ePpfNluVM +zvl3sPsz2bZT2RY0GDysv/x6hUmM75O3LYuNkX6wnQeBwA= 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: drivers: media: dvb-frontends/rtl2830: fix an out-of-bounds write error Ensure index in rtl2830_pid_filter does not exceed 31 to prevent out-of-bounds access. dev->filters is a 32-bit value, so set_bit and clear_bit functions should only operate on indices from 0 to 31. If index is 32, it will attempt to access a non-existent 33rd bit, leading to out-of-bounds access. Change the boundary check from index > 32 to index >= 32 to resolve this issue. The Linux kernel CVE team has assigned CVE-2024-47697 to this issue. Affected and fixed versions =========================== Issue introduced in 4.0 with commit df70ddad81b4 and fixed in 5.10.227 with commit badbd736e664 Issue introduced in 4.0 with commit df70ddad81b4 and fixed in 5.15.168 with commit 86d920d2600c Issue introduced in 4.0 with commit df70ddad81b4 and fixed in 6.1.113 with commit 3dba83d3c81d Issue introduced in 4.0 with commit df70ddad81b4 and fixed in 6.6.54 with commit 58f31be7dfbc Issue introduced in 4.0 with commit df70ddad81b4 and fixed in 6.10.13 with commit 7fd6aae7e53b Issue introduced in 4.0 with commit df70ddad81b4 and fixed in 6.11.2 with commit 042b101d7bf7 Issue introduced in 4.0 with commit df70ddad81b4 and fixed in 6.12-rc1 with commit 46d7ebfe6a75 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-47697 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: drivers/media/dvb-frontends/rtl2830.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/badbd736e6649c4e6d7b4ff7e2b9857acfa9ea94 https://git.kernel.org/stable/c/86d920d2600c3a48efc2775c1666c1017eec6956 https://git.kernel.org/stable/c/3dba83d3c81de1368d15a39f22df7b53e306052f https://git.kernel.org/stable/c/58f31be7dfbc0c84a6497ad51924949cf64b86a2 https://git.kernel.org/stable/c/7fd6aae7e53b94f4035b1bfce28b8dfa0d0ae470 https://git.kernel.org/stable/c/042b101d7bf70616c4967c286ffa6fcca65babfb https://git.kernel.org/stable/c/46d7ebfe6a75a454a5fa28604f0ef1491f9d8d14