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 45CF215AADF for ; Mon, 25 Mar 2024 09:08:30 +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=1711357711; cv=none; b=HTLRUHThYZjHJrURc6CdutHlvUj0NIyxDZGpQBYkf1JgpgWU7LCepYhaGFCq8czFnDXpVOsSveLs7f56vBN9Qk2Qugu1EuSdyXIoMRk67ks8XNsGOdkUhU6GmQOIorsDIA/BdeUTWvyXTcY89N9nc4aBcj4wfcz5ozYHJCFHVLU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711357711; c=relaxed/simple; bh=ylRrfUvpw/V8G4BDNhEmnRSCiFxTruPsKg1Q9pOSByo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IoBHZurY+EwCTT8jhP5KJBW9VhypLkC0C6ziSHxQ6SNZvi4+sobBWHM1gvHVmH2A8tgg7hJITWRG8/7qpEUhE5ioF5u1YoyGnKn3nmNsJEa12Q8jQwOLvmLZrU1w3SJ0g7gNaP9Oq0OTino/yLxGP/lpb68T0fP1HL5og1DolLk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OHINNgR/; 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="OHINNgR/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DEF3C433F1; Mon, 25 Mar 2024 09:08:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711357710; bh=ylRrfUvpw/V8G4BDNhEmnRSCiFxTruPsKg1Q9pOSByo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=OHINNgR/IN2d8+r808cNXKZnsw1pseX+qyf5CY8Is4PktzULKYIG63meST0U8AyGJ 9YrEoyYTBzZduQ1/VKbYncFmtFxusRTIhHBOpzo8Nrshob1FFdBdDhiAoGXB1o4fm0 UntSu8z62sfu89Qn3ETj5WLzT8PXu7WA69QaiOb0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47150: net: fec: fix the potential memory leak in fec_enet_init() Date: Mon, 25 Mar 2024 10:08:07 +0100 Message-ID: <2024032500-CVE-2021-47150-f066@gregkh> X-Mailer: git-send-email 2.44.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=2413; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ylRrfUvpw/V8G4BDNhEmnRSCiFxTruPsKg1Q9pOSByo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmMdh88mOa0yCu2ctgvXvGjcu/73Q6bq9deur/AtSPFs 7zx+rNzHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRx8oM86sYjzA5vX77JaJy xpQfks4pihvrmRjmx9mXt5uWtRisc2i71W07JTDlka8wAA== 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: net: fec: fix the potential memory leak in fec_enet_init() If the memory allocated for cbd_base is failed, it should free the memory allocated for the queues, otherwise it causes memory leak. And if the memory allocated for the queues is failed, it can return error directly. The Linux kernel CVE team has assigned CVE-2021-47150 to this issue. Affected and fixed versions =========================== Issue introduced in 3.18 with commit 59d0f7465644 and fixed in 4.19.193 with commit 15102886bc8f Issue introduced in 3.18 with commit 59d0f7465644 and fixed in 5.4.124 with commit 20255d41ac56 Issue introduced in 3.18 with commit 59d0f7465644 and fixed in 5.10.42 with commit 8ee7ef4a57a9 Issue introduced in 3.18 with commit 59d0f7465644 and fixed in 5.12.9 with commit 32a1777fd113 Issue introduced in 3.18 with commit 59d0f7465644 and fixed in 5.13 with commit 619fee9eb13b 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-2021-47150 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/freescale/fec_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/15102886bc8f5f29daaadf2d925591d564c17e9f https://git.kernel.org/stable/c/20255d41ac560397b6a07d8d87dcc5e2efc7672a https://git.kernel.org/stable/c/8ee7ef4a57a9e1228b6f345aaa70aa8951c7e9cd https://git.kernel.org/stable/c/32a1777fd113335c3f70dc445dffee0ad1c6870f https://git.kernel.org/stable/c/619fee9eb13b5d29e4267cb394645608088c28a8