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 5E7D14F6498 for ; Wed, 16 Sep 2026 10:36:11 +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=1789554984; cv=none; b=K8nW7S/6NQufEWn38AyX8hJjieUWPENbJ4MoZtzhz23lY6uWJLOHYuCD9XxUk+ZBS3EKw5g/3BiLMkSjqcGPsGd7h8wrr73hNvTuOxDkSq5a5oVNje0Z64Ej/64lkPto8L4zPSGn5St7q8t4YCVqWP8WcSbTT2o8ZR3Y2EUMJUo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789554984; c=relaxed/simple; bh=6FA0uJsSXUQ48klIEKq7qOFuwX12qcvFvX/yz0KJxHw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VD4ZKrrmP3WTdCmMpWfUVCgmiNt5dqYIDlFJJ9kf3Mlziu+P+ZpaKwQeLV0HhPvUFLxQR+VtWuYGnIchjsFV8alo94fpdgJoyCSp3PjzpU9eJH6+kxr04g+oBAWiyC1I7GKaajhgj23Fmd6uu19fppyJG/OIWVnYKcwhDQjUQas= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L08fGtlu; 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="L08fGtlu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD8381F00899; Wed, 16 Sep 2026 10:36:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789554971; bh=jjRqaRiJZ5FmpqFQTm47Rsi+Yau41MlRiOrZlWM4Vqk=; h=From:To:Cc:Subject:Date:Reply-To; b=L08fGtlu6QYh8AcmxGy9JALGfH7WQ5vLSutntN/QIFFwQ/jDqcd+SH7VI2AVg2QwZ FOWPeqfXBf/0OjmovUl1u7zTNdwVauh5xoR01Xh6VkEeHjCvWouZrEWK/+y48fOGLB OjW4woN3Lc0bMCc8MLSRDNGC8W7rBH/YuQORa9CQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89864: scsi: qla2xxx: Bound i2c->length in I2C bsg handlers Date: Wed, 16 Sep 2026 11:29:54 +0100 Message-ID: <2026091622-CVE-2026-89864-b616@gregkh> X-Mailer: git-send-email 2.55.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=4142; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WKwoFXVpA8skmU128S/6yr0exwqLpG3zU/jVhg49C0s=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8puUJs3hFVxgWaOjqftELe0yg7FH01eWJ5+rjh/rz lgw0auyI4aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaiF8AwP6Rp3dyHmdINtrNX sjOazBB389yxnGFG52krKY/5+mt2qH4REGmN31EuuQIA 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: scsi: qla2xxx: Bound i2c->length in I2C bsg handlers struct qla_i2c_access carries a 16-bit length field alongside a fixed 64-byte buffer: struct qla_i2c_access { uint16_t device, offset, option, length; uint8_t buffer[0x40]; } __packed; qla2x00_write_i2c() and qla2x00_read_i2c() use the user-supplied i2c->length without any bounds check. i2c is overlaid on a 256-byte on-stack buffer and sfp is a 256-byte DMA-pool buffer, so a length up to 65535 overruns both: - write: memcpy(sfp, i2c->buffer, i2c->length) over-reads the stack and over-writes the sfp heap buffer, and qla2x00_write_sfp() then DMAs i2c->length bytes out of the 256-byte buffer. - read: qla2x00_read_sfp() DMAs i2c->length bytes into the 256-byte sfp, then memcpy(i2c->buffer, sfp, i2c->length) overflows the 64-byte buffer inside the on-stack array. A caller holding CAP_SYS_RAWIO can use this to corrupt the heap and the kernel stack. Reject requests whose length exceeds the buffer before any copy or DMA transfer in both handlers. The Linux kernel CVE team has assigned CVE-2026-89864 to this issue. Affected and fixed versions =========================== Issue introduced in 3.7 with commit 9ebb5d9c69f1f5721f9f6f49e501c674c1e184ae and fixed in 5.10.270 with commit 8f01f886cc5e7bbc16cbf1a9928fdebbc911e973 Issue introduced in 3.7 with commit 9ebb5d9c69f1f5721f9f6f49e501c674c1e184ae and fixed in 5.15.221 with commit 2be39946abcde5a6416fb074ef728429e246a996 Issue introduced in 3.7 with commit 9ebb5d9c69f1f5721f9f6f49e501c674c1e184ae and fixed in 6.1.188 with commit 522d6dcdc645d8f97d6b4cdfd6d8eea307f3ff0e Issue introduced in 3.7 with commit 9ebb5d9c69f1f5721f9f6f49e501c674c1e184ae and fixed in 6.6.157 with commit 9a756f277eb89f769dbf380f38245c270d31fdb5 Issue introduced in 3.7 with commit 9ebb5d9c69f1f5721f9f6f49e501c674c1e184ae and fixed in 6.12.110 with commit 32d6df14fdab71fe1ba304fd9a0db0411ea2e043 Issue introduced in 3.7 with commit 9ebb5d9c69f1f5721f9f6f49e501c674c1e184ae and fixed in 6.18.51 with commit 97ca58b0fb026799b99e3d552d5f69cf9a3113ad Issue introduced in 3.7 with commit 9ebb5d9c69f1f5721f9f6f49e501c674c1e184ae and fixed in 7.2.5 with commit 47049fdadc0eaa115e813735b827e1379c0d2cf8 Issue introduced in 3.7 with commit 9ebb5d9c69f1f5721f9f6f49e501c674c1e184ae and fixed in 7.3-rc1 with commit 0918ee2c0eeb4d7f45b82b3dc11e65c2d9b7ad59 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-89864 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/scsi/qla2xxx/qla_bsg.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/8f01f886cc5e7bbc16cbf1a9928fdebbc911e973 https://git.kernel.org/stable/c/2be39946abcde5a6416fb074ef728429e246a996 https://git.kernel.org/stable/c/522d6dcdc645d8f97d6b4cdfd6d8eea307f3ff0e https://git.kernel.org/stable/c/9a756f277eb89f769dbf380f38245c270d31fdb5 https://git.kernel.org/stable/c/32d6df14fdab71fe1ba304fd9a0db0411ea2e043 https://git.kernel.org/stable/c/97ca58b0fb026799b99e3d552d5f69cf9a3113ad https://git.kernel.org/stable/c/47049fdadc0eaa115e813735b827e1379c0d2cf8 https://git.kernel.org/stable/c/0918ee2c0eeb4d7f45b82b3dc11e65c2d9b7ad59