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 658643DDDDB for ; Fri, 8 May 2026 13:14:11 +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=1778246051; cv=none; b=Uko2iCyTp9qpqxPRiF4RdOS8CG9pt3nwelLpgj0o6D29KU6fhD5O8x7F3MK0Pt+PyIyE8N2nRbwIq0VWlJnSSg7joHC7PIzLUt97u8RBIKdPUVGH4zLbjaPBqvz056M6XFO65L3qgFsWHsTJ7P0XAkshSI1Y3myh4sevWwCUrxI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778246051; c=relaxed/simple; bh=QpHfpLDytj4jJhyrTrS57kjsL7rE462w2EmFtvF9HAQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Q4aechmUQWjG5YiAWGN3RWbT3JYHBo79OJWaK7hTEA/8DR0WazwLvLdwD3h97+lnw3jG/onpWC5q/9vFiVRa988T+bwlNh8kSYNNVyXa5gOMiKokAAIRJOU+d3fQ3DXKDMi0FmFsrRjWz7pbIrdNUaB/5clKXP2yxs2eoQguU/M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L+k7JwSE; 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="L+k7JwSE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCE4BC2BCB8; Fri, 8 May 2026 13:14:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778246051; bh=QpHfpLDytj4jJhyrTrS57kjsL7rE462w2EmFtvF9HAQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=L+k7JwSEeqtP/5JH3qrNWSPKx9y0YEQ2rPTW8Ei8yMqqokUTQVFV74edww7n8NtP7 L1/zEvQJ8AbG1fYep9G8nv9E96T14wchDR3K9FxpZvQm0lidgkeOTWlScqxpMKycYc FlLOceII5Esp0vj+MTE5AFqsPMTr+7JxYFXGdIDU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43297: media: rockchip: rga: Fix possible ERR_PTR dereference in rga_buf_init() Date: Fri, 8 May 2026 15:12:02 +0200 Message-ID: <2026050855-CVE-2026-43297-4595@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2557; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VGLlcy6xN/oewUhHzZ7pfEAp/Y2r7HVkjK9xHU6r2nA=; b=owGbwMvMwCRo6H6F97bub03G02pJDJl/H0qbnBebdEEi/+RxDeGGN288VEM2nl/JvvfXNnfJ6 wFKHkY/OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAie9MZFuyeyd/PYzJ1wUXT +V+i+c+c1VoX8Yxhvs8Wox3//69apeklqv+kVr958gz3hwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: media: rockchip: rga: Fix possible ERR_PTR dereference in rga_buf_init() rga_get_frame() can return ERR_PTR(-EINVAL) when buffer type is unsupported or invalid. rga_buf_init() does not check the return value and unconditionally dereferences the pointer when accessing f->size. Add proper ERR_PTR checking and return the error to prevent dereferencing an invalid pointer. The Linux kernel CVE team has assigned CVE-2026-43297 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 6040702ade234c8212dcfdef85e2f5549aa2f0f5 and fixed in 6.12.75 with commit 5da29ade540b51763b950987bd410add7edaf3d1 Issue introduced in 6.8 with commit 6040702ade234c8212dcfdef85e2f5549aa2f0f5 and fixed in 6.18.16 with commit 1af2853b4e97fd95262fdef311b2334337069bc9 Issue introduced in 6.8 with commit 6040702ade234c8212dcfdef85e2f5549aa2f0f5 and fixed in 6.19.6 with commit aa22221c5dc695a3d479e1e1b63f0c0e9eb29dbf Issue introduced in 6.8 with commit 6040702ade234c8212dcfdef85e2f5549aa2f0f5 and fixed in 7.0 with commit 81f8e0e6a2e115df9274d0289779f8fca694479c 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-2026-43297 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/platform/rockchip/rga/rga-buf.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/5da29ade540b51763b950987bd410add7edaf3d1 https://git.kernel.org/stable/c/1af2853b4e97fd95262fdef311b2334337069bc9 https://git.kernel.org/stable/c/aa22221c5dc695a3d479e1e1b63f0c0e9eb29dbf https://git.kernel.org/stable/c/81f8e0e6a2e115df9274d0289779f8fca694479c