Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 9EBCF3812F4 for ; Thu, 25 Jun 2026 08:43:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782376998; cv=none; b=CDGXBv9+JJQenq9QLzlZmAoaE13R9WVhDSKnzY1qOO6GoMzS9LKfMnNiZTDVvSz8ix7vSgNfX9p+cMG5OPEC2AFNhx8kbXu5JcQHk4uW0Sivx61iNDUysvDS9VtsuyZiNCJZgPd6UdHCmsCO0+5KNzJhz3NxyRJ+ZLEqE2fzZEI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782376998; c=relaxed/simple; bh=YcdtJXOGbZPPpwFxWj3T9l6UomSxpx9CqyYhnqw1AtM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ViPh2wR6kgkx/nnwUkaeneWQey/2DX84ujACH4TnQ0fUbWsodTVMBDQEtGOKix7jw3vUrYPceCFZ97VE5MImpWWmfE9fv5TQxyDg9ZuoX74MUNWO3VSQii9x0ZzH+XF4XuDncWS2YVC5xVzScr0+d9HPTqAEU7PgaUsi2rzf/4k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pPboL2gN; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="pPboL2gN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 959451F000E9; Thu, 25 Jun 2026 08:43:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782376997; bh=rz9lVztIef/jkMxI2KCoCTO0BIQULT0Xq7F3nfaipTk=; h=From:To:Cc:Subject:Date:Reply-To; b=pPboL2gN3GWPvvjj44W+D15fiFCSyluodk3ymyUTXzzNzIZE/UG9wsDUn0pWbTM+T OhyxlBSs/XFKpDjWsjlZ+CvArPUt++jdgLpkKcgMVDBxNmG/Xs4btkIxBy9Oc708TW urTKZAqyNySUvcLDsaXLoByNnjpaepPm/e3lg6Yg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53138: drm/amd/display: Bound VBIOS record-chain walk loops Date: Thu, 25 Jun 2026 09:39:46 +0100 Message-ID: <2026062543-CVE-2026-53138-59f9@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3201; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=twxYwUqiC9x1LFNmOu58IgKdYnsFyfX+ESWuv+aWGAs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2L/1PWgn5s/+21jUPyGdY9C7k3LPr0ox7itf9yLjFw 3nCWdmxI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYSZMOwoGeF90J3pecq/4wv FS+NaeLRrr3+hmG+2/ueY8fM6zdGXNhSt+n6myuvuOfnAAA= 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/amd/display: Bound VBIOS record-chain walk loops [Why & How] All record-chain walk loops in bios_parser.c and bios_parser2.c use for(;;) and only terminate on a 0xFF record_type sentinel or zero record_size. A malformed VBIOS image missing the terminator record causes unbounded iteration at probe time, potentially hundreds of thousands of iterations with record_size=1. In the final iterations near the BIOS image boundary, struct casts beyond the 2-byte header validated by GET_IMAGE can also read out of bounds. Cap all 14 record-chain walk loops to BIOS_MAX_NUM_RECORD (256) iterations. The atombios.h defines up to 22 distinct record types and atomfirmware.h has 13. Assuming an average of less than 10 records per type (which is reasonable since most are connector- based) 256 is a generous upper bound. (cherry picked from commit 95700a3d660287ed657d6892f7be9ffc0e294a93) The Linux kernel CVE team has assigned CVE-2026-53138 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c and fixed in 6.12.94 with commit 6173cfea2f916e01c4f98e29cd654384a05e32a3 Issue introduced in 4.15 with commit 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c and fixed in 6.18.36 with commit 0e56f460bddb397fa9a8e6faf7ae7eaa86953eb1 Issue introduced in 4.15 with commit 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c and fixed in 7.0.13 with commit 2645e3caf7e013189da9c6ff621d006cca5a538b Issue introduced in 4.15 with commit 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c and fixed in 7.1 with commit ff287df16a1a58aca78b08d1f3ee09fc44da0351 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-2026-53138 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/amd/display/dc/bios/bios_parser.c drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.h 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/6173cfea2f916e01c4f98e29cd654384a05e32a3 https://git.kernel.org/stable/c/0e56f460bddb397fa9a8e6faf7ae7eaa86953eb1 https://git.kernel.org/stable/c/2645e3caf7e013189da9c6ff621d006cca5a538b https://git.kernel.org/stable/c/ff287df16a1a58aca78b08d1f3ee09fc44da0351