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 E833F12C801 for ; Wed, 1 May 2024 13:06:56 +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=1714568817; cv=none; b=K2zxsGKs+7rq1iPXH3PUdXTyZ9G+AMA4akgNYWMjwWN0JEPAGHRF0dj4JKGbLa7k2vYVzPLvAabMYL9nFnbLrP0GByk3x99urt36EmesbMGg0NtEh1P3302/X9uU/3jNrccBJp1SFyWoLflUqB9aVisrROwfIYxzLVWmvws8x7w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714568817; c=relaxed/simple; bh=kfFOYUvfzX0nSdyAp6vDfz2imSA5ZzRszo9gl3rtPbg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eUO9QOcGRN9pg00KP63WFE6lZbxw/hzFU0D0xMHX22AfF4n130LgDEPpiuR+4LAKn4Jp35wZgtlCkITAJL4DR3UFNdPRuK1NRk08EUxejwAAoaAkbSAIocGPhrZyp+1JqjcnZrJVanWbirfoZIEEkO4btLSGKkS1O1askaN3i6o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QISdC5NC; 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="QISdC5NC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DAB8C113CC; Wed, 1 May 2024 13:06:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714568816; bh=kfFOYUvfzX0nSdyAp6vDfz2imSA5ZzRszo9gl3rtPbg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=QISdC5NCLrroiR6Pv2IWF1/FwRyzeEjeJe4QagygFnbF+CBZKmK9Sj05u8sS76pOx 3wLLdD2+Df9zUKy0NFUGqWU1wLtUEaQN5pga4SPXVkYIp17nNkvzbDhOgBWoNKuLpe gVuIS3udFeTPQE6BSxzX1op4QZ4sUFS9+njPGzEE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27075: media: dvb-frontends: avoid stack overflow warnings with clang Date: Wed, 1 May 2024 15:06:46 +0200 Message-ID: <2024050134-CVE-2024-27075-5e4f@gregkh> X-Mailer: git-send-email 2.44.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=3654; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kfFOYUvfzX0nSdyAp6vDfz2imSA5ZzRszo9gl3rtPbg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlGdlFsO+7W1mttZX+mJX30Q5vK+iurzywSXPuWTyfzp 5jB+067jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIkokMc4VmdQlMtCzstnfS K+MMjZ1e/efnUob5dc8+Cz98e2vJ7t3L+deaRYRvXizNDQA= 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: media: dvb-frontends: avoid stack overflow warnings with clang A previous patch worked around a KASAN issue in stv0367, now a similar problem showed up with clang: drivers/media/dvb-frontends/stv0367.c:1222:12: error: stack frame size (3624) exceeds limit (2048) in 'stv0367ter_set_frontend' [-Werror,-Wframe-larger-than] 1214 | static int stv0367ter_set_frontend(struct dvb_frontend *fe) Rework the stv0367_writereg() function to be simpler and mark both register access functions as noinline_for_stack so the temporary i2c_msg structures do not get duplicated on the stack when KASAN_STACK is enabled. The Linux kernel CVE team has assigned CVE-2024-27075 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit 3cd890dbe2a4 and fixed in 4.19.311 with commit c073c8cede5a Issue introduced in 4.16 with commit 3cd890dbe2a4 and fixed in 5.4.273 with commit fa8b472952ef Issue introduced in 4.16 with commit 3cd890dbe2a4 and fixed in 5.10.214 with commit fb07104a02e8 Issue introduced in 4.16 with commit 3cd890dbe2a4 and fixed in 5.15.153 with commit d20b64f156de Issue introduced in 4.16 with commit 3cd890dbe2a4 and fixed in 6.1.83 with commit 107052a8cfef Issue introduced in 4.16 with commit 3cd890dbe2a4 and fixed in 6.6.23 with commit 8fad9c5bb00d Issue introduced in 4.16 with commit 3cd890dbe2a4 and fixed in 6.7.11 with commit d6b4895197ab Issue introduced in 4.16 with commit 3cd890dbe2a4 and fixed in 6.8.2 with commit ed514ecf4f29 Issue introduced in 4.16 with commit 3cd890dbe2a4 and fixed in 6.9-rc1 with commit 7a4cf27d1f05 Issue introduced in 4.4.168 with commit dc4bc70259da Issue introduced in 4.9.82 with commit d1d85ae79d5e Issue introduced in 4.14.20 with commit ad91b2e392be Issue introduced in 4.15.4 with commit ec1eeaf5b6c1 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-27075 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/stv0367.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/c073c8cede5abd3836e83d70d72606d11d0759d4 https://git.kernel.org/stable/c/fa8b472952ef46eb632825051078c21ce0cafe55 https://git.kernel.org/stable/c/fb07104a02e87c06c39914d13ed67fd8f839ca82 https://git.kernel.org/stable/c/d20b64f156de5d10410963fe238d82a4e7e97a2f https://git.kernel.org/stable/c/107052a8cfeff3a97326277192b4f052e4860a8a https://git.kernel.org/stable/c/8fad9c5bb00d3a9508d18bbfe832e33a47377730 https://git.kernel.org/stable/c/d6b4895197ab5a47cb81c6852d49320b05052960 https://git.kernel.org/stable/c/ed514ecf4f29c80a2f09ae3c877059b401efe893 https://git.kernel.org/stable/c/7a4cf27d1f0538f779bf31b8c99eda394e277119