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 EA5B72563F for ; Wed, 28 Feb 2024 08:16:51 +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=1709108212; cv=none; b=PWgcMU2coePNbDqj8UT/WLT6w4KQQGmJSeCK9qg/Aef8rCH/RgO6OAek7WasaWNeH5LHup4XgnWw2HknBKbPt9NfVLqUSm7QraLZfNq7hJcIwJ81JnUMsAnHHbg/zoO9+ItSXUt3Pm8B8L/gCBbU+RPm2UTcUHYJ5ea54xt+4qg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709108212; c=relaxed/simple; bh=gBIQ+2V5sKWXKuq15g2brVbp+PNi+Qv948xPCUiR5mI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=X0MCV1T5FB6H5LNyr6yvdab9r0dMKXUD2+Hhr99LGTdsxqh9q41mZZbT//FRzOfyTU7YJHvYWz2Hrw04iCbTBkUei4L1St9gVpwqEIc58pwkRVl2roPqLLVNl7lGNFCNKBfPq4aM/8aTTbAvyHUoW29HP+AvW0wP36Cy9PQiGFE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LYDtTH+/; 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="LYDtTH+/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75BDDC433C7; Wed, 28 Feb 2024 08:16:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709108211; bh=gBIQ+2V5sKWXKuq15g2brVbp+PNi+Qv948xPCUiR5mI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=LYDtTH+/8Fd5TUUYBhksNb0UkNs1dqgLhamFBJeIPjqZkHv0FBJbkkK1PA4cIPMR5 Y7tJ/HbaTteQwV1bT/RZmqpE3bYS6N1JRfsabVPs9iP0YSAXJ9yCSEQK7fuAoFLOZu /Xf64EHkzIa+rtUrn7GuR7MLhtzfQqwvMx4pKTgs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: gregkh@kernel.org Subject: CVE-2020-36786: media: [next] staging: media: atomisp: fix memory leak of object flash Date: Wed, 28 Feb 2024 09:14:24 +0100 Message-ID: <2024022821-CVE-2020-36786-fa2b@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=2292; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EAf5JMVIKVu4I6WCzfOxAxtcQjnhP85RpUSJ65j/Dgs=; b=owGbwMvMwCRo6H6F97bub03G02pJDKn3XsduzM9fptykeuXh7YkvMto2hy6QLF/+zz/z9VWNX a9NBf06OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAisTwMC5rNl7+535DJomeq OzksvWStM7eSKsP8AEv2zsD6hy19TM+3XKjaqnCssmcJAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: gregkh@kernel.org Description =========== In the Linux kernel, the following vulnerability has been resolved: media: [next] staging: media: atomisp: fix memory leak of object flash In the case where the call to lm3554_platform_data_func returns an error there is a memory leak on the error return path of object flash. Fix this by adding an error return path that will free flash and rename labels fail2 to fail3 and fail1 to fail2. The Linux kernel CVE team has assigned CVE-2020-36786 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 9289cdf39992 and fixed in 5.10.37 with commit cc4cc2fb5aaf Issue introduced in 5.10 with commit 9289cdf39992 and fixed in 5.11.21 with commit 4f0f37d03cde Issue introduced in 5.10 with commit 9289cdf39992 and fixed in 5.12.4 with commit 27d2eab69f7d Issue introduced in 5.10 with commit 9289cdf39992 and fixed in 5.13 with commit 6045b01dd0e3 Please see https://www.kernel.org or 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-2020-36786 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/i2c/atomisp-lm3554.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/cc4cc2fb5aaf9adb83c02211eb13b16cfcb7ba64 https://git.kernel.org/stable/c/4f0f37d03cde8f4341df8454f9b40a67fda94a33 https://git.kernel.org/stable/c/27d2eab69f7da8e94e4751ac5c6d22d809275484 https://git.kernel.org/stable/c/6045b01dd0e3cd3759eafe7f290ed04c957500b1