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 DED66380FC1 for ; Sat, 15 Aug 2026 06:30:47 +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=1786775449; cv=none; b=Ka2TaB+CXPHZJe6KTH+1v9pRSMs981QV4fjIEO6S+o6+7Rvfxk2ytZ4UUbT3kmG5+9Qsa3W/ISHIFNJErNGt/CCY2yzacqXKlb31iHfHfRpzDA6H1FUp1NwAwhQrjNRtZgfxW8W0FG5unfC+kAVBKkw874PwmMlyrVlyXC6u3FM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775449; c=relaxed/simple; bh=oT3EaMcmPxikwLNMkU6Tr9CBdrv+fUGSYYGIx0qZvZw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FOqmoI8ts3vtWY0bqJ2pLtPmgKjFV1ph24S+vkd4wS2hCGYMAzIuB9N9Y3+PKSMj7YoEqIiJ7cdmgqYq1C3C4p3jXGTxju5v2vV+/duFgezmREPCWjbSAeWR+npjQwJiWN8D/EFk2UoiTO9Orf/KskFRezWJDTHdarhNXC2LTeo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AzSRL7Dy; 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="AzSRL7Dy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 410991F000E9; Sat, 15 Aug 2026 06:30:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775447; bh=B5Zg7EXD8LL4CRuTe49luhHtEOW6DPRCxt09bRPbJHA=; h=From:To:Cc:Subject:Date:Reply-To; b=AzSRL7DymHAmvv+cu9JjH0SAqlXUulK5NSrjLuuUhtfcDG7mdifu3DGEpXXeifsa6 RSe5hNXumUst3hziIwHM8CutWjEPLZWAXuBncqnsjp6b1QVfhE203HFoD6A0tdxYYY 74mqiMzFyfQ77vRieQruNXQSsOrFKYX/4eA/MftE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72487: PCI: Check ROM header and data structure addr before accessing Date: Sat, 15 Aug 2026 15:09:26 +0900 Message-ID: <2026081538-CVE-2026-72487-bb33@gregkh> X-Mailer: git-send-email 2.55.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=3946; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VsSz5SoLp1rair3vozvjF2gPz2/x3Ju9fNCp4WgHB5U=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDP8M7H8v/c0R4unwUa8s+bXR3GStcmX7juWt79lOO d6949zUEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNpL2KYp8Ae/6Ry9lrxd+fv Zs+993FWxNGY+wwLuv+euSX8/h93mL64we3eLEYFmXfiAA== 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: PCI: Check ROM header and data structure addr before accessing We meet a crash when running stress-ng on x86_64 machine: BUG: unable to handle page fault for address: ffa0000007f40000 RIP: 0010:pci_get_rom_size+0x52/0x220 Call Trace: pci_map_rom+0x80/0x130 pci_read_rom+0x4b/0xe0 kernfs_file_read_iter+0x96/0x180 vfs_read+0x1b1/0x300 Our analysis reveals that the ROM space's start address is 0xffa0000007f30000, and size is 0x10000. Because of broken ROM space, before calling readl(pds), the pds's value is 0xffa0000007f3ffff, which is already pointed to the ROM space end, invoking readl() would read 4 bytes therefore cause an out-of-bounds access and trigger a crash. Fix this by adding image header and data structure checking. We also found another crash on arm64 machine: Unable to handle kernel paging request at virtual address ffff8000dd1393ff Mem abort info: ESR = 0x0000000096000021 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x21: alignment fault The call trace is the same with x86_64, but the crash reason is that the data structure addr is not aligned with 4, and arm64 machine report "alignment fault". Fix this by adding alignment checking. [bhelgaas: shorten function names, wrap comments] The Linux kernel CVE team has assigned CVE-2026-72487 to this issue. Affected and fixed versions =========================== Issue introduced in 4.5 with commit 47b975d234eac39f3a72e5496d5f6158d8b806d1 and fixed in 6.1.178 with commit cd5b242d5848369b9e957340a7e30adee7b6763d Issue introduced in 4.5 with commit 47b975d234eac39f3a72e5496d5f6158d8b806d1 and fixed in 6.6.145 with commit 4997873e3abbad47a9e1e4abd05f045f77a74f22 Issue introduced in 4.5 with commit 47b975d234eac39f3a72e5496d5f6158d8b806d1 and fixed in 6.12.97 with commit 724042f8f98d2594b9d164549fd4292c6bd58120 Issue introduced in 4.5 with commit 47b975d234eac39f3a72e5496d5f6158d8b806d1 and fixed in 6.18.40 with commit 1d495446ec7ace5b61da366ffb161ee8319dd9a2 Issue introduced in 4.5 with commit 47b975d234eac39f3a72e5496d5f6158d8b806d1 and fixed in 7.1.5 with commit 721ad5b72448b5065ed309017ab563205f162404 Issue introduced in 4.5 with commit 47b975d234eac39f3a72e5496d5f6158d8b806d1 and fixed in 7.2-rc1 with commit 538796b807fcfb81b2ce40cc97a614fd8588feb5 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-72487 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/pci/rom.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/cd5b242d5848369b9e957340a7e30adee7b6763d https://git.kernel.org/stable/c/4997873e3abbad47a9e1e4abd05f045f77a74f22 https://git.kernel.org/stable/c/724042f8f98d2594b9d164549fd4292c6bd58120 https://git.kernel.org/stable/c/1d495446ec7ace5b61da366ffb161ee8319dd9a2 https://git.kernel.org/stable/c/721ad5b72448b5065ed309017ab563205f162404 https://git.kernel.org/stable/c/538796b807fcfb81b2ce40cc97a614fd8588feb5