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 9166833086 for ; Sun, 29 Dec 2024 11:30:52 +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=1735471852; cv=none; b=SITggFWKdBGJjy8Nrt/xCZ8mb8MbaepT/2sCVjnkOa9Xr55NKnZKmJvYjeoGY1bvyau8/Kl171S9H1vlC1X3Hb9lI3losYBDKynTFEWrb1EDrqUpjuOL3D6tynQc4+Lk8yyqruLSTi6+gyH+36YD9WIFix6VW/yFLCUG+NWVHHE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735471852; c=relaxed/simple; bh=Yebh3NK0ozLlHqu7I9+n7KlB928C6tDPT52LSagntHw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d7WuBLVGmd9+MUmMO4FdxxiiwWeAsPfaSnbscREZUYU8t5eA7GIhcYh9CrT8GFQX9kmXXO97+QoZrYwOozDyEjEunOG1Kl9P2HXUci7BdoEDcU+wOezMnK3Jn3p5Eop4k8HbdqSLyBVtiKEsNkyLHPflaOOXJwJN40EO8LkqbDc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EhaPA/l1; 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="EhaPA/l1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5409C4CED1; Sun, 29 Dec 2024 11:30:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735471852; bh=Yebh3NK0ozLlHqu7I9+n7KlB928C6tDPT52LSagntHw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=EhaPA/l1s6C9SvKsQ4sKXYiIwPFF/SCO5Uw6lPkX3cZhSn7z2dLvV4w0EhwZoGxSI UVH61v2b4zPpqZMABLegqhFPwTASijnaq0gaeRL1gm90r8qP5VDOEfylOvjsr2rY5l Prdymp5IROShYH5KmVAkuQBAyuYwvhCB1+/sc4FI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56747: scsi: qedi: Fix a possible memory leak in qedi_alloc_and_init_sb() Date: Sun, 29 Dec 2024 12:29:40 +0100 Message-ID: <2024122926-CVE-2024-56747-7c03@gregkh> X-Mailer: git-send-email 2.47.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=3596; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Yebh3NK0ozLlHqu7I9+n7KlB928C6tDPT52LSagntHw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOmFRtM0b3mEtEaZliWYb15xQShY9vzpF9PqQydM0L+S2 Nm4ZodGRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAFwkmWG+67zIqV8cbZ8sLagr WfDlWZWs9dYvDPMLSt2+TtLN9niwWUfn1pNXN+P4ey4DAA== 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: qedi: Fix a possible memory leak in qedi_alloc_and_init_sb() Hook "qedi_ops->common->sb_init = qed_sb_init" does not release the DMA memory sb_virt when it fails. Add dma_free_coherent() to free it. This is the same way as qedr_alloc_mem_sb() and qede_alloc_mem_sb(). The Linux kernel CVE team has assigned CVE-2024-56747 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit ace7f46ba5fde7273207c7122b0650ceb72510e0 and fixed in 4.19.325 with commit 4e48e5b26b3edc0e1dd329201ffc924a7a1f9337 Issue introduced in 4.10 with commit ace7f46ba5fde7273207c7122b0650ceb72510e0 and fixed in 5.4.287 with commit eaf92fad1f21be63427920c12f22227e5f757424 Issue introduced in 4.10 with commit ace7f46ba5fde7273207c7122b0650ceb72510e0 and fixed in 5.10.231 with commit a4d2011cbe039b25024831427b60ab91ee247066 Issue introduced in 4.10 with commit ace7f46ba5fde7273207c7122b0650ceb72510e0 and fixed in 5.15.174 with commit bb8b45883eb072adba297922b67d1467082ac880 Issue introduced in 4.10 with commit ace7f46ba5fde7273207c7122b0650ceb72510e0 and fixed in 6.1.120 with commit b778b5240485106abf665eb509cc01779ed0cb00 Issue introduced in 4.10 with commit ace7f46ba5fde7273207c7122b0650ceb72510e0 and fixed in 6.6.64 with commit 10a6fc486ac40a410f0fb84cc15161238eccd20a Issue introduced in 4.10 with commit ace7f46ba5fde7273207c7122b0650ceb72510e0 and fixed in 6.11.11 with commit cfc76acaf2c4b43d1e140f1e4cbde15adb540bc5 Issue introduced in 4.10 with commit ace7f46ba5fde7273207c7122b0650ceb72510e0 and fixed in 6.12.2 with commit 20b775cf274cfbfa3da871a1108877e17b8b19e1 Issue introduced in 4.10 with commit ace7f46ba5fde7273207c7122b0650ceb72510e0 and fixed in 6.13-rc1 with commit 95bbdca4999bc59a72ebab01663d421d6ce5775d 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-2024-56747 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/qedi/qedi_main.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/4e48e5b26b3edc0e1dd329201ffc924a7a1f9337 https://git.kernel.org/stable/c/eaf92fad1f21be63427920c12f22227e5f757424 https://git.kernel.org/stable/c/a4d2011cbe039b25024831427b60ab91ee247066 https://git.kernel.org/stable/c/bb8b45883eb072adba297922b67d1467082ac880 https://git.kernel.org/stable/c/b778b5240485106abf665eb509cc01779ed0cb00 https://git.kernel.org/stable/c/10a6fc486ac40a410f0fb84cc15161238eccd20a https://git.kernel.org/stable/c/cfc76acaf2c4b43d1e140f1e4cbde15adb540bc5 https://git.kernel.org/stable/c/20b775cf274cfbfa3da871a1108877e17b8b19e1 https://git.kernel.org/stable/c/95bbdca4999bc59a72ebab01663d421d6ce5775d