Skip to contentSkip to conversation

CVE-2025-40180: mailbox: zynqmp-ipi: Fix out-of-bounds access in mailbox cleanup loop

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 12, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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