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 0F9E714D2A2 for ; Wed, 19 Jun 2024 13:39:06 +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=1718804347; cv=none; b=kVs/go477uyuiCHL16g2hfNH7WTLeNMOWa4C51jAj+g+q2HlHi2lW3T2MNLe6LbIrWHoIMWC3k21rXBBB60kIYMtfWhTBqkdpXKsmlzZHqG/kpGEVYdjgunYyJ9zI7YrX5+iMTb1Wxq0nbe1nzNo67e80Xtr/LSMnMZV+Yl5RNw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718804347; c=relaxed/simple; bh=DCgDqa+oopzoJd8uSntjFrZ2JwwLDWDnmIaeVfp8+wY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oexoG0QJFCVXtz1Sp7WXWL7vQGBXHXjvil/c9iLhgVC5mmkIzdzoVVn8b1kGOXBSZJBvJQE4/LoDH/RmJNTDodj/zCEfbjLdYUjU6BN69pHvoSGHNzWGW9ECURueDjUyZRrqhRCAvzlCXduovKOJhcJM5jyp3zd1jrlYmdwRPNo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kGsALEgP; 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="kGsALEgP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 341C7C2BBFC; Wed, 19 Jun 2024 13:39:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718804346; bh=DCgDqa+oopzoJd8uSntjFrZ2JwwLDWDnmIaeVfp8+wY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kGsALEgP0zH5RFVI9uqS0zHV0rb5pSQXT+bNe27Jxr5chLFuzDWnzeexouVTwWfqC N0xYvJvpTSKSeyrYlYoaIgUqyNVVPP0du63BcOQuFAHeDOt6yOP0m2iPbmSTK2x6yL oxDKUeUF8NJudrsfQW54LHjWgp3by9yL/rKLE6zY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38584: net: ti: icssg_prueth: Fix NULL pointer dereference in prueth_probe() Date: Wed, 19 Jun 2024 15:37:56 +0200 Message-ID: <2024061949-CVE-2024-38584-6a99@gregkh> X-Mailer: git-send-email 2.45.2 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=2315; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DCgDqa+oopzoJd8uSntjFrZ2JwwLDWDnmIaeVfp8+wY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlF93XXZJ95e8/0474Li0/p3fvEU5nowdccbPlZtnKeu HJL3JmOjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIlGyGBYdmqLPmln/cqFkR cPZ1OPe1t8Fd7xjmaXh1rk2eG9p5tnfJqn2hvIsWJ7VqAwA= 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: ti: icssg_prueth: Fix NULL pointer dereference in prueth_probe() In the prueth_probe() function, if one of the calls to emac_phy_connect() fails due to of_phy_connect() returning NULL, then the subsequent call to phy_attached_info() will dereference a NULL pointer. Check the return code of emac_phy_connect and fail cleanly if there is an error. The Linux kernel CVE team has assigned CVE-2024-38584 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 128d5874c082 and fixed in 6.6.33 with commit 5cd17f0e74cb Issue introduced in 6.6 with commit 128d5874c082 and fixed in 6.8.12 with commit b0a82ebabbdc Issue introduced in 6.6 with commit 128d5874c082 and fixed in 6.9.3 with commit 1e1d5bd7f468 Issue introduced in 6.6 with commit 128d5874c082 and fixed in 6.10-rc1 with commit b31c7e780861 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-38584 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/ti/icssg/icssg_prueth.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/5cd17f0e74cb99d209945b9f1f06d411aa667eb1 https://git.kernel.org/stable/c/b0a82ebabbdc4c307f781bb0e5cd617949a3900d https://git.kernel.org/stable/c/1e1d5bd7f4682e6925dd960aba2a1aa1d93da53a https://git.kernel.org/stable/c/b31c7e78086127a7fcaa761e8d336ee855a920c6