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 5A2F019A2A3 for ; Mon, 15 Sep 2025 14:22:53 +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=1757946173; cv=none; b=XpewQE24SkkLiX1hpYHhvTMdmY64Hz/Fdf5TT3r7k0iXAgDU1Y7eNiGD6A0ZKd5yFm8Iy9KnLKj4crLlYcA166TisMr2/5DUtlClzTGYSDrud+SWmw3jjHeOU9P+UipG+bUazaoC0CS/90QHWFPEakZl1DT5e32deN4hh+Bgz8w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757946173; c=relaxed/simple; bh=UzMMR5S4CfMPV9hu/apBCsKTCC8gfVyRpbv50u9YsIk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VP/T7KD8hs39QJ1xGRr2Xr89sDoQLS5SMxkqD0Ffl1U/91uWlLaBoqjzFIMVAkp3Tu3cvkHXgdg7i5KaEcQoZc1Y1poID1pPp/BZ9bLIV5B/nF2+OLjY7Bu7KEvPvH89RCPBWKMVuM6sTnmeTqVujrMaR/1GbhRv96Rp6NU3BvQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=a0DcGKqa; 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="a0DcGKqa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33CE7C4CEF1; Mon, 15 Sep 2025 14:22:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757946172; bh=UzMMR5S4CfMPV9hu/apBCsKTCC8gfVyRpbv50u9YsIk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=a0DcGKqa7mkC17/0BMunhkQU6VQhMCkwbK4dlDTyKIChkPM0GcMOe81JkN7OYFYW3 8lTisAUk6TOPOs/dOsEIIU9f7kF0JqqdC/ie9e9uF5KBGEIuLeG36ZVEiBLQIlfp6I wkePknQelh+2ce/swO3DQ6U6Xj2JMjsKhgvVuUCc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50287: drm/i915/bios: fix a memory leak in generate_lfp_data_ptrs Date: Mon, 15 Sep 2025 16:21:29 +0200 Message-ID: <2025091508-CVE-2022-50287-a3ce@gregkh> X-Mailer: git-send-email 2.51.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=2388; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KGeln/H4FyA4msohD/YVtGV6WsU6AJivrHb8yU/rl1E=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknFK5MZn01K3XT2pXCUozeLwU2OpSW3ZTPnj7bKOzrS Y/rwt1MHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRxvkM8z3auh2/lXw6KCtn 5lQTdIXLye7zBob5WV+OzfNcd35xbtaecweXvN528xBPCQA= 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: drm/i915/bios: fix a memory leak in generate_lfp_data_ptrs When (size != 0 || ptrs->lvds_ entries != 3), the program tries to free() the ptrs. However, the ptrs is not created by calling kzmalloc(), but is obtained by pointer offset operation. This may lead to memory leaks or undefined behavior. Fix this by replacing the arguments of kfree() with ptrs_block. (cherry picked from commit 7674cd0b7d28b952151c3df26bbfa7e07eb2b4ec) The Linux kernel CVE team has assigned CVE-2022-50287 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit a87d0a84760726445dcc0f0177623f0d683f3559 and fixed in 6.0.16 with commit 4758d04014cfe6cdb6e9b4738d1d6728487bbb3a Issue introduced in 5.19 with commit a87d0a84760726445dcc0f0177623f0d683f3559 and fixed in 6.1.2 with commit 7c852e8f93f04e57c1e3883caa72542469c6c4c4 Issue introduced in 5.19 with commit a87d0a84760726445dcc0f0177623f0d683f3559 and fixed in 6.2 with commit 1382901f75a5a7dc8eac05059fd0c7816def4eae 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-50287 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/gpu/drm/i915/display/intel_bios.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/4758d04014cfe6cdb6e9b4738d1d6728487bbb3a https://git.kernel.org/stable/c/7c852e8f93f04e57c1e3883caa72542469c6c4c4 https://git.kernel.org/stable/c/1382901f75a5a7dc8eac05059fd0c7816def4eae