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 C6DED1F4279 for ; Fri, 27 Dec 2024 13:54:32 +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=1735307672; cv=none; b=DzvIBmhtxfrEsLtpHaFnBxxi87Ztkci1SLfC2CDRop8+UsSQQdrD2nOY9U/HwI2Tp+W5zqHZAq8hU98YhvDQ0WGdodjPwROArPJUOb5/7eAjJ+qFZpMA/lHPo4Czw0VHdJyZRGDloyWE5P3fMB2Dm1+ncfci5mh8doCU7F92I9w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735307672; c=relaxed/simple; bh=7nVMi3cPPJOEskty68xrcBUg2PtbAImtO6oaFRkRp3U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=J0YCDRM7KqX4Jaj4w5HLB9cjGbLnimm0kCh3BdUn8ifFPNT0lZbEalgUWNpw5i6PFBTN8Pnj0MQY9swtQep9+14g00Q/UA0HsKONamglIVhVOfo3a3eRMUtWwVdtWJc5oXGPIm/fOzCoigJ3UaBShwSv3+P3cjHmXLOvYdY7g14= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pJibex7m; 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="pJibex7m" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33DC3C4CED0; Fri, 27 Dec 2024 13:54:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735307672; bh=7nVMi3cPPJOEskty68xrcBUg2PtbAImtO6oaFRkRp3U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pJibex7mhFToYXeGbuZ6XSLjHka613O7Wlphr4J/hSkJXNyK+QuulFkSeZ55ZwEWu QlurDi18s2UKGtf6z3t21shDFe/eeftMCrw6WCz5VY5PsEJ0MXL4SrPxrL5T7eSQmg QC6vdte+Yq5v+9XLY3YJ3c7ZdhjpOdLrLCv6SZ7g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53202: firmware_loader: Fix possible resource leak in fw_log_firmware_info() Date: Fri, 27 Dec 2024 14:52:48 +0100 Message-ID: <2024122727-CVE-2024-53202-f699@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=2437; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7nVMi3cPPJOEskty68xrcBUg2PtbAImtO6oaFRkRp3U=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5G6X/7nq2leGYqrTQwZxjMVmnUjUd92tG3+SWnZ988 F7S88/GHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR4xMZFrRniN1n+JLd1dL3 LnL3XJWfG/9l2jPMz1471e635KP7Ew7L2fg0F9x9u73EBQA= 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: firmware_loader: Fix possible resource leak in fw_log_firmware_info() The alg instance should be released under the exception path, otherwise there may be resource leak here. To mitigate this, free the alg instance with crypto_free_shash when kmalloc fails. The Linux kernel CVE team has assigned CVE-2024-53202 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 02fe26f25325b547b7a31a65deb0326c04bb5174 and fixed in 6.6.64 with commit 789a72498d32f88d24371c10985aceb46397056c Issue introduced in 6.4 with commit 02fe26f25325b547b7a31a65deb0326c04bb5174 and fixed in 6.11.11 with commit eb5d67d00ad17a5bd0920f455160dc2ccbd2dc78 Issue introduced in 6.4 with commit 02fe26f25325b547b7a31a65deb0326c04bb5174 and fixed in 6.12.2 with commit f380f895dbb2a11d62ca6df9e82d995f4bc26b84 Issue introduced in 6.4 with commit 02fe26f25325b547b7a31a65deb0326c04bb5174 and fixed in 6.13-rc1 with commit 369a9c046c2fdfe037f05b43b84c386bdbccc103 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-53202 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/base/firmware_loader/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/789a72498d32f88d24371c10985aceb46397056c https://git.kernel.org/stable/c/eb5d67d00ad17a5bd0920f455160dc2ccbd2dc78 https://git.kernel.org/stable/c/f380f895dbb2a11d62ca6df9e82d995f4bc26b84 https://git.kernel.org/stable/c/369a9c046c2fdfe037f05b43b84c386bdbccc103