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 07EC71E47B7 for ; Fri, 22 Aug 2025 16:01:12 +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=1755878473; cv=none; b=Wl4mo16rU/91LYCXpksBs2ScG6EcQjltfY/mBpoeZCFaVIXNW930qv4sb7QvGgZdfxNevjOryR2QmxsDGOPMt17/U9H+Kp/CEQSI0wmHQSQh+SIv8Jd20wqmuFbu8Tv9ZieX0zSlzyKVlUYQkPdCZmJXSiWdlfRO62pKwjDvbcc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755878473; c=relaxed/simple; bh=w6ZIW6YgoFFZ/13cdN29aA8cAn1FrS05FcJNcCSBLHg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=V7qRhqifAyo5HcYpTBHbzcQUnfNeY3KyzJgtOM0nWaPp3PC/uFpGqqbc6yHT/NqZJgToZCpb+WUR7zA2qyGqb55G8UNL2NH9NwOwTqlvlJOS/fzuPlv78z55j5GONMPz7c0dLQTSzHdQ4zPcsN/xXmva6o1SXTdeZdbo6seKcUQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zxTbgi5E; 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="zxTbgi5E" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B816C4CEED; Fri, 22 Aug 2025 16:01:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755878472; bh=w6ZIW6YgoFFZ/13cdN29aA8cAn1FrS05FcJNcCSBLHg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zxTbgi5EBSqF09hUspdnSe1YHWniwudM+ijyzMf1vfWTKAX3n9vPWkRNwfK0BXsVu LlHcLD2mRvRNTAFdWK+xwhYm4WntjLhTVo8H/ddLUpPYYvUuSUuGm2ZUx324rmDtz6 3WzrBFp/7va2CTRCZIuKDYurqLiOdtbv6Q/pDDnE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38630: fbdev: imxfb: Check fb_add_videomode to prevent null-ptr-deref Date: Fri, 22 Aug 2025 18:00:39 +0200 Message-ID: <2025082232-CVE-2025-38630-e14a@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=3089; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jfSVID6EXmU+bAKsKT/BwIx/XYsLfbVgoNj0mDfxyZ4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkrpigEVnFPDTqSGHPr00vpPYasFxmWyXot4njR58Awx /NXm5NaRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkRTvDHA5JH72O+vV6j/a8 mXFUY1p+9d+7dxgWzIs1MmhPjvzQ53vItfjo1TldXPd9AA== 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: fbdev: imxfb: Check fb_add_videomode to prevent null-ptr-deref fb_add_videomode() can fail with -ENOMEM when its internal kmalloc() cannot allocate a struct fb_modelist. If that happens, the modelist stays empty but the driver continues to register. Add a check for its return value to prevent poteintial null-ptr-deref, which is similar to the commit 17186f1f90d3 ("fbdev: Fix do_register_framebuffer to prevent null-ptr-deref in fb_videomode_to_var"). The Linux kernel CVE team has assigned CVE-2025-38630 to this issue. Affected and fixed versions =========================== Issue introduced in 3.11 with commit 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c and fixed in 6.1.148 with commit ac16154cccda8be10ee3ae188f10a06f3890bc5d Issue introduced in 3.11 with commit 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c and fixed in 6.6.102 with commit 4b5d36cc3014986e6fac12eaa8433fe56801d4ce Issue introduced in 3.11 with commit 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c and fixed in 6.12.42 with commit 40f0a51f6c54d46a94b9f1180339ede7ca7ee190 Issue introduced in 3.11 with commit 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c and fixed in 6.15.10 with commit 49377bac9e3bec1635065a033c9679214fe7593e Issue introduced in 3.11 with commit 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c and fixed in 6.16.1 with commit f060441c153495750804133555cf0a211a856892 Issue introduced in 3.11 with commit 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c and fixed in 6.17-rc1 with commit da11e6a30e0bb8e911288bdc443b3dc8f6a7cac7 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-38630 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/imxfb.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/ac16154cccda8be10ee3ae188f10a06f3890bc5d https://git.kernel.org/stable/c/4b5d36cc3014986e6fac12eaa8433fe56801d4ce https://git.kernel.org/stable/c/40f0a51f6c54d46a94b9f1180339ede7ca7ee190 https://git.kernel.org/stable/c/49377bac9e3bec1635065a033c9679214fe7593e https://git.kernel.org/stable/c/f060441c153495750804133555cf0a211a856892 https://git.kernel.org/stable/c/da11e6a30e0bb8e911288bdc443b3dc8f6a7cac7