From mboxrd@z Thu Jan 1 00:00:00 1970 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 DC2293D75D7 for ; Wed, 27 May 2026 12:21: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=1779884473; cv=none; b=F9NK9Bn24Ti5kto4ZhLomSx+OX4RkoQ+kYa0WmXjfHD2YZ8NGrX2lyqyYx56NlPP2vqspb6nYteiQLhPcZD4K9npJwgfKSdW52LT7s+XSIDZmLMuhVw+6dtn3GHFDlIIgXt4riHRU2L1l10LDbHN3ts73d1PPwBkRbu7BkBPsOc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884473; c=relaxed/simple; bh=Ad4GEJe5OCj52yMjjMEH/LHerpbBCOiotmLP7Cn1KgA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UgAfzu4x74tGM8UxUmwaPgnAo+S6sJnlfYQ8lq/vMPfuDraCst3fUCt7Uo1A+ZCX3sDSsUsOlX7Eg3rB/QEOc5Ew/s16QYWqjq2rtTAChj+E+GpmkjcAdJW9nzVHe9Gx1G1drgkizaHIPoR/WffeHL11JcGlFuod8Du/2zHKPL4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SpLfJBDs; 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="SpLfJBDs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC8EF1F000E9; Wed, 27 May 2026 12:21:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884471; bh=95jjJoWyj9WMGNyQhE0wwFHdj6ypWSmNHrnSYlkaib8=; h=From:To:Cc:Subject:Date:Reply-To; b=SpLfJBDsXWVp4+UH9gKjlWAvMpENNs08ymiZanvJvJSA9jv3gD+CriSCSiXSSQ0Ah SNAZsA+T8GRfi9Js1LYOCFyneAucCt97gfBoVZgl+v/GDbm7kQbw/2NakiWZBtW/wu UaDHnn7ayA5GTp27hb/ZDDdXl6bHgsVobhkBfyxw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45872: scsi: smartpqi: Fix memory leak in pqi_report_phys_luns() Date: Wed, 27 May 2026 14:18:34 +0200 Message-ID: <2026052713-CVE-2026-45872-0503@gregkh> X-Mailer: git-send-email 2.54.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=3168; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZzOG75YtS8GZrKyxRaX3m7CTxQA8yJ+u3FgdPkW2x8Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD1mX2R8VrrF85K2dnjklv/bqzy0xU1Z8ktnPbvHvm 8vPP8ZqHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR5pMMCw5u522Xlg7nmPD4 8KuKDjeFE28l/BkW9KepdLC31B2Yc3fR87rZoSwVImtnAAA= 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: smartpqi: Fix memory leak in pqi_report_phys_luns() pqi_report_phys_luns() fails to release the rpl_list buffer when encountering an unsupported data format or when the allocation for rpl_16byte_wwid_list fails. These early returns bypass the cleanup logic, leading to memory leaks. Consolidate the error handling by adding an out_free_rpl_list label and use goto statements to ensure rpl_list is consistently freed on failure. Compile tested only. Issue found using a prototype static analysis tool and code review. The Linux kernel CVE team has assigned CVE-2026-45872 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 28ca6d876c5a375094847606046e0bf5d044d9b4 and fixed in 6.1.165 with commit f471ecfec093e39ef8fd08978413793087daa14d Issue introduced in 5.16 with commit 28ca6d876c5a375094847606046e0bf5d044d9b4 and fixed in 6.6.128 with commit fdf1188cfa80f88c9f18d58cb33d57ff40e70e26 Issue introduced in 5.16 with commit 28ca6d876c5a375094847606046e0bf5d044d9b4 and fixed in 6.12.75 with commit d52e13122d3771f753dd73ae6512fa01f58015cb Issue introduced in 5.16 with commit 28ca6d876c5a375094847606046e0bf5d044d9b4 and fixed in 6.18.14 with commit e5579ebaadc7b699868dad0f591a7bf83cd647e1 Issue introduced in 5.16 with commit 28ca6d876c5a375094847606046e0bf5d044d9b4 and fixed in 6.19.4 with commit 454570434114e4862767f506a442a0f110b639b2 Issue introduced in 5.16 with commit 28ca6d876c5a375094847606046e0bf5d044d9b4 and fixed in 7.0 with commit 41b37312bd9722af77ec7817ccf22d7a4880c289 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-45872 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/smartpqi/smartpqi_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/f471ecfec093e39ef8fd08978413793087daa14d https://git.kernel.org/stable/c/fdf1188cfa80f88c9f18d58cb33d57ff40e70e26 https://git.kernel.org/stable/c/d52e13122d3771f753dd73ae6512fa01f58015cb https://git.kernel.org/stable/c/e5579ebaadc7b699868dad0f591a7bf83cd647e1 https://git.kernel.org/stable/c/454570434114e4862767f506a442a0f110b639b2 https://git.kernel.org/stable/c/41b37312bd9722af77ec7817ccf22d7a4880c289