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 8CE9A320A00 for ; Wed, 24 Jun 2026 16:37:05 +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=1782319027; cv=none; b=gKN4OUvOBYlz5B7YjS675WQzdWenktbcWFoJu1CyhI4m9J2hsDxF3zFo/vn9oUtXvtZDVEBm1odgWj92E7J49L93lWgUk46SNiIptEtTH/eCY444gUG/poLi/gst6EHJScRNW8I1GKkGNdOF7ureFXgQxpdcMlP2mlDzVZ/DgsE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782319027; c=relaxed/simple; bh=aWJxJrJaP+8qsGaPaDmx+9hF/Zjrn8uKrz5QwcwDwvI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Z+lQtvNWqpPalDTwdEi7FNX0NP/2hhtJxwO64IRwgvGD92M6g0FUMW4TOECsNQGFwo3+WqmtI6nEaGuESJ8h5N1nZsc9z+yc2GLwRJyNXPvbrRvnUZDl+qA32IcA8oFblV77pmXNJpfi6uK2dFYqC3wU0Nuqu36S0XM9MB1rqkM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EdqTVSMs; 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="EdqTVSMs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB7591F00A3A; Wed, 24 Jun 2026 16:37:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782319025; bh=I9P3Ftn5ti9iGA8W9NG/Av0KtLG23yyq7pZpDZJ6TRw=; h=From:To:Cc:Subject:Date:Reply-To; b=EdqTVSMsesyae/vNF/gallLW40e7kKc/XfN5v3kNBnE9myNqPGIeyzDGhdL7QA4Jh 8SL4d/Lpg4/sF6ifobixL9bklc8x1OC55gDHb+LVNjhngmT/EwH5g1wGoovEn/dJFe QDvCI7nJERPjySmQzdm2/s/len9QDuMBfLtsMZ+A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53047: efi/capsule-loader: fix incorrect sizeof in phys array reallocation Date: Wed, 24 Jun 2026 17:31:11 +0100 Message-ID: <2026062458-CVE-2026-53047-7dc7@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=4143; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=v7Hfcl7PEMm3NS4TcbFRlmUoco49sIdRDPrjWrwXsGc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2bGxKpyI/aml2/s+XeHi9WsWz+dvHrkNfrr+aeuXg9 sqMddu2dMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBELp5hWDAviCW/lfH2hDbt VQ2eT+dNTyor8WGYZ/eHwcHJ/r2vkgEPR9/SSrNZE0+IAQA= 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: efi/capsule-loader: fix incorrect sizeof in phys array reallocation The krealloc() call for cap_info->phys in __efi_capsule_setup_info() uses sizeof(phys_addr_t *) instead of sizeof(phys_addr_t), which might be causing an undersized allocation. The allocation is also inconsistent with the initial array allocation in efi_capsule_open() that allocates one entry with sizeof(phys_addr_t), and the efi_capsule_write() function that stores phys_addr_t values (not pointers) via page_to_phys(). On 64-bit systems where sizeof(phys_addr_t) == sizeof(phys_addr_t *), this goes unnoticed. On 32-bit systems with PAE where phys_addr_t is 64-bit but pointers are 32-bit, this allocates half the required space, which might lead to a heap buffer overflow when storing physical addresses. This is similar to the bug fixed in commit fccfa646ef36 ("efi/capsule-loader: fix incorrect allocation size") which fixed the same issue at the initial allocation site. The Linux kernel CVE team has assigned CVE-2026-53047 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit f24c4d478013d82bd1b943df566fff3561d52864 and fixed in 5.10.258 with commit 22022cd8851703a58f67615a17bc7e9e8682785b Issue introduced in 4.15 with commit f24c4d478013d82bd1b943df566fff3561d52864 and fixed in 5.15.209 with commit 67adde6bfdfd563a54b045d59aeb9a2d90c80697 Issue introduced in 4.15 with commit f24c4d478013d82bd1b943df566fff3561d52864 and fixed in 6.1.175 with commit 608e1f7bc9d171ab26c1fba288c97fc76363c27d Issue introduced in 4.15 with commit f24c4d478013d82bd1b943df566fff3561d52864 and fixed in 6.6.141 with commit 8be69e9245f805566bac68ffc8574b64735fd996 Issue introduced in 4.15 with commit f24c4d478013d82bd1b943df566fff3561d52864 and fixed in 6.12.91 with commit 5e185330d902b12fe8e6eb4b8514b5d736d8d66d Issue introduced in 4.15 with commit f24c4d478013d82bd1b943df566fff3561d52864 and fixed in 6.18.33 with commit e0e6b14995fd6fa2c0df8c712d76ab32f0694c31 Issue introduced in 4.15 with commit f24c4d478013d82bd1b943df566fff3561d52864 and fixed in 7.0.10 with commit ab3f7098a3a27175b91cfc947950f5c26855801b Issue introduced in 4.15 with commit f24c4d478013d82bd1b943df566fff3561d52864 and fixed in 7.1 with commit 48a428215782321b56956974f23593e40ce84b7a Issue introduced in 4.14.13 with commit 95a362c9a6892085f714eb6e31eea6a0e3aa93bf 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-53047 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/firmware/efi/capsule-loader.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/22022cd8851703a58f67615a17bc7e9e8682785b https://git.kernel.org/stable/c/67adde6bfdfd563a54b045d59aeb9a2d90c80697 https://git.kernel.org/stable/c/608e1f7bc9d171ab26c1fba288c97fc76363c27d https://git.kernel.org/stable/c/8be69e9245f805566bac68ffc8574b64735fd996 https://git.kernel.org/stable/c/5e185330d902b12fe8e6eb4b8514b5d736d8d66d https://git.kernel.org/stable/c/e0e6b14995fd6fa2c0df8c712d76ab32f0694c31 https://git.kernel.org/stable/c/ab3f7098a3a27175b91cfc947950f5c26855801b https://git.kernel.org/stable/c/48a428215782321b56956974f23593e40ce84b7a