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 45102407CF4 for ; Wed, 27 May 2026 13:04:12 +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=1779887053; cv=none; b=EMNA6bQBJJICadeE6WruCXceF9isG6Z/nmWsrZUcSfXQuCzcprGSgFr27/pzH6e8H306YNdY6KdyzRrpcKgPz8q8HqfvgvYZFM+kWoHZWegxrYLelj2HlCGnEoo3GZKWEiYfbSs8zcX97cpHBe/rlt8TXJNofKTq6EpO99gqo+4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887053; c=relaxed/simple; bh=HRqz40fF3s4iyqCHLw79Xn48IPO89H/8pM76ZjqcF44=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Xtch0xGJDWyIsiaPCKHWCa1705tPxPxzgwEKUVAaceNXDLvb/u4UOl6h+PdXLY8tOw/YeXdfPe6dw1vvUlAPhAqweUzPOgoepH+LWgEM32B+xD3XnxLN/qYq2QtKaOujP4Xst41V3JH8xA755NJfSZV2j8N4QWto8YwPSY6rc/k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EbT1EBLi; 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="EbT1EBLi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FFC41F000E9; Wed, 27 May 2026 13:04:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779887052; bh=GIYXaWt+//MQWLrasH8yzNdg1ZWB9vs3FADusF2eEo0=; h=From:To:Cc:Subject:Date:Reply-To; b=EbT1EBLi2fip9T0hcdAF0wgOAsXGr5gXEil8C+mu9XEjqA2NSG9dEn7by+BpoJmNk u40+Dnp9HRQFpCqKjFmUXdtx9SUs7KpXj3Ms9awNq5qVAknYlH2Jyp7T9YnujesS+W 4gFedETkkGWuNyqkSoPVekOpN0Yl9JOoZ2SrohrY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46064: ibmasm: fix heap over-read in ibmasm_send_i2o_message() Date: Wed, 27 May 2026 14:59:55 +0200 Message-ID: <2026052756-CVE-2026-46064-ba4f@gregkh> X-Mailer: git-send-email 2.54.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=3799; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bYVwpZzaTEBYi0fZfGrKxJ8AiwHFU87YB1daO6uvLOM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliryYcTvi/rP3gGaVP35R2uClwHP36rLXCY0prYkTNC vmtXv4RHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR5GUMczjl6s37lohXK4Qy HTLjy3oka3S4iWGe6RLD3DCdhfPt2VIPftbzcV++MmMdAA== 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: ibmasm: fix heap over-read in ibmasm_send_i2o_message() The ibmasm_send_i2o_message() function uses get_dot_command_size() to compute the byte count for memcpy_toio(), but this value is derived from user-controlled fields in the dot_command_header (command_size: u8, data_size: u16) and is never validated against the actual allocation size. A root user can write a small buffer with inflated header fields, causing memcpy_toio() to read up to ~65 KB past the end of the allocation into adjacent kernel heap, which is then forwarded to the service processor over MMIO. Silently clamping the copy size is not sufficient: if the header fields claim a larger size than the buffer, the SP receives a dot command whose own header is inconsistent with the I2O message length, which can cause the SP to desynchronize. Reject such commands outright by returning failure. Validate command_size before calling get_mfa_inbound() to avoid leaking an I2O message frame: reading INBOUND_QUEUE_PORT dequeues a hardware frame from the controller's free pool, and returning without a corresponding set_mfa_inbound() call would permanently exhaust it. Additionally, clamp command_size to I2O_COMMAND_SIZE before the memcpy_toio() so the MMIO write stays within the I2O message frame, consistent with the clamping already performed by outgoing_message_size() for the header field. The Linux kernel CVE team has assigned CVE-2026-46064 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.140 with commit fd19eb1c75047a4ed4e855f56cafd704dc3914e0 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.86 with commit fe31722b0194ff76bf8b461e8bf97a2081147787 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.27 with commit c1c2417c60dbdca5ebb00462f21ee71c2d7f7083 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.0.4 with commit 9e8f6c9d4ecddda2f28baa1678340286cff3969c Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.1-rc1 with commit 9aad71144fa3682cca3837a06c8623016790e7ec 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-46064 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/misc/ibmasm/lowlevel.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/fd19eb1c75047a4ed4e855f56cafd704dc3914e0 https://git.kernel.org/stable/c/fe31722b0194ff76bf8b461e8bf97a2081147787 https://git.kernel.org/stable/c/c1c2417c60dbdca5ebb00462f21ee71c2d7f7083 https://git.kernel.org/stable/c/9e8f6c9d4ecddda2f28baa1678340286cff3969c https://git.kernel.org/stable/c/9aad71144fa3682cca3837a06c8623016790e7ec