Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6830F35CBA9 for ; Wed, 12 Nov 2025 22:01:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762984874; cv=none; b=EV/fi27/teRJXwWDi2DFiwOc9PH8hHI2561mAqQqbuuaYvEARIijzBR75D/k27T0qrbRJKiCZf58xV2mG3D1dk/ZOz4HFHeT8httCcCY5cQov0Yqr+CkRDHf/B3HO/lutgeqlF/A0uXEzuIlRcC4W9lgjgGtCpKmGXexEEAgFGw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762984874; c=relaxed/simple; bh=XS5cWrpQQ94oJMwY4zjzosuxm2Nr2pewPBenZudqKxM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hu4aiiG5iTxMcM2xqffb1CjxnfuKsie5CKc0AJ946iz77DPLYYb0bbfxL1xcUYfiShX4LNhmYLHhwJXRTAB4RPF64hfSix+CREEXgNZQLtHYDCqUj3euf+/nrct1UvAEnSjf9vczni4sA9aIrUP9eroRoV7j6dK85nBFozPXbZ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NhX/qZ7j; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="NhX/qZ7j" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C73BEC4CEF5; Wed, 12 Nov 2025 22:01:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762984874; bh=XS5cWrpQQ94oJMwY4zjzosuxm2Nr2pewPBenZudqKxM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NhX/qZ7jThgR3pJr2wOrKuq7RG4r2XNdmOBsBEuoylSyy7Y+gSq9y9ILsLAynwtvc ndLyFR2hhlIKmLblBYmkcsDH7L1/dHSQoVSpSwzmvtbPRUyF+jMsDW3WNDYRxHIdHT +fYdc8aALiRbnvsymqDZiWenqtCKqZe1mMoN/wa8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40180: mailbox: zynqmp-ipi: Fix out-of-bounds access in mailbox cleanup loop Date: Wed, 12 Nov 2025 17:00:43 -0500 Message-ID: <2025111243-CVE-2025-40180-8258@gregkh> X-Mailer: git-send-email 2.51.2 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2230; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cSB87KYL/qKpRcYwawr46QlWL0Mqm32SjkCPdL7EyX8=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmizN1zdXUy1nwUvCj31F8zlfHYHy+5ff+MF8VLv207d ulanIZjRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEs41hweLi/em/54X3Gh9w 3+u8OPZb23PzdoYFS37cTnf4Yt5j3sygsU4+7qzM0UeHAQ== 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: mailbox: zynqmp-ipi: Fix out-of-bounds access in mailbox cleanup loop The cleanup loop was starting at the wrong array index, causing out-of-bounds access. Start the loop at the correct index for zero-indexed arrays to prevent accessing memory beyond the allocated array bounds. The Linux kernel CVE team has assigned CVE-2025-40180 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit 4981b82ba2ff87df6a711fcd7a233c615df5fc79 and fixed in 6.12.54 with commit cd0cbf2713f6e027ebba867cb7409ae345a31312 Issue introduced in 5.1 with commit 4981b82ba2ff87df6a711fcd7a233c615df5fc79 and fixed in 6.17.4 with commit ab96f08ecedd263ecaab9df8455bfb23b07fdcc2 Issue introduced in 5.1 with commit 4981b82ba2ff87df6a711fcd7a233c615df5fc79 and fixed in 6.18-rc1 with commit 0aead8197fc1a85b0a89646e418feb49a564b029 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-2025-40180 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/mailbox/zynqmp-ipi-mailbox.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/cd0cbf2713f6e027ebba867cb7409ae345a31312 https://git.kernel.org/stable/c/ab96f08ecedd263ecaab9df8455bfb23b07fdcc2 https://git.kernel.org/stable/c/0aead8197fc1a85b0a89646e418feb49a564b029