From mboxrd@z Thu Jan 1 00:00:00 1970 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 C52B7213E68 for ; Wed, 26 Feb 2025 02:13:40 +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=1740536020; cv=none; b=VSknGMjJtFF2EmvXz/fnfpdY1bK4U6eiyv309sveAlUQNHJwX7C4sZ/Lny2oySj3aW3R4yAcErYREGu/Vc5I7O4inpnjxGNiBqHnxfBMFmGtw4crAV5k1fWqncZFrnxGiR7QVBk75twedhD++0poUCc5AL+z48WOKKEDYMjgOVE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536020; c=relaxed/simple; bh=SdHEmYq+w1JbiM1CeoJs2Z5tZv11y9q/JXn4rQW2JQY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bR1BMmeZBFxDpW616S09GRO1FKG40O2jpc0PoQNzqZUDa7/4sz0+MCOTm2aMRRDv2BoRdgkxeJCmIHBrDc/rlaPLXq2yo88Fk94XHFO+9jtpSVbEiOiQU4IemVBONCmHmaZubLfzV4PcJs1829DJVvXu4Y9Ay4Ox9HLzXRapBTI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kDVmsM+3; 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="kDVmsM+3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97615C4CEDD; Wed, 26 Feb 2025 02:13:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536020; bh=SdHEmYq+w1JbiM1CeoJs2Z5tZv11y9q/JXn4rQW2JQY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kDVmsM+3d7L9xMV2upKdExxLFmz5nc+ztKYtVOJY/FaSgonVyIqpyf0fgkgHHHH6Q QqoFq3hcOAAz1O+GE9pNHFPTd93+fLot8nP4CC3fAq5cz4C+TjlZl1qUaCMicDwyNm nXdydNrIboUa3vJHjOd112QsQDikcNtKGgBzPc0E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49342: net: ethernet: bgmac: Fix refcount leak in bcma_mdio_mii_register Date: Wed, 26 Feb 2025 03:10:16 +0100 Message-ID: <2025022641-CVE-2022-49342-1ad0@gregkh> X-Mailer: git-send-email 2.48.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=2203; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SdHEmYq+w1JbiM1CeoJs2Z5tZv11y9q/JXn4rQW2JQY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yp8Wv795yOV454q/i7RW8aXE1VdXTG4TuG7BK9lvf 1vMfEtjRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykQIlhwdmlzp92vDjQzyoU 8vazNO95l10HchkWTJTJPH4n7+s3QS6p1LT2xHU5/37oAQA= 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: ethernet: bgmac: Fix refcount leak in bcma_mdio_mii_register of_get_child_by_name() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak. The Linux kernel CVE team has assigned CVE-2022-49342 to this issue. Affected and fixed versions =========================== Issue introduced in 4.8 with commit 55954f3bfdacc5908515b0c306cea23e77fab740 and fixed in 5.17.15 with commit b51996e35bbfcc7a27d94dfeed5cc2429b2c0df4 Issue introduced in 4.8 with commit 55954f3bfdacc5908515b0c306cea23e77fab740 and fixed in 5.18.4 with commit 7fb1fe7d9a167205413f1de8db9f7d0f82c78286 Issue introduced in 4.8 with commit 55954f3bfdacc5908515b0c306cea23e77fab740 and fixed in 5.19 with commit b8d91399775c55162073bb2aca061ec42e3d4bc1 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-49342 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/broadcom/bgmac-bcma-mdio.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/b51996e35bbfcc7a27d94dfeed5cc2429b2c0df4 https://git.kernel.org/stable/c/7fb1fe7d9a167205413f1de8db9f7d0f82c78286 https://git.kernel.org/stable/c/b8d91399775c55162073bb2aca061ec42e3d4bc1