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 7579125D1F1 for ; Tue, 20 May 2025 15:22:52 +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=1747754572; cv=none; b=qfH42ZNCelrs/oa0T+HHSqkOLwEzKWBvfhSlsE99zHUEg6gYxMDTLFoOvWAX6gW7iWfN/Ds8EoquC3DR4yPBQTPra0THnnFxg7ko9L6TLFtsPPMXxemF/PKgPDFkzuxdEuFlqLvQ9+jbjytgYBfYkDbjuqeYewoO343rSIwqpSs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747754572; c=relaxed/simple; bh=ybGiKk9JpZxGaCuw9JiDdNKZzcnHBicmoEhn85yvCjE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pr1Qvx3SGxfo38GJ8Hy2LjoJq5HMNOMI9i6FCuky8U9fPo/WU1mQR3bYUOBGuqM97IwdzrJXZZGjZ7O41NE71OaBpP5aB/EJc6f9HOZgWEAxLnaSUe/XS35c3QqLO5ura+eMKsbVw2b+EVC/ZdkmpilSio0UqSdCQcN/l5812h0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=f3GZzH7l; 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="f3GZzH7l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8148CC4CEE9; Tue, 20 May 2025 15:22:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747754572; bh=ybGiKk9JpZxGaCuw9JiDdNKZzcnHBicmoEhn85yvCjE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=f3GZzH7lZbzPpQnamEJ9Sdfj93N/y9eh2Zief31BuIJ+VFNbeC9NLQTIKYYZeWzce oAjXxX66y5z2GEmQVDG3XlJaYZjDb8+ukM3ovr/qm/n0GoTqgMEwcnt8rbA9xU5hTK ZmMMqAMnErUNHy5MoRFyZ3DEuohLz73vjXOYzoIc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37910: ptp: ocp: Fix NULL dereference in Adva board SMA sysfs operations Date: Tue, 20 May 2025 17:22:07 +0200 Message-ID: <2025052058-CVE-2025-37910-bf5d@gregkh> X-Mailer: git-send-email 2.49.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=2469; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QfknndWKfJ4xHsDrK5ycY4YiFAMvMqbRLy3QGtdC0BA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk688SvPDnHlFMi7b5011SD3tP2Ifnlgt6/lxSmnBDLu pC5vsG8I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZSNYdhfqXpC4v5LhJxexbE T/R2XH67tyRJlWFBw5Iu7RWzszazHl+6yZzXpr7+9s4KAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ptp: ocp: Fix NULL dereference in Adva board SMA sysfs operations On Adva boards, SMA sysfs store/get operations can call __handle_signal_outputs() or __handle_signal_inputs() while the `irig` and `dcf` pointers are uninitialized, leading to a NULL pointer dereference in __handle_signal() and causing a kernel crash. Adva boards don't use `irig` or `dcf` functionality, so add Adva-specific callbacks `ptp_ocp_sma_adva_set_outputs()` and `ptp_ocp_sma_adva_set_inputs()` that avoid invoking `irig` or `dcf` input/output routines. The Linux kernel CVE team has assigned CVE-2025-37910 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit ef61f5528fca6c3bbb2f8bc002fd1949c9d1f9b9 and fixed in 6.12.28 with commit 8a543d825e78b8d680d8f891381b83fbffdb0bb6 Issue introduced in 6.9 with commit ef61f5528fca6c3bbb2f8bc002fd1949c9d1f9b9 and fixed in 6.14.6 with commit 5b349f9cdb4a9daa133bea267dfc0c383628387a Issue introduced in 6.9 with commit ef61f5528fca6c3bbb2f8bc002fd1949c9d1f9b9 and fixed in 6.15-rc5 with commit e98386d79a23c57cf179fe4138322e277aa3aa74 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-2025-37910 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/ptp/ptp_ocp.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/8a543d825e78b8d680d8f891381b83fbffdb0bb6 https://git.kernel.org/stable/c/5b349f9cdb4a9daa133bea267dfc0c383628387a https://git.kernel.org/stable/c/e98386d79a23c57cf179fe4138322e277aa3aa74