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 27E674FC8C1 for ; Wed, 16 Sep 2026 10:37:26 +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=1789555061; cv=none; b=OuvDgn6uZ/xjvJ1YGwPaPlpbtB/IDF2+rsJ12Nn4KAQ/QMf8hPL+DIumPiLZnBbu4O1qL3gBQV3ZVhTMhPBmS4l0A2PTbq6Drs6P+UcUcQsffN1ByArTssTH8Pb6gOX1GvZzQneQDcRVF+U70/ji/xaKR9DXUblGTtM9XumT1eg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555061; c=relaxed/simple; bh=wsp3dtj2/spKQ34tFYN4h4t8AIgmoWaJVAKyqaGWwCk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jcyVi4YaWO3Snyjs38hphzOLppLoaZgoaU6Q0sFFeuFWmq9X8wEmmvV569Hfhw7YYAUFBfZEkWOb1OMLtn7HWZy9hP5Ov0jvDzDeuB5MupQ2YxQKIS2wcXNyb1UwHMI7wELPbmFSWWAkpICeTlHAVSUhciYRS+7pUJ0xcD+H8vw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QEsx4KB8; 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="QEsx4KB8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C0241F00898; Wed, 16 Sep 2026 10:37:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789555046; bh=IafoMiNz6riPWI+VQgxEhNRL7CC7DyNild2gSfDKe1E=; h=From:To:Cc:Subject:Date:Reply-To; b=QEsx4KB8ezZgMrBNCnMR8ZK8YycMq7vt2yAutmLotEevCYEe31d4z+bxk3tlzedI6 dp7+F7ZRF2rTZrJEZHf9+IxftEDmVgmqkAQFe5Opp6/j94MBM7ZOXBog2KxnQc9CsK zFP9Qwo2PLUKtijxpLtLoEC8WsUqnYjiRQJQKxVQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89847: scsi: qla2xxx: Avoid double completion in async IOCB timeout Date: Wed, 16 Sep 2026 11:29:37 +0100 Message-ID: <2026091614-CVE-2026-89847-3fa2@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=4385; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zwdzthrc3qchlcWCFHS7Cj4GVQY9xx93bwVuMAUBb74=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8queuR68w/nLY2HvuqLVs9m7tVsXdZheNJzII+PLf G5R0k63jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIPkOGBdtF1jMdfzTf07zi lqqA2I+bC/aujGdYsEZG8ebUHOY09jurrj1/2SV0Js2xBwA= 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: Avoid double completion in async IOCB timeout qla2x00_async_iocb_timeout() tries to abort a timed-out async IOCB. When qla24xx_async_abort_cmd() fails, both the SRB_LOGIN_CMD path and the SRB_CTRL_VP/default path scan outstanding_cmds[] for the SRB and then call sp->done(sp, QLA_FUNCTION_TIMEOUT) unconditionally, without checking whether the SRB was actually found and removed. If the response ISR completes the same handle first, it removes the SRB under qp_lock_ptr and runs sp->done() -> complete(sp->comp). The submitter qla24xx_control_vp() wakes from wait_for_completion(), clears sp->comp, drops its reference and returns, reclaiming the on-stack completion. The timer reference keeps the SRB alive across the timeout handler, but not the submitter's stack. The timeout then issues a second sp->done() -> qla_ctrlvp_sp_done(), which evaluates "if (sp->comp) complete(sp->comp)"; with the pointer loaded before the submitter's NULL store, complete() writes into the freed stack frame, a use-after-free. Track whether this path removed the SRB from outstanding_cmds and only call sp->done() when it did, so the command is completed exactly once by whichever path owns it. This mirrors the sp_found guard already used in qla24xx_abort_iocb_timeout(). The Linux kernel CVE team has assigned CVE-2026-89847 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit f6145e86d21fccd59bbb87bc1e1eb076658fd79a and fixed in 5.10.270 with commit 71a7b6e3c7f121439f51a058e53d4a8e05b63dec Issue introduced in 4.19 with commit f6145e86d21fccd59bbb87bc1e1eb076658fd79a and fixed in 5.15.221 with commit 7257b5e1fb6c9387714f66e01b79ec82b717eede Issue introduced in 4.19 with commit f6145e86d21fccd59bbb87bc1e1eb076658fd79a and fixed in 6.1.188 with commit f5b660e0b0d9190d8853c795c2522cc5f8c93003 Issue introduced in 4.19 with commit f6145e86d21fccd59bbb87bc1e1eb076658fd79a and fixed in 6.6.157 with commit 6e217a9482eabbd8b29847be334c74cf468d3544 Issue introduced in 4.19 with commit f6145e86d21fccd59bbb87bc1e1eb076658fd79a and fixed in 6.12.110 with commit d6d856c722f40f0694ff755208552e658db6dd42 Issue introduced in 4.19 with commit f6145e86d21fccd59bbb87bc1e1eb076658fd79a and fixed in 6.18.51 with commit 9fa1d71233a82416492d9c9de9756ebe140fe714 Issue introduced in 4.19 with commit f6145e86d21fccd59bbb87bc1e1eb076658fd79a and fixed in 7.2.5 with commit 845d4abd92cd2f97551356c8b281ad6e197acb07 Issue introduced in 4.19 with commit f6145e86d21fccd59bbb87bc1e1eb076658fd79a and fixed in 7.3-rc1 with commit bb45bc4bd53c95a7bf6f782577b5ede94c0f8aa8 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-89847 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_init.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/71a7b6e3c7f121439f51a058e53d4a8e05b63dec https://git.kernel.org/stable/c/7257b5e1fb6c9387714f66e01b79ec82b717eede https://git.kernel.org/stable/c/f5b660e0b0d9190d8853c795c2522cc5f8c93003 https://git.kernel.org/stable/c/6e217a9482eabbd8b29847be334c74cf468d3544 https://git.kernel.org/stable/c/d6d856c722f40f0694ff755208552e658db6dd42 https://git.kernel.org/stable/c/9fa1d71233a82416492d9c9de9756ebe140fe714 https://git.kernel.org/stable/c/845d4abd92cd2f97551356c8b281ad6e197acb07 https://git.kernel.org/stable/c/bb45bc4bd53c95a7bf6f782577b5ede94c0f8aa8