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 C47D52163AF for ; Wed, 26 Feb 2025 02:00:23 +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=1740535223; cv=none; b=WdU7xXcHGLM0K2u8lGHhoOCxPQ/x10yaYnZCAOBDgfWMT9k6T4tnfmSlsQ3/ShfYl0y0R8731nOefh0tIdpfuWSTPqZMcQ8IIA9kuEo+De1RDif2JQXKjZ9ab23amNaFRFwcHkn6FmejBTQwb3F/VLUQfWRRk62wlN+uAlIpqTo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535223; c=relaxed/simple; bh=3QFw+IP1+HD5GEnsJWhUNNhND4i0wjjkfag0wUjV9/8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=itQgItogLq5zN2xC+CRdeVsCCSpgSgBKfL6SBPxKf5+Rn7diQrt+eSBcSJ3zKLsRfS7fUCJNSK8j+1d1awDBZTKS9Xn4oCvjGAfObdMlN44kLvu6oRaAC4axSP6QQEzren3v/XGXdB7sUlWznFAdcKBL57Au28lx91JzlWEBvN8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gyscs+9w; 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="gyscs+9w" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9524EC4CEEA; Wed, 26 Feb 2025 02:00:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535223; bh=3QFw+IP1+HD5GEnsJWhUNNhND4i0wjjkfag0wUjV9/8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gyscs+9wGFh2lc6VNVEbwSubrUt2E5JF+WtWO72rKd6GUIkYSldxtbefUlAiIXdDF OCHR5Fvh3pdtYD75hJa6shQz/2hvXvtZWyqkF3IAa4xVk4+0PXezGKjpXcV9v7z5qM vfXShe80MhLNrih9rWtwrpTA/i/QNenzlr7PuvXE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49278: remoteproc: Fix count check in rproc_coredump_write() Date: Wed, 26 Feb 2025 02:58:03 +0100 Message-ID: <2025022631-CVE-2022-49278-b48d@gregkh> X-Mailer: git-send-email 2.48.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=2572; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3QFw+IP1+HD5GEnsJWhUNNhND4i0wjjkfag0wUjV9/8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SsLXdeTfdP3QV7Pu729GZ+mnHJxf3h4wKroRWLtEY eE6m6gpHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRreEMC6but04Xz1vhnde0 5yTjr64Kt9y1MQzzS97q5AqlxL+dOCumLd8w4FOZQ08wAA== 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: remoteproc: Fix count check in rproc_coredump_write() Check count for 0, to avoid a potential underflow. Make the check the same as the one in rproc_recovery_write(). The Linux kernel CVE team has assigned CVE-2022-49278 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 3afdc59e4390487f04f2435b7e8a6289984e0a1e and fixed in 5.10.110 with commit b97b305656a7013690e7b6e310f0e827e0bbff90 Issue introduced in 5.9 with commit 3afdc59e4390487f04f2435b7e8a6289984e0a1e and fixed in 5.15.33 with commit 34afac3c75fa08d6fabbab4c93f0a90618afaaa6 Issue introduced in 5.9 with commit 3afdc59e4390487f04f2435b7e8a6289984e0a1e and fixed in 5.16.19 with commit a8c3e53517985d69040a1b36a269e85f99cf0cea Issue introduced in 5.9 with commit 3afdc59e4390487f04f2435b7e8a6289984e0a1e and fixed in 5.17.2 with commit 11572dad9fbadbd9269a2550f7e236b5b8c2d80c Issue introduced in 5.9 with commit 3afdc59e4390487f04f2435b7e8a6289984e0a1e and fixed in 5.18 with commit f89672cc3681952f2d06314981a6b45f8b0045d1 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-2022-49278 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/remoteproc/remoteproc_debugfs.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/b97b305656a7013690e7b6e310f0e827e0bbff90 https://git.kernel.org/stable/c/34afac3c75fa08d6fabbab4c93f0a90618afaaa6 https://git.kernel.org/stable/c/a8c3e53517985d69040a1b36a269e85f99cf0cea https://git.kernel.org/stable/c/11572dad9fbadbd9269a2550f7e236b5b8c2d80c https://git.kernel.org/stable/c/f89672cc3681952f2d06314981a6b45f8b0045d1