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 2E5F41DE3C3 for ; Wed, 26 Feb 2025 01:59:16 +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=1740535156; cv=none; b=kFr7HGucPro8Y/aJQwEUPqRn+n35Y9DFvy015a1pU5ihOIY9DkuXeQGO2DpAVBRUNjK8D+9tPnaNNbtzs7Xl1Ps6Bwsw2e9TP1jroOjm5pcK6uBNtuF6a53npcd0AlWUrw86TyRapjsFgIRJLZaV5XVfBih69sW3LBzeXhtikbQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535156; c=relaxed/simple; bh=rEobbL/1uc6iiPgAlVa2y6V5eF0CciWyH47V+Te8mZo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kuBWMlKBY0wteNWXAaVievMC64noQE7OSGVWqGmnyCV8ycy7QPang6vqbKgBpcpcSdvy+5GD5OQxsggNGIxmZJ9RqWP5tlIfBS5sDMYTf3+2o570Mq4fBPZkukAU5y4BOm2fezh5SU2OxgK723HzYtttzUKVOu+eyW6NbIOz9v0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PA+moR6w; 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="PA+moR6w" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EEC0DC4CEDD; Wed, 26 Feb 2025 01:59:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535156; bh=rEobbL/1uc6iiPgAlVa2y6V5eF0CciWyH47V+Te8mZo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PA+moR6wgasUqcRwF3jsArATEHkf4vbRpHmvE37b25y9m805p382lQT2owM8b6mFI S93LZp/l7BK7YsYaMD0HWulzBhWPktXuf2fns+cGFOkhsMoSs+qtloupOkxxa2y2r2 zPdjwmkDzA1q0ov2m6b48TqjftIO9EijjzVZtuH4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49160: scsi: qla2xxx: Fix crash during module load unload test Date: Wed, 26 Feb 2025 02:56:05 +0100 Message-ID: <2025022610-CVE-2022-49160-0990@gregkh> X-Mailer: git-send-email 2.48.1 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=3022; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rEobbL/1uc6iiPgAlVa2y6V5eF0CciWyH47V+Te8mZo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SpzmNP6o/xZsNVX47XeTDsHAcye2V09/8G73wi6Nk 48qJl/l7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJbJJkmO/yWiRT6Wtdbql1 Q8jpR02PfBwOPmJYcOTN/j1bfwgaRD5qiX0u0ca292VpHAA= 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 during module load unload test During purex packet handling the driver was incorrectly freeing a pre-allocated structure. Fix this by skipping that entry. System crashed with the following stack during a module unload test. Call Trace: sbitmap_init_node+0x7f/0x1e0 sbitmap_queue_init_node+0x24/0x150 blk_mq_init_bitmaps+0x3d/0xa0 blk_mq_init_tags+0x68/0x90 blk_mq_alloc_map_and_rqs+0x44/0x120 blk_mq_alloc_set_map_and_rqs+0x63/0x150 blk_mq_alloc_tag_set+0x11b/0x230 scsi_add_host_with_dma.cold+0x3f/0x245 qla2x00_probe_one+0xd5a/0x1b80 [qla2xxx] Call Trace with slub_debug and debug kernel: kasan_report_invalid_free+0x50/0x80 __kasan_slab_free+0x137/0x150 slab_free_freelist_hook+0xc6/0x190 kfree+0xe8/0x2e0 qla2x00_free_device+0x3bb/0x5d0 [qla2xxx] qla2x00_remove_one+0x668/0xcf0 [qla2xxx] The Linux kernel CVE team has assigned CVE-2022-49160 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 62e9dd177732843ae6c5b9d2ed61e7c9538fa276 and fixed in 5.15.54 with commit 9b7eb92dac240ab3bc83e188d83a3df834b41eb2 Issue introduced in 5.9 with commit 62e9dd177732843ae6c5b9d2ed61e7c9538fa276 and fixed in 5.16.19 with commit 213e57b42537f1a2e5395caa9d7189854133ed12 Issue introduced in 5.9 with commit 62e9dd177732843ae6c5b9d2ed61e7c9538fa276 and fixed in 5.17.2 with commit 67f744f73eba870ab96411d0310e831a4adc3713 Issue introduced in 5.9 with commit 62e9dd177732843ae6c5b9d2ed61e7c9538fa276 and fixed in 5.18 with commit 0972252450f90db56dd5415a20e2aec21a08d036 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-49160 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/9b7eb92dac240ab3bc83e188d83a3df834b41eb2 https://git.kernel.org/stable/c/213e57b42537f1a2e5395caa9d7189854133ed12 https://git.kernel.org/stable/c/67f744f73eba870ab96411d0310e831a4adc3713 https://git.kernel.org/stable/c/0972252450f90db56dd5415a20e2aec21a08d036