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 DD0D9199934 for ; Thu, 1 May 2025 14:13:09 +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=1746108789; cv=none; b=jzIx4vKTbXBtOssTWy+D9YXtq+f0SrQQomrfUziM3fXijobdO+yt6GwIVR/fzEtCxClZ8jBTIsFG5T2GIgdfjXGzzCFcQYFr1PvJrsDB5jAb1FcC3f+PezyyjG1aS6aazJTIBqRYNMRJs47h03GDl0c9u33XpnIJ1Jh36cp2Wp8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108789; c=relaxed/simple; bh=bWoV+zQYe3HzoxEX1FOjavcYgYO0kfbvxxvY7VYsfvQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XT0kfJrg4+2QTX6XvDIujG5jYc8sopqc8XqOSoUDxutj521G72sExZEglPPdQ3kfXSHe/Wsgi0CMX+Tjsi5PSsapSneWayKAeUK4C9haDF/JO4heqkVuHRvHj99ZDUpAKsA6powTf9QY2SwnfBss292p+hwaU+0t0BN6vRNGt70= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=m/6985/+; 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="m/6985/+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60876C4CEE3; Thu, 1 May 2025 14:13:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108789; bh=bWoV+zQYe3HzoxEX1FOjavcYgYO0kfbvxxvY7VYsfvQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=m/6985/+wf4pdVUnrFgdBC3fxUWeUQVFkhYdycteCspSV0iRKGQ7b5plUn60cAOlQ SKSaSMUIJvPB6msaSd4UvBDd4PRJRi+1Rix+AzSLfn1o2l6WJPhwR1H8veKWqF9xbB IE3j2h+lmgmN5v7MNhn3zbEMl9BgzNwjVftACPqg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49813: net: ena: Fix error handling in ena_init() Date: Thu, 1 May 2025 16:10:03 +0200 Message-ID: <2025050130-CVE-2022-49813-7d7b@gregkh> X-Mailer: git-send-email 2.49.0 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=2432; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8GCCCgXVfvNv2BgeMPECLs9zvb2A6RKZ3/YvHkKdikM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDbOmC3IZ23LN3Cdqvu3krcZnf3/vzrrzO0qHzeDMo vWT2xn+d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBElNYxLGhLn2Qs49bt7zM5 VfCLSPHhM71B3xkW9LhWbYr7cfpMYPGqWkdl738ZvyJaAQ== 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: net: ena: Fix error handling in ena_init() The ena_init() won't destroy workqueue created by create_singlethread_workqueue() when pci_register_driver() failed. Call destroy_workqueue() when pci_register_driver() failed to prevent the resource leak. The Linux kernel CVE team has assigned CVE-2022-49813 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit 1738cd3ed342294360d6a74d4e58800004bff854 and fixed in 5.10.156 with commit 6b23a4b252044e4fd23438930d452244818d7000 Issue introduced in 4.9 with commit 1738cd3ed342294360d6a74d4e58800004bff854 and fixed in 5.15.80 with commit 3f7b2ef8fe924e299bc339811ea3f1b9935c040f Issue introduced in 4.9 with commit 1738cd3ed342294360d6a74d4e58800004bff854 and fixed in 6.0.10 with commit 0e2369223b174d198ec42a3ec0a7f06c8727b968 Issue introduced in 4.9 with commit 1738cd3ed342294360d6a74d4e58800004bff854 and fixed in 6.1 with commit d349e9be5a2c2d7588a2c4e4bfa0bb3dc1226769 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-49813 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/net/ethernet/amazon/ena/ena_netdev.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/6b23a4b252044e4fd23438930d452244818d7000 https://git.kernel.org/stable/c/3f7b2ef8fe924e299bc339811ea3f1b9935c040f https://git.kernel.org/stable/c/0e2369223b174d198ec42a3ec0a7f06c8727b968 https://git.kernel.org/stable/c/d349e9be5a2c2d7588a2c4e4bfa0bb3dc1226769