Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 5C6653914F8 for ; Sun, 18 Oct 2026 15:47:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792338448; cv=none; b=JWgP7N4dYFS6revbclxgXyLTs2HSlAd2npYMrAXHU0LhoPtuC9GPImJEq4B8x5jeSlfWMKlqLxl+IdU+IsaFd1W3RCaqV6Dv5D1WnOUwgx/FTZD16wjXl0PsVYm6g+ITtV9/iGdnMwGNPy0yawsZg+eNhomcpfcP2DCxHH5JfXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792338448; c=relaxed/simple; bh=Bo7x1WJjMxq2fY8JPvEKBjlqsADpy2SKiOMTPmGwp+8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Uxv1rG60LfPmY9vS97vBpPcU1PgJ2hEkn1TghKi5jRJig54NbNTXYrMp+EGgtLaGxK0mS32wrSqv/cfAwgE+aIpDeyR7A2td/SKztIQ+P1gTBVsQdsPveqKjO5PNWFYURDfejW3/mqck3PkYK+VsnD51gwWb/gCih6G5xWfDyxc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lWycV5Pb; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="lWycV5Pb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 800D21F000C4; Sun, 18 Oct 2026 15:47:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792338447; bh=YBg1slPpp9JbKISKO116YYx3NvAd42Imo+OQAcZm62Q=; h=From:To:Cc:Subject:Date:Reply-To; b=lWycV5Pb52UDY4pP8T0gUfrmYzxrKBqSOpsbNNq4Tel5c2DO9VkET9M5mgM9dNi56 LZsl3ddJI2l985FOv2riRthuiUonXCOwwKzQOvVeYc7ifTTiJzKt4zGr0fo9ss1auo 4Wp9aehfSao8PunaHMT7mYhiWezXx0YkUxIojXsM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98657: iio: proximity: pulsedlight: fix iio_device left registered on PM setup failure Date: Sun, 18 Oct 2026 17:43:52 +0200 Message-ID: <2026101853-CVE-2026-98657-90d6@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2836; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=N2tt0qJ0T0uOg9zEv2koeNbOZkS4WVE/1A7PvFN7RTM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXlqyKqxrTzLqlL0l/PVtzKGG0Hf54kuMt2+yZksXF 9zjsMWtI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbC/pJhwakoxjImw+3XvkRW fVHjfL14w6XjpQwLToSt+eiQuN90nf6q3s/e3wI9l7X/BAA= 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: iio: proximity: pulsedlight: fix iio_device left registered on PM setup failure pm_runtime_set_active() failing in probe() jumps to error_unreg_buffer, which only calls iio_triggered_buffer_cleanup() -- it does not undo the iio_device_register() that already succeeded a few lines above. probe() then returns the error, the devm-managed indio_dev is freed, but the iio core still has it registered: the sysfs/chardev nodes stay live and point at freed memory. Add an error_unreg_dev label that unregisters the iio device before falling through to the existing buffer cleanup, mirroring the teardown order already used in lidar_remove(). The Linux kernel CVE team has assigned CVE-2026-98657 to this issue. Affected and fixed versions =========================== Issue introduced in 4.5 with commit 4ac4e086fd8c59e6b69089e6f7605500b63a6d17 and fixed in 6.12.113 with commit 06fa13c53442257b94ea1519555ceddaaea57e0d Issue introduced in 4.5 with commit 4ac4e086fd8c59e6b69089e6f7605500b63a6d17 and fixed in 6.18.56 with commit 20ebd7f4e35c0a737f011bc83aeb0cdd37507648 Issue introduced in 4.5 with commit 4ac4e086fd8c59e6b69089e6f7605500b63a6d17 and fixed in 7.2.10 with commit e462b47b9637b8c0285f4a38b5af9a322847d164 Issue introduced in 4.5 with commit 4ac4e086fd8c59e6b69089e6f7605500b63a6d17 and fixed in 7.3-rc6 with commit 4daa9ca557b4b98ae1ad38a6d1deaa3e31eb8edf 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-2026-98657 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/iio/proximity/pulsedlight-lidar-lite-v2.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/06fa13c53442257b94ea1519555ceddaaea57e0d https://git.kernel.org/stable/c/20ebd7f4e35c0a737f011bc83aeb0cdd37507648 https://git.kernel.org/stable/c/e462b47b9637b8c0285f4a38b5af9a322847d164 https://git.kernel.org/stable/c/4daa9ca557b4b98ae1ad38a6d1deaa3e31eb8edf