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 57A4FBA53 for ; Sun, 29 Dec 2024 11:30:49 +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=1735471849; cv=none; b=qPyZcei3WbFas0xy1nx+hGOMVtyI7ngiW6MZolNVrOmHeXDR0wtm5N9AZOsxZhyzOlPIuyinEGSB245/teWx121h6qLTR0a2jw3Rnmd7q+GO1/dIxSCDnplpWs8XfZSoYpZagp00dlZp98Gr+9Kz8EFcN5/9r3x+30R/bxRB5Xk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735471849; c=relaxed/simple; bh=TVSfzPxJmobYDNjZR6FHOgTSgFodoeSSzlv6KQlM1Eo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CH1hC1chEWEWsxAXc2PYqaWpPMtXLvT2052AxpTRMquEkRc7b4cbNqWJVH2Ekaud0+7vwwPKCa5oxS+mTbx+yq/SjFLPvie1oZTo08RYn/s5Dt0lJ2QguQoO0oBG7n1Dzdm5rhl38nCAHnAjZK7gAyGenlFlevEEuoaao6pD/Ng= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=awvE7jwE; 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="awvE7jwE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5279C4CED1; Sun, 29 Dec 2024 11:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735471849; bh=TVSfzPxJmobYDNjZR6FHOgTSgFodoeSSzlv6KQlM1Eo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=awvE7jwEyFkgoCGQS4FZXNfP5MAwAcIs+/l+69vMcuMtzrrnyYcX6itoVQHisIxSK V9M+el5bqwSmXzjmd7zFiMaf0H8SD/DH7YgAQxqoz+ynXtTr6BX31309aR+4OQIXQe DDmEJddMjrFZxsf/EaOoY6eAaqN9YuUKUq6YBoRc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56746: fbdev: sh7760fb: Fix a possible memory leak in sh7760fb_alloc_mem() Date: Sun, 29 Dec 2024 12:29:39 +0100 Message-ID: <2024122926-CVE-2024-56746-d329@gregkh> X-Mailer: git-send-email 2.47.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=3563; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TVSfzPxJmobYDNjZR6FHOgTSgFodoeSSzlv6KQlM1Eo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOmFRtMalKYwnvyycsGFauUJi191bmrnfSPPYKiwelfy3 /7Dn47EdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEVn1nmO/FxevvJ15mYurz zqN/hchRgzyO0wyzmN8Z50vzP5KRWLjH+zO74SkjwaZ/AA== 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: fbdev: sh7760fb: Fix a possible memory leak in sh7760fb_alloc_mem() When information such as info->screen_base is not ready, calling sh7760fb_free_mem() does not release memory correctly. Call dma_free_coherent() instead. The Linux kernel CVE team has assigned CVE-2024-56746 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.27 with commit 4a25e41831ee851c1365d8b41decc22493b18e6d and fixed in 4.19.325 with commit 0d3fb3b3e9d66f7b6346e3b90bc0ff48683539ce Issue introduced in 2.6.27 with commit 4a25e41831ee851c1365d8b41decc22493b18e6d and fixed in 5.4.287 with commit d48cbfa90dce506030151915fa3346d67f964af4 Issue introduced in 2.6.27 with commit 4a25e41831ee851c1365d8b41decc22493b18e6d and fixed in 5.10.231 with commit 29216bb390e36daeebef66abaa02d9751330252b Issue introduced in 2.6.27 with commit 4a25e41831ee851c1365d8b41decc22493b18e6d and fixed in 5.15.174 with commit f4fbd70e15fafe36a7583954ce189aaf5536aeec Issue introduced in 2.6.27 with commit 4a25e41831ee851c1365d8b41decc22493b18e6d and fixed in 6.1.120 with commit 40f4326ed05a3b3537556ff2a844958b9e779a98 Issue introduced in 2.6.27 with commit 4a25e41831ee851c1365d8b41decc22493b18e6d and fixed in 6.6.64 with commit 3dd9df8e5f34c6fc4217a7498c1fb3c352d4afc2 Issue introduced in 2.6.27 with commit 4a25e41831ee851c1365d8b41decc22493b18e6d and fixed in 6.11.11 with commit d10cd53e5a7fb3b7c6f83d4d9a5ea1d97a3ed9a5 Issue introduced in 2.6.27 with commit 4a25e41831ee851c1365d8b41decc22493b18e6d and fixed in 6.12.2 with commit bad37309c8b8bf1cfc893750df0951a804009ca0 Issue introduced in 2.6.27 with commit 4a25e41831ee851c1365d8b41decc22493b18e6d and fixed in 6.13-rc1 with commit f89d17ae2ac42931be2a0153fecbf8533280c927 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-56746 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/video/fbdev/sh7760fb.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/0d3fb3b3e9d66f7b6346e3b90bc0ff48683539ce https://git.kernel.org/stable/c/d48cbfa90dce506030151915fa3346d67f964af4 https://git.kernel.org/stable/c/29216bb390e36daeebef66abaa02d9751330252b https://git.kernel.org/stable/c/f4fbd70e15fafe36a7583954ce189aaf5536aeec https://git.kernel.org/stable/c/40f4326ed05a3b3537556ff2a844958b9e779a98 https://git.kernel.org/stable/c/3dd9df8e5f34c6fc4217a7498c1fb3c352d4afc2 https://git.kernel.org/stable/c/d10cd53e5a7fb3b7c6f83d4d9a5ea1d97a3ed9a5 https://git.kernel.org/stable/c/bad37309c8b8bf1cfc893750df0951a804009ca0 https://git.kernel.org/stable/c/f89d17ae2ac42931be2a0153fecbf8533280c927