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 147941DD525 for ; Thu, 11 Sep 2025 16:58:04 +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=1757609884; cv=none; b=N6JoQrl7KmvcwM0s6XKLycrybwDZllHSOIhaXEo6TmLADpc6seSN13p8k2j5caUKe99Xv6nOmO8sTP0IOpGvCsrqD516RcuozhI2i+F9mSZImSDVdfRZb4SJcLYtS3jeqB0BdSn3kbSFKRT+fBTPv4zNeBW4fYDdeog5RgZOGXU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757609884; c=relaxed/simple; bh=SFWKYbGSTET25CL93WBF8G6CUzq2wYXG0gdOgze/Sqg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=njUxXoDuxXWIB09B7ydd70rQ9p5eq9KR0azGutjtaDB5y+ZzL0GH10fkkLjs2ndxAnkYA+GdrDgEAJ6O3DnnoAqeCNJzl2TbKbxiOdaF8duMAZz92m1lAHRiVaD83w+3cLoJhuWDbs6+3mvRC148x11UHPuKguiMjWffh3HUCjg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ks4P9RBa; 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="Ks4P9RBa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DCC6C4CEF0; Thu, 11 Sep 2025 16:58:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757609884; bh=SFWKYbGSTET25CL93WBF8G6CUzq2wYXG0gdOgze/Sqg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Ks4P9RBagN6LlcWKjkrMF8FPpA3TLHISF53f+zIp+BialshlQVCXjXnHF+ms5Wetr FYvtDC5dVGQTH146BSeJD5c3cUTQngRVXVzWbB/s1aURdS08t2bhnTzzSDB3qyNWk+ A7iGbkH8b6puwfYJWT2Ym+daAf/Czo6mZlPHlZEU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39771: regulator: pca9450: Use devm_register_sys_off_handler Date: Thu, 11 Sep 2025 18:56:50 +0200 Message-ID: <2025091146-CVE-2025-39771-2a74@gregkh> X-Mailer: git-send-email 2.51.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=2460; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wQZsDbEBzSQuqgv23RQPnKuRyaWIKVtZj96UNBLrCMQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmH/vtd+9Lx+wuvYceiqLVORZnWTx78sPeX1mw7Ft5Rw FY6xyqsI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYyX5VhDr+62TqP+p0Tn0wW vVma6peyrHN3JcOCSX8Unuz/97/YfGr5xyvsSXrLftsuBQA= 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: regulator: pca9450: Use devm_register_sys_off_handler With module test, there is error dump: ------------[ cut here ]------------ notifier callback pca9450_i2c_restart_handler already registered WARNING: kernel/notifier.c:23 at notifier_chain_register+0x5c/0x88, CPU#0: kworker/u16:3/50 Call trace: notifier_chain_register+0x5c/0x88 (P) atomic_notifier_chain_register+0x30/0x58 register_restart_handler+0x1c/0x28 pca9450_i2c_probe+0x418/0x538 i2c_device_probe+0x220/0x3d0 really_probe+0x114/0x410 __driver_probe_device+0xa0/0x150 driver_probe_device+0x40/0x114 __device_attach_driver+0xd4/0x12c So use devm_register_sys_off_handler to let kernel handle the resource free to avoid kernel dump. The Linux kernel CVE team has assigned CVE-2025-39771 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 6157e62b07d9331cc1d4d9d525dab33d45b0e83c and fixed in 6.16.4 with commit 7a8c8aa0b0b2c62a0232bf868def85f3069ba7a7 Issue introduced in 6.16 with commit 6157e62b07d9331cc1d4d9d525dab33d45b0e83c and fixed in 6.17-rc3 with commit 447be50598c05499f7ccc2b1f6ddb3da30f8099a 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-39771 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/regulator/pca9450-regulator.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/7a8c8aa0b0b2c62a0232bf868def85f3069ba7a7 https://git.kernel.org/stable/c/447be50598c05499f7ccc2b1f6ddb3da30f8099a