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 74930301499 for ; Tue, 19 Aug 2025 17:23:02 +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=1755624182; cv=none; b=c/DvEBiztkpdBHsXSv14JqxhcN9mlcHYk5sIH7qsJNHByVV+vn6Sp7MfH5ne85eBngJFB7+X16TJisUhT5x4SiIOTsSG7M5Qul2Uf7AAKdVZ0E2+WB7BrHA4fiA42fHwX2wxslo1M+7VXXeKAUiyJul440NZLkIZF1P5Ag5F7h8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624182; c=relaxed/simple; bh=XwtFSRxAz5vrvdq41PICqDdaEWEYtQtZQpFlatoUoH4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=akZMSuABgyyup3Y9DPlKFYQC3NMh3qOGW9lQmBhcSdxVnerbzLu30jWYIvcoHUT9Ek21zithY2laDVq5I9RMhiOJtHY3tzLL3M8oyRj47ttGRV4ptmAsE9wB0CNinyt178vUH30dBph9aIj+B29DXD8UHT5RDOTgjM6tLjDWaNk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Y1+0QzuA; 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="Y1+0QzuA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E6A0C4CEF1; Tue, 19 Aug 2025 17:23:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755624182; bh=XwtFSRxAz5vrvdq41PICqDdaEWEYtQtZQpFlatoUoH4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Y1+0QzuAmEUBRJ3E6WXjYyz9bYHQvbbGvy1wpmOy3geKvXtileYKHNLiN59Fpzq3g ByPBiAmYkSUJ6JSojMjhYtVxvH06DBj3EQw9OIXdAqDcdlF6VHNP+KRTtI+vw4bxD6 zo/8WOnePtYIb7dNGZoV/CWmBgfcmK254TEjk2F4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38612: staging: fbtft: fix potential memory leak in fbtft_framebuffer_alloc() Date: Tue, 19 Aug 2025 19:18:58 +0200 Message-ID: <2025081924-CVE-2025-38612-2888@gregkh> X-Mailer: git-send-email 2.50.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=2911; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Qi1zgGdUWOcaund8G/yMSoySUPqK1mqP8Hz9ttMevyI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlLNj4w5PqsJ+PC4fc/IzLPISvemDOr6IrkjKWyBXHbZ dyEDnp3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQKeRnmB5wU5Yy3E7xyPmVD aQovY63CnenyDPMd1Ou4t1l0rPdcv9ju3OkrE++s/tECAA== 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: staging: fbtft: fix potential memory leak in fbtft_framebuffer_alloc() In the error paths after fb_info structure is successfully allocated, the memory allocated in fb_deferred_io_init() for info->pagerefs is not freed. Fix that by adding the cleanup function on the error path. The Linux kernel CVE team has assigned CVE-2025-38612 to this issue. Affected and fixed versions =========================== Issue introduced in 4.0 with commit c296d5f9957c03994a699d6739c27d4581a9f6c7 and fixed in 6.1.148 with commit 6f9e2cf9e9c1a891a683329af35bb33ed9d38b5f Issue introduced in 4.0 with commit c296d5f9957c03994a699d6739c27d4581a9f6c7 and fixed in 6.6.102 with commit b31cf6f7716a5d3e4461763f32d812acdaec6e74 Issue introduced in 4.0 with commit c296d5f9957c03994a699d6739c27d4581a9f6c7 and fixed in 6.12.42 with commit a3177955f8da3c826a18b75e54881e2e9a9c96f1 Issue introduced in 4.0 with commit c296d5f9957c03994a699d6739c27d4581a9f6c7 and fixed in 6.15.10 with commit 6771f121ae87490ddc19eabb7450383af9e01b6d Issue introduced in 4.0 with commit c296d5f9957c03994a699d6739c27d4581a9f6c7 and fixed in 6.16.1 with commit 47b3d6e8921bbb7b65c2dab8eaa8864901848c1c Issue introduced in 4.0 with commit c296d5f9957c03994a699d6739c27d4581a9f6c7 and fixed in 6.17-rc1 with commit eb2cb7dab60f9be0b435ac4a674255429a36d72c 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-2025-38612 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/fbtft/fbtft-core.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/6f9e2cf9e9c1a891a683329af35bb33ed9d38b5f https://git.kernel.org/stable/c/b31cf6f7716a5d3e4461763f32d812acdaec6e74 https://git.kernel.org/stable/c/a3177955f8da3c826a18b75e54881e2e9a9c96f1 https://git.kernel.org/stable/c/6771f121ae87490ddc19eabb7450383af9e01b6d https://git.kernel.org/stable/c/47b3d6e8921bbb7b65c2dab8eaa8864901848c1c https://git.kernel.org/stable/c/eb2cb7dab60f9be0b435ac4a674255429a36d72c