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 31A264A99B3 for ; Thu, 24 Sep 2026 16:14:31 +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=1790266472; cv=none; b=EmDKBiE96ShvGsVbq9x+NBdUCkjinly8rkaCoA6mWrksJCTjW6elUGjP2aVDd1CQ79IK2s5UnMwpVYQE2dd5us7MOpyMDmGeErTRGb5FGdcvpmTWkgVJpcZmdcqPTxBNx17t+VjJpBnZjfXhABb9M3cmMsO6mJRwcVOoTSYKwTo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266472; c=relaxed/simple; bh=JdvXAb2ZGc/GvF5DPTm+mVOUw6OGU2lhl40nE8gb8XU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uIMiskPzw/IZzLVly3rRvCw7N3GrsYCDT/o/BnmjFcgUpnHTI7KWIE00NU5rx+FGf294wdGgm89BVzPqWZ4+VXLbBtSCU1rc50Ar3g+SC2rYjmxugGFlwPMxBhc9q3RZHGVQb28iXc9TjbgdJyidDjQ3J2QCNGD3+G+K03bjcYA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Uo6kxwtJ; 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="Uo6kxwtJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 467FD1F000FF; Thu, 24 Sep 2026 16:14:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790266471; bh=JQoIF+k+uI+FeADYHmWHOmbDWe9P8Z/xYnep4a2IbXA=; h=From:To:Cc:Subject:Date:Reply-To; b=Uo6kxwtJb+E9adXM67SaudhVbGWyie82uBVDZ+5fagUVCKVxZb/wsduyaDRsOj6jx kK+FJsp8fqb+4oNnuPDkKlFpMVeJ67frUa5fvjWVNlCW1qT9xuVIS/SqDqyUztbARK KsZVaLpSrS4h4HjcrlSvULdEdVaheifoUZpf6idk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97441: ata: ahci: fail probe if BAR too small for claimed ports Date: Thu, 24 Sep 2026 18:03:41 +0200 Message-ID: <2026092432-CVE-2026-97441-8b4f@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=2514; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=El47I0r0NtuPW+kiXKC+sxHqPRy9/ntbAfTJHKlRyUw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbPWeIJbTXObflxdrMOqxwnVv644TtDT/EBNpP+BeK5 pvmxszuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIl8ncIw38G/+ijzyiW5DbW5 Tf4STpekOcPWMcx3e+L8UEltNuMXnRz37+d0mnSOPmYFAA== 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: ata: ahci: fail probe if BAR too small for claimed ports When an AHCI controller is disabled in BIOS, its HOST_CAP register may contain a bogus value, e.g. 0xFFFFFFFF. Since CAP.NP (Number of Ports) is a zeroes based 5-bit register field, a value of 0x1f means 32 ports. If CAP.NP claims more ports than can physically fit within the mapped BAR region, accessing port registers beyond the BAR boundary causes a kernel panic. Add validation in ahci_init_one() to check that the BAR size is sufficient for the number of ports claimed in CAP.NP. The check calculates the required MMIO size as: required_size = 0x100 (global registers) + max_ports * 0x80 If required_size exceeds the actual BAR size, the probe fails with -ENODEV, preventing the panic and providing a clear error message. [cassel: commit log] The Linux kernel CVE team has assigned CVE-2026-97441 to this issue. Affected and fixed versions =========================== Fixed in 6.12.111 with commit df262c828b616450eb351349e91c63447551bd01 Fixed in 6.18.53 with commit f2e291043c37a896d7f9797e25a356dceb030177 Fixed in 7.2 with commit c4086c6e1af757e1ff26fa2d2926b3ec0195de79 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-97441 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/ata/ahci.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/df262c828b616450eb351349e91c63447551bd01 https://git.kernel.org/stable/c/f2e291043c37a896d7f9797e25a356dceb030177 https://git.kernel.org/stable/c/c4086c6e1af757e1ff26fa2d2926b3ec0195de79