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 DD61FF516 for ; Sun, 28 Apr 2024 13:05:06 +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=1714309507; cv=none; b=XeHkBRhzszL1tnhkBqIYYym9z5rFXKNcybJe0SEhkDvzB0aB+WUBOBC5/le4Vl/yEVTt7QMNF6c6Gq3QCnrcSpQbHxkQGeRClrwhdbgiTFqTMPbDF9CKMNyBRdaQLuKF0rM6WQryjRqfO/mpGOTdi8EQgEyJVHYEtNvIeojFQ60= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714309507; c=relaxed/simple; bh=bp7fvPJqvwAyzIbHFbr5IkaXKtoJGiqCCo+ouznMkPs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kVkd8R1CPH6pvrWOHHtDVPQLmuWHwZtG6xWlss99DQDRe7qXA8uAlUgUWzNsjn8unEA+dNc7PK7MFu+ASA3j7FMvaTTYyCiyCMHZEZV7aEi3BSzEaA4oww+AH8l9GwOJcl5A3pOq3ke89BNiJqumhdwQp3Hd0LPvkmJlR2gv5rQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XXnDsHWH; 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="XXnDsHWH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E9D7C113CC; Sun, 28 Apr 2024 13:05:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714309506; bh=bp7fvPJqvwAyzIbHFbr5IkaXKtoJGiqCCo+ouznMkPs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XXnDsHWH/h0EiG4q9sQdTsBJ7++hB6qvUsm95x6fTYZzAq7N2iUBrufkR7psrrHoM WZaMF0SzP+SQ3VnIW48K9aJrnj7GIBLmZoMptQZECevEQNcC2YJKZCJ4xDSXy1fyG4 J+/A4DbFxyodWmEd6CJrR1QxC8YQStRr9hi47qxw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48632: i2c: mlxbf: prevent stack overflow in mlxbf_i2c_smbus_start_transaction() Date: Sun, 28 Apr 2024 15:04:53 +0200 Message-ID: <2024042854-CVE-2022-48632-465f@gregkh> X-Mailer: git-send-email 2.44.0 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=2136; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bp7fvPJqvwAyzIbHFbr5IkaXKtoJGiqCCo+ouznMkPs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGl6nmXl/wrqhDSjjSZv2XffpeWwTNObRX+iay3nlk7ee bhV4lBWRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkx3yGBdOKTqxoXzYt1vjO T49rz1J8A1ffbmKYX8Q+pXP6o1td1gYR72e5b4gWO779BAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: i2c: mlxbf: prevent stack overflow in mlxbf_i2c_smbus_start_transaction() memcpy() is called in a loop while 'operation->length' upper bound is not checked and 'data_idx' also increments. The Linux kernel CVE team has assigned CVE-2022-48632 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit b5b5b32081cd and fixed in 5.10.146 with commit 48ee0a864d1a Issue introduced in 5.10 with commit b5b5b32081cd and fixed in 5.15.71 with commit dc2a0c587006 Issue introduced in 5.10 with commit b5b5b32081cd and fixed in 5.19.12 with commit 3b5ab5fbe69e Issue introduced in 5.10 with commit b5b5b32081cd and fixed in 6.0 with commit de24aceb07d4 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-2022-48632 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/i2c/busses/i2c-mlxbf.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/48ee0a864d1af02eea98fc825cc230d61517a71e https://git.kernel.org/stable/c/dc2a0c587006f29b724069740c48654b9dcaebd2 https://git.kernel.org/stable/c/3b5ab5fbe69ebbee5692c72b05071a43fc0655d8 https://git.kernel.org/stable/c/de24aceb07d426b6f1c59f33889d6a964770547b