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 1A2F61E1A25 for ; Thu, 7 Nov 2024 09:36:20 +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=1730972181; cv=none; b=NjuRvj4HspJFvu2EEm27ZBEeZhKP72+r7b2qboRfAnu8yruLK9ps58YVAd95Y2g+eXFJQBCeuCEhvxd2p4yfTIRrCQDW3mQ4LedMykKbmm6d+anJF63ZHcRms5Nl/daLwnlaStdrutofDPtEYqB3v4jAYL2ly5su9yHwA/I5oVw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730972181; c=relaxed/simple; bh=6yfnTZ69V8mRrKb4GobATjU4YwEy2PiKjpZ6Rhl90Z8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ro5Ay/0mmpYK71ZyrSFzF51qldTJGWKmkodhAKsg8UMB+WKNzZf+mPRV+/hlJ9C749RhXSJXmtTx9rojXh7o+U/uhbGtpX9TdIUQGM86CQafdqNSzOcXq6+2TWO4fS4qu+UJF2QWSeu6PIFUPXBfLye7Mjtynm12tM2kYN/qHk8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Y63AOBPR; 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="Y63AOBPR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 005B2C4CECC; Thu, 7 Nov 2024 09:36:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730972180; bh=6yfnTZ69V8mRrKb4GobATjU4YwEy2PiKjpZ6Rhl90Z8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Y63AOBPRWYSgp+AtbOo5ujlkdv7NKE3xsfnV0eGdQ168mA8vL6VLNHi85yoH0zGXD iLCpx4CyOH1dGxS7EaP03OappOlYK23zG0yKbHppV6Nv5o8W6FYnK2gVUivfZPJ1pB qXvWf3/OsqsKiTVtNbEQ5Z7mq2PZJ4+7D2tkZCx8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50166: fsl/fman: Fix refcount handling of fman-related devices Date: Thu, 7 Nov 2024 10:35:06 +0100 Message-ID: <2024110748-CVE-2024-50166-7fde@gregkh> X-Mailer: git-send-email 2.47.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=2150; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6yfnTZ69V8mRrKb4GobATjU4YwEy2PiKjpZ6Rhl90Z8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOk6nTsqXSPlEgzWpglEvdzxdXohx4Fog4PrL4VzvJB7d 2X90v/8HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRki0M85PEvvQkCezao3Vx 9e0fiiEbLfPKsxjmF185ds1l5RfpQJf86kmBz/bN/zzFDAA= 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: fsl/fman: Fix refcount handling of fman-related devices In mac_probe() there are multiple calls to of_find_device_by_node(), fman_bind() and fman_port_bind() which takes references to of_dev->dev. Not all references taken by these calls are released later on error path in mac_probe() and in mac_remove() which lead to reference leaks. Add references release. The Linux kernel CVE team has assigned CVE-2024-50166 to this issue. Affected and fixed versions =========================== Issue introduced in 4.5 with commit 3933961682a3 and fixed in 6.6.59 with commit 5ed4334fc951 Issue introduced in 4.5 with commit 3933961682a3 and fixed in 6.11.6 with commit 3c2a3619d565 Issue introduced in 4.5 with commit 3933961682a3 and fixed in 6.12-rc5 with commit 1dec67e0d9fb 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-50166 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/fman/mac.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/5ed4334fc9512f934fe2ae9c4cf7f8142e451b8b https://git.kernel.org/stable/c/3c2a3619d565fe16bf59b0a047bab103a2ee4490 https://git.kernel.org/stable/c/1dec67e0d9fbb087c2ab17bf1bd17208231c3bb1