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 8CC7C168DC for ; Sun, 19 May 2024 08:36:25 +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=1716107785; cv=none; b=nQIMlwChBcWmw03ricVulG9s4PpV+DyrHrQKglNV7H6F5+f0pIEYc8HKQmByZP6Bm7LHGlgr1NVTMsr2PiSRObfihumRrDqlrlAXCTYKDT2xpudy4sHCUqsvhIPHRF2LfjqQgvZRdkWBzTjur147avDWAcdol11UKJqq+ChWr0Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716107785; c=relaxed/simple; bh=uBal8MjYBYNxWImmE3IJ44IBpp2cfZpadBUjYrbO+Wg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YW78w+5acLTa+Ysu5xAyaPS8kSDsp3xzOb79SINiKy6p6XJaom7Tf3aIUl8gm8pEJv7wNlh9yspMtJUJ4GUixJGkTP0Z0ilgQCFiz16c6T1QGAeGYVH9ukrQ1z1os5KTJl60hwp57IfMhCYwdkC2QptBGL9+tmgb9w6fM5Zzv/Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mIu9PD9b; 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="mIu9PD9b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0C65C32781; Sun, 19 May 2024 08:36:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716107785; bh=uBal8MjYBYNxWImmE3IJ44IBpp2cfZpadBUjYrbO+Wg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mIu9PD9b6RyVpxc9dbiubGU9CQyh4CfsRG3uvQS0T2uJxcXuPZqWT0bG/OMEn/wVz 4l/4UBf+2KhgpybDPqpBI8GnTD3MY4I9nDURx/j+V4tLWZBj/dccmG2m1N1p65AYA0 3Z6ILt4kOjbJSJWaS0AbjnP6Xm6hIGpx6WM8bwnY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35891: net: phy: micrel: Fix potential null pointer dereference Date: Sun, 19 May 2024 10:35:05 +0200 Message-ID: <2024051948-CVE-2024-35891-3a56@gregkh> X-Mailer: git-send-email 2.45.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=2252; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uBal8MjYBYNxWImmE3IJ44IBpp2cfZpadBUjYrbO+Wg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmeO1fIMEyqOWXt/OlOsZSnkEt5YvUJO/Ze3ZMnLfRbn y7O+SrXEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABP5K8AwvyZ3RYvRm/9TNDd7 OnAE/au/fLHiEsM8m3R7+Tczboocs1p0rezfItv90iWzAQ== 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: phy: micrel: Fix potential null pointer dereference In lan8814_get_sig_rx() and lan8814_get_sig_tx() ptp_parse_header() may return NULL as ptp_header due to abnormal packet type or corrupted packet. Fix this bug by adding ptp_header check. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2024-35891 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit ece19502834d and fixed in 6.1.85 with commit 10608161696c Issue introduced in 5.18 with commit ece19502834d and fixed in 6.6.26 with commit 95c1016a2d92 Issue introduced in 5.18 with commit ece19502834d and fixed in 6.8.5 with commit 49767b0df276 Issue introduced in 5.18 with commit ece19502834d and fixed in 6.9 with commit 96c155943a70 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-35891 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/phy/micrel.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/10608161696c2768f53426642f78a42bcaaa53e8 https://git.kernel.org/stable/c/95c1016a2d92c4c28a9d1b6d09859c00b19c0ea4 https://git.kernel.org/stable/c/49767b0df276f12e3e7184601e09ee7430e252dc https://git.kernel.org/stable/c/96c155943a703f0655c0c4cab540f67055960e91