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 805BA3D333C for ; Fri, 28 Aug 2026 06:52:23 +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=1787899944; cv=none; b=ficYLGt587mKLHH5z5Ydc7tfGxUPKdNYwZK2K3+mNMigNT25QyY5uD9iFP0XZX4xx3f6VYLgVtrk4KacOPcqfgu1X7DdjtT2TjCioyaaqHYJXleZSqFrVYvS1GpSulyjb2AnrEIebnQSZvifdI0x6GsfBqVspezJ7K+76VhplT0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787899944; c=relaxed/simple; bh=6SYy0nDXBcdE5Dh1ivmkegjunXqGmHDE5UJIX6FOtqg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U7rfeYhzBdSg/T53zTJxnVmVe+JEhadbecVRC4X9eta0UEiW2WvA/QQjT/zhNLnMrzzxvuYxghFtv1K9fRk9TUBewvW5yJ2bF+IN1GFwvP/3FKiLCRR1p7PupTV+gPsBV808idmVcPjktrI7QxlG9ger6di9m381G65JQbyefS8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=u95FgLHU; 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="u95FgLHU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D19921F00A3A; Fri, 28 Aug 2026 06:52:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787899943; bh=a1dVx29t90OzBQHwDtswUUZYzKqBJDQ4OQAOk3dUX0w=; h=From:To:Cc:Subject:Date:Reply-To; b=u95FgLHURatcXN4UAM4mDFRR3/KHYAE/UGj6TIJqbgyUqF23VZ2BnJujewj2WMGxm /bpBMEKBTTRGaW98bn9nK7DVI9ewdUfnrlfrequp91Y8Pmiip0ar9KUE7wx52CxUUq Ud9SsGPrzc6XG7QxE/FJ3vqbdew8DnWq1ddCGlNg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80627: MIPS: mm: Fix out-of-bounds write in maar_res_walk() Date: Fri, 28 Aug 2026 08:49:04 +0200 Message-ID: <2026082838-CVE-2026-80627-1634@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=3686; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=n2PTItNGvuxlFuwMP/wYsG9dkkOZl+jVafiTkzcnZnU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkT9d3C017eWew+x2xbWGCaeS4Xm/PSS2fm8geVnpI8d zFqS+mbjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIaCnDPMvt7ZrMzzfVb94b pfDq6NcF5fbL3jAsWPSrlOHGnzg9JrNvF3KcrhRvFzeNBAA= 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: MIPS: mm: Fix out-of-bounds write in maar_res_walk() maar_res_walk() uses wi->num_cfg as the index into the fixed-size wi->cfg array, but checks whether the array is full only after it has filled the selected entry. If walk_system_ram_range() reports more than 16 memory ranges, the overflow call writes one struct maar_config past the end of the array before WARN_ON() prevents num_cfg from advancing. Move the full-array check before taking the array slot and return non-zero when the scratch array is full, so walk_system_ram_range() terminates the walk instead of invoking the callback for further ranges. The Linux kernel CVE team has assigned CVE-2026-80627 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit a5718fe8f70f33b1b5b47a153057cfdd19684598 and fixed in 5.10.261 with commit a594100e147a6a67eb29189170f1df3645cda12b Issue introduced in 5.4 with commit a5718fe8f70f33b1b5b47a153057cfdd19684598 and fixed in 5.15.212 with commit 8b3e0c1c63015deaf084286899f5b2d0526715de Issue introduced in 5.4 with commit a5718fe8f70f33b1b5b47a153057cfdd19684598 and fixed in 6.1.178 with commit 44c1d902cf0798b60762a7a98be992b9f5ded7dd Issue introduced in 5.4 with commit a5718fe8f70f33b1b5b47a153057cfdd19684598 and fixed in 6.6.145 with commit ac7385af1dca86a5ea704c80ca4dc822083ff9e2 Issue introduced in 5.4 with commit a5718fe8f70f33b1b5b47a153057cfdd19684598 and fixed in 6.12.97 with commit 431812eb88c200bc3ec33b88782c8cc415842074 Issue introduced in 5.4 with commit a5718fe8f70f33b1b5b47a153057cfdd19684598 and fixed in 6.18.40 with commit 92f38fe85198ace9b211bc7712b7951acfb94560 Issue introduced in 5.4 with commit a5718fe8f70f33b1b5b47a153057cfdd19684598 and fixed in 7.1.5 with commit 038f068cced8e9c49e8c419f3112d909ad366a3a Issue introduced in 5.4 with commit a5718fe8f70f33b1b5b47a153057cfdd19684598 and fixed in 7.2 with commit 1b001b16bc88f3f7817e228acfd91ee01bdcfcce 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-80627 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: arch/mips/mm/init.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/a594100e147a6a67eb29189170f1df3645cda12b https://git.kernel.org/stable/c/8b3e0c1c63015deaf084286899f5b2d0526715de https://git.kernel.org/stable/c/44c1d902cf0798b60762a7a98be992b9f5ded7dd https://git.kernel.org/stable/c/ac7385af1dca86a5ea704c80ca4dc822083ff9e2 https://git.kernel.org/stable/c/431812eb88c200bc3ec33b88782c8cc415842074 https://git.kernel.org/stable/c/92f38fe85198ace9b211bc7712b7951acfb94560 https://git.kernel.org/stable/c/038f068cced8e9c49e8c419f3112d909ad366a3a https://git.kernel.org/stable/c/1b001b16bc88f3f7817e228acfd91ee01bdcfcce