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 255EE3168EE for ; Wed, 4 Mar 2026 14:36:56 +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=1772635017; cv=none; b=fc7NvhoA8YkRT8Bvz+BAsLmiCKmfks2Y07HjcASz97kF6B/06vYTxn1+LYs3NvdUjYZswjkjxPahH8xF0TgjXJ1rakmm4LRSPUplqnXVcIt/ubHrHSaQZgKd/vVyshP0jJ7zeoaHRpYvrP4UDbjof2EApyJUQU7rmZ+CzaKUkbQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772635017; c=relaxed/simple; bh=HyJaR3lkNGX+pdn+76N+J2uVsQoXri0uPdJk0b4K140=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RrJv3d0dbv2OTkUkzUzy7o9HiqFV3nHQ46HL9Qjd9Ptkvu6DE+OPB4+8VpESVa+dNBp216d02QE1BU+e1CbWUwMc2+zQeEwaad1VPQVIR3KJ40H49UflDrj9LzNCRZK5980FK4w2e8IvlkwGF7Qrgnhqq24vTm3nZmRvMuuWdb4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YFhCr4BH; 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="YFhCr4BH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6472AC4CEF7; Wed, 4 Mar 2026 14:36:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1772635016; bh=HyJaR3lkNGX+pdn+76N+J2uVsQoXri0uPdJk0b4K140=; h=From:To:Cc:Subject:Date:Reply-To:From; b=YFhCr4BH3UO/p27al9jbWUln5Rm6ktnNeCShKjFP1nRLdT/4glq4aOEw9+8FDczdm uRqLmTvx+WiKV+Gi1ZMa/DlWtW/g8Fb6lwa3qDbBHljPaLyk4ojo7u1zS6+5byDRU5 ywi6bC2dMQK7+5sxXf2HHYziSGrI/0ZjHCSfvT68= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71238: scsi: qla2xxx: Fix bsg_done() causing double free Date: Wed, 4 Mar 2026 15:36:37 +0100 Message-ID: <2026030437-CVE-2025-71238-76bc@gregkh> X-Mailer: git-send-email 2.53.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=4734; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AGW7Z8vLH5OsJLK4X0PQ2GtofU4siQ2Hn05Y/naGN58=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkrnEuLugOYa/bt3Pjupf/u1IfZMYV3Xsv6Rh+dsC10z 6In83L9O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BeAiNxnmp1jeW5zjUx7tOdny Lk+UQOGXC0UzGRZ0PUtIlzzKKfbEbZre6//yE3bcK98DAA== 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: Fix bsg_done() causing double free Kernel panic observed on system, [5353358.825191] BUG: unable to handle page fault for address: ff5f5e897b024000 [5353358.825194] #PF: supervisor write access in kernel mode [5353358.825195] #PF: error_code(0x0002) - not-present page [5353358.825196] PGD 100006067 P4D 0 [5353358.825198] Oops: 0002 [#1] PREEMPT SMP NOPTI [5353358.825200] CPU: 5 PID: 2132085 Comm: qlafwupdate.sub Kdump: loaded Tainted: G W L ------- --- 5.14.0-503.34.1.el9_5.x86_64 #1 [5353358.825203] Hardware name: HPE ProLiant DL360 Gen11/ProLiant DL360 Gen11, BIOS 2.44 01/17/2025 [5353358.825204] RIP: 0010:memcpy_erms+0x6/0x10 [5353358.825211] RSP: 0018:ff591da8f4f6b710 EFLAGS: 00010246 [5353358.825212] RAX: ff5f5e897b024000 RBX: 0000000000007090 RCX: 0000000000001000 [5353358.825213] RDX: 0000000000001000 RSI: ff591da8f4fed090 RDI: ff5f5e897b024000 [5353358.825214] RBP: 0000000000010000 R08: ff5f5e897b024000 R09: 0000000000000000 [5353358.825215] R10: ff46cf8c40517000 R11: 0000000000000001 R12: 0000000000008090 [5353358.825216] R13: ff591da8f4f6b720 R14: 0000000000001000 R15: 0000000000000000 [5353358.825218] FS: 00007f1e88d47740(0000) GS:ff46cf935f940000(0000) knlGS:0000000000000000 [5353358.825219] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [5353358.825220] CR2: ff5f5e897b024000 CR3: 0000000231532004 CR4: 0000000000771ef0 [5353358.825221] PKRU: 55555554 [5353358.825222] Call Trace: [5353358.825223] [5353358.825224] ? show_trace_log_lvl+0x1c4/0x2df [5353358.825229] ? show_trace_log_lvl+0x1c4/0x2df [5353358.825232] ? sg_copy_buffer+0xc8/0x110 [5353358.825236] ? __die_body.cold+0x8/0xd [5353358.825238] ? page_fault_oops+0x134/0x170 [5353358.825242] ? kernelmode_fixup_or_oops+0x84/0x110 [5353358.825244] ? exc_page_fault+0xa8/0x150 [5353358.825247] ? asm_exc_page_fault+0x22/0x30 [5353358.825252] ? memcpy_erms+0x6/0x10 [5353358.825253] sg_copy_buffer+0xc8/0x110 [5353358.825259] qla2x00_process_vendor_specific+0x652/0x1320 [qla2xxx] [5353358.825317] qla24xx_bsg_request+0x1b2/0x2d0 [qla2xxx] Most routines in qla_bsg.c call bsg_done() only for success cases. However a few invoke it for failure case as well leading to a double free. Validate before calling bsg_done(). The Linux kernel CVE team has assigned CVE-2025-71238 to this issue. Affected and fixed versions =========================== Fixed in 5.10.251 with commit 057a5bdc481e58ab853117254867ffb22caf9f6e Fixed in 5.15.201 with commit f2bbb4db0e4a4fbd5e649c0b5d8733f61da24720 Fixed in 6.1.164 with commit 27ac9679c43a09e54e2d9aae9980ada045b428e0 Fixed in 6.6.127 with commit 74e7458537cd9349cf019862e51491f670871707 Fixed in 6.12.74 with commit 871f6236da96c4a9712b8a29d7f555f767a47e95 Fixed in 6.18.13 with commit 31f33b856d2324d86bcaef295f4d210477a1c018 Fixed in 6.19.3 with commit 708003e1bc857dd014d4c44278d7d77c26f91b1c Fixed in 7.0-rc1 with commit c2c68225b1456f4d0d393b5a8778d51bb0d5b1d0 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-2025-71238 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/057a5bdc481e58ab853117254867ffb22caf9f6e https://git.kernel.org/stable/c/f2bbb4db0e4a4fbd5e649c0b5d8733f61da24720 https://git.kernel.org/stable/c/27ac9679c43a09e54e2d9aae9980ada045b428e0 https://git.kernel.org/stable/c/74e7458537cd9349cf019862e51491f670871707 https://git.kernel.org/stable/c/871f6236da96c4a9712b8a29d7f555f767a47e95 https://git.kernel.org/stable/c/31f33b856d2324d86bcaef295f4d210477a1c018 https://git.kernel.org/stable/c/708003e1bc857dd014d4c44278d7d77c26f91b1c https://git.kernel.org/stable/c/c2c68225b1456f4d0d393b5a8778d51bb0d5b1d0