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 F12F21422CA for ; Wed, 19 Jun 2024 13:36:40 +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=1718804201; cv=none; b=Y9AD3f5H9oQPJKIm8E3/5D51/Q5q6yxmb8dToH9X/XYFetGLekqSaqo3IAwxezZhLykNRGxKp30x58J+JtanbNUX/k4e1orX8VgGFV0eNxk/O3nNBagyFWQ0GOB/G29W7VweMeEpYJXGqXwcspKA1WcSeCyRnPFn8PS/7EloL+w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718804201; c=relaxed/simple; bh=ZRJdjwynIc3mEEmQIST6c1rfHrIUlLb3bUewZhML8+c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kuNvuioVJzwZ5rwWaUnxny3OznGwnybjx4d95+utrnpRG1NQ4/+qPz3GkvlYjj012n+ZG4vi0EZUbjF/Dm0qXI9pcE4GEzlC3e1xPuIC2OThG426oQNe6hiipwCrUaf7cUO4tU2wdHJQoSiqMIclsIIDPNxwccz01wPKzrpmHfY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qn0m91B7; 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="qn0m91B7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 779BEC2BBFC; Wed, 19 Jun 2024 13:36:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718804200; bh=ZRJdjwynIc3mEEmQIST6c1rfHrIUlLb3bUewZhML8+c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qn0m91B7PhkVlsxygIlT6JCdw8szfpqoSXhFZKxAYEckW+2gsWALx6QuZT3ICnNDZ 3vVu3ZTmVFnY1yzDVFqorJpCKClqOrRhCi7GgkUwu2jOYm/vfAYSOnUlkMkdL8HLDA ogxkzh1CpW9Fg7PBqhZcIYAz3BDAThWtzvw4Auow= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38547: media: atomisp: ssh_css: Fix a null-pointer dereference in load_video_binaries Date: Wed, 19 Jun 2024 15:35:56 +0200 Message-ID: <2024061950-CVE-2024-38547-176a@gregkh> X-Mailer: git-send-email 2.45.2 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=3137; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZRJdjwynIc3mEEmQIST6c1rfHrIUlLb3bUewZhML8+c=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlF97YpBon80ave8nkZS8oHLzuWcBuOOwX+jYse2k15Z B/1/4R3RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk2QmG+XWTl879plt3+EVp 0sZd69TlwtZWszIsOMXItL03/SBjSIb+tYRVYUoT2udtBQA= 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: atomisp: ssh_css: Fix a null-pointer dereference in load_video_binaries The allocation failure of mycs->yuv_scaler_binary in load_video_binaries() is followed with a dereference of mycs->yuv_scaler_binary after the following call chain: sh_css_pipe_load_binaries() |-> load_video_binaries(mycs->yuv_scaler_binary == NULL) | |-> sh_css_pipe_unload_binaries() |-> unload_video_binaries() In unload_video_binaries(), it calls to ia_css_binary_unload with argument &pipe->pipe_settings.video.yuv_scaler_binary[i], which refers to the same memory slot as mycs->yuv_scaler_binary. Thus, a null-pointer dereference is triggered. The Linux kernel CVE team has assigned CVE-2024-38547 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit a49d25364dfb and fixed in 5.10.219 with commit 4b68b861b514 Issue introduced in 4.12 with commit a49d25364dfb and fixed in 5.15.161 with commit 82c2c85aead3 Issue introduced in 4.12 with commit a49d25364dfb and fixed in 6.1.93 with commit a1ab99dcc860 Issue introduced in 4.12 with commit a49d25364dfb and fixed in 6.6.33 with commit cc20c87b04db Issue introduced in 4.12 with commit a49d25364dfb and fixed in 6.8.12 with commit 69b27ff82f87 Issue introduced in 4.12 with commit a49d25364dfb and fixed in 6.9.3 with commit 6482c433863b Issue introduced in 4.12 with commit a49d25364dfb and fixed in 6.10-rc1 with commit 3b621e9e9e14 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-38547 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/staging/media/atomisp/pci/sh_css.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/4b68b861b514a5c09220d622ac3784c0ebac6c80 https://git.kernel.org/stable/c/82c2c85aead3ea3cbceef4be077cf459c5df2272 https://git.kernel.org/stable/c/a1ab99dcc8604afe7e3bccb01b10da03bdd7ea35 https://git.kernel.org/stable/c/cc20c87b04db86c8e3e810bcdca686b406206069 https://git.kernel.org/stable/c/69b27ff82f87379afeaaea4b2f339032fdd8486e https://git.kernel.org/stable/c/6482c433863b257b0b9b687c28ce80b89d5f89f0 https://git.kernel.org/stable/c/3b621e9e9e148c0928ab109ac3d4b81487469acb