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 787D0405C39 for ; Wed, 27 May 2026 13:01:14 +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=1779886875; cv=none; b=FKK+4gptfttozNMvA0Xum2dML+fQvLQqXw+B7kmuJUeAtZ7I51D/CcrUtZWmZu2EGyMcAhyh7aAO2+FBfePovHTnkPoRoIPZg3nC5qFnumXyj+YCUDw/rUBnG6PO1HRWmlKhPB1UyiFAWAco1a9v8iYH5ybQuJvwbZ3bhO9D+Ec= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779886875; c=relaxed/simple; bh=9QdxNbzV3GJdm+dPWTQN8BuobQE1qxW4GNs+QyMoqd0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iHDsuFu3P8qsjEj5VNS/sI1G/iHjDrcTu3WO97FDTSTCl4nZW9wU6IFg3TpA/UUONRjsduP3mOPjBAGDXGHV/P1/0byJZvQYjbsVSuUVaBbVY1YOJGCezr+z78AYAjNe2jYs7g2egWHT+axdtcExn4gB7oee3ezqoi90LKa+pM0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ki3qB+tS; 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="Ki3qB+tS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B74DB1F000E9; Wed, 27 May 2026 13:01:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779886874; bh=/r63c6WkjOMya9YhZltD8fbZLApFhDjOxOLBKmPD5sM=; h=From:To:Cc:Subject:Date:Reply-To; b=Ki3qB+tSCEYVGIo9BRrof9R7JBWdaU/KlzDTvJUwC9kqAIwvrrbFJrW+J3HCzI2E2 yy/QbR9XyzMii157s9Abw3IU6iNUmZj++pPN0J3vY/rbtdBaErCACajYr2OcqNWqHJ p7MRvvtU7BNT2zHBvr1lb7h9GDMzvX7rPLkAE8sk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45994: ibmasm: fix OOB reads in command_file_write due to missing size checks Date: Wed, 27 May 2026 14:58:45 +0200 Message-ID: <2026052740-CVE-2026-45994-3605@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=3452; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0ZCb4WdX2ZKU8gJbsOBMwYBwff6hzVecJon7uG2NKKA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlirxo+LIgL8Ztbv+fwqcBdHyUNkzrXf2jX31NbsIG/d 921Db6cHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRDzMY5kf68+7RUjPRYutT M+jKVIjXVYzsZ1gwpV3kz235i5OvCxhd3HH1p8/3G3qWAA== 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 OOB reads in command_file_write due to missing size checks The command_file_write() handler allocates a kernel buffer of exactly count bytes and copies user data into it, but does not validate the buffer against the dot command protocol before passing it to get_dot_command_size() and get_dot_command_timeout(). Since both the allocation size (count) and the header fields (command_size, data_size) are independently user-controlled, an attacker can cause get_dot_command_size() to return a value exceeding the allocation, triggering OOB reads in get_dot_command_timeout() and an out-of-bounds memcpy_toio() that leaks kernel heap memory to the service processor. Fix with two guards: reject writes smaller than sizeof(struct dot_command_header) before allocation, then after copying user data reject commands where the buffer is smaller than the total size declared by the header (sizeof(header) + command_size + data_size). This ensures all subsequent header and payload field accesses stay within the buffer. The Linux kernel CVE team has assigned CVE-2026-45994 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.140 with commit a672682d39dd34e2b5ba4feb436723bed65125ff Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.86 with commit aefc1a97da17d8309974690c8a03e439a91ebb1c Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.27 with commit ee5737891464030a189837467df3b81a273718ad Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.0.4 with commit d0fb4d1dc43f8d5179917a2daaa82680993d4cdf Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.1-rc1 with commit 0eb09f737428e482a32a2e31e5e223f2b35a71d3 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-45994 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/ibmasmfs.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/a672682d39dd34e2b5ba4feb436723bed65125ff https://git.kernel.org/stable/c/aefc1a97da17d8309974690c8a03e439a91ebb1c https://git.kernel.org/stable/c/ee5737891464030a189837467df3b81a273718ad https://git.kernel.org/stable/c/d0fb4d1dc43f8d5179917a2daaa82680993d4cdf https://git.kernel.org/stable/c/0eb09f737428e482a32a2e31e5e223f2b35a71d3