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 0BC7150A80 for ; Tue, 27 Feb 2024 18:48:22 +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=1709059702; cv=none; b=UdRxLGoOPbDk9fG0uCHzGSUaDv7gLCCWWzR+hSPGAllwY4LvJlbrdd7it+HACVprqZ7S7HNXXCs3iEYHO+2ndMVcmD4q/ooAu3XnDh8Mb+LI8F2VwVf8eUmfVBTJpKTJ4WtRlz9iw5AxaZJbKQKT5qkUwHWiq0PFicRxr1Ufd4g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709059702; c=relaxed/simple; bh=Rntj0OA1qfXjtLiWK/f7gupPJT/NDq0CwutDVzQxjRE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=o+rs0M6tJcNtVnSy1XDMD0hti5g0pxFZH5S5cKZ6Whz5vKh13cQkxD9ApK2R0oZYxBRLUtWnHImhcNsXWpH+Fnx9Rz4/LMkNxznE7Py8/a0Kab0s4tfTw9Jx6HyOvCY08L1ZhDTVjJCvzRugoixnpT6laRLl9QaUwiw8PU0LqA0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mBGhrYwV; 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="mBGhrYwV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A88EC433C7; Tue, 27 Feb 2024 18:48:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709059701; bh=Rntj0OA1qfXjtLiWK/f7gupPJT/NDq0CwutDVzQxjRE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mBGhrYwVTSKC/JuP3NIOC+bXJF2FrlDZ92+u3rmuq+cDfBVBVzjjxE5LVLl0z5g1X MlXjBhVbkcw4mp0vJVaSlTIb35JwE2zENKuxdBsKwJoWqM3dG0hL1VLYmXMo++vx6E IDvkLet1rn/2c+amf4cCISeYtYBNyx/7YNrIW7D0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46963: scsi: qla2xxx: Fix crash in qla2xxx_mqueuecommand() Date: Tue, 27 Feb 2024 19:47:23 +0100 Message-ID: <2024022719-CVE-2021-46963-32a8@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=2738; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Rntj0OA1qfXjtLiWK/f7gupPJT/NDq0CwutDVzQxjRE=; b=owGbwMvMwCRo6H6F97bub03G02pJDKn39MwbZhqwJYSJBevylZ/yi/r5Jr10+fxHZ7k/ZRrtX N01uya7I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaS08OwYHt9Y80K+yC+AvkZ GzYwO2+dPEOpg2HBYsHfyleOdkvuCZe+H2locodVlr8LAA== 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: scsi: qla2xxx: Fix crash in qla2xxx_mqueuecommand() RIP: 0010:kmem_cache_free+0xfa/0x1b0 Call Trace: qla2xxx_mqueuecommand+0x2b5/0x2c0 [qla2xxx] scsi_queue_rq+0x5e2/0xa40 __blk_mq_try_issue_directly+0x128/0x1d0 blk_mq_request_issue_directly+0x4e/0xb0 Fix incorrect call to free srb in qla2xxx_mqueuecommand(), as srb is now allocated by upper layers. This fixes smatch warning of srb unintended free. The Linux kernel CVE team has assigned CVE-2021-46963 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19.90 with commit 64a8c5018a4b and fixed in 4.19.191 with commit c5ab9b67d8b0 Issue introduced in 5.4.4 with commit dea6ee717303 and fixed in 5.4.118 with commit 77509a238547 Issue introduced in 5.5 with commit af2a0c51b120 and fixed in 5.10.36 with commit 702cdaa2c628 Issue introduced in 5.5 with commit af2a0c51b120 and fixed in 5.11.20 with commit 80ef24175df2 Issue introduced in 5.5 with commit af2a0c51b120 and fixed in 5.12.3 with commit a73208e32441 Issue introduced in 5.5 with commit af2a0c51b120 and fixed in 5.13 with commit 6641df81ab79 Please see https://www.kernel.org or 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-2021-46963 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_os.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/c5ab9b67d8b061de74e2ca51bf787ee599bd7f89 https://git.kernel.org/stable/c/77509a238547863040a42d57c72403f7d4c89a8f https://git.kernel.org/stable/c/702cdaa2c6283c135ef16d52e0e4e3c1005aa538 https://git.kernel.org/stable/c/80ef24175df2cba3860d0369d1c662b49ee2de56 https://git.kernel.org/stable/c/a73208e3244127ef9f2cdf24e4adb947aaa32053 https://git.kernel.org/stable/c/6641df81ab799f28a5d564f860233dd26cca0d93