CVE-2026-98657

iio: proximity: pulsedlight: fix iio_device left registered on PM setup failure

Published Oct 18, 2026 CVSS 3.1 · 7.0 High EPSS < 1% KEV · Not listed
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().

Analysis

AI-generated

Technical impact

In the Linux kernel, the pulsedlight IIO proximity driver can leave an IIO device registered after a failure in pm_runtime_set_active() during probe. The error path cleans the buffer but does not undo the successful iio_device_register(), causing the IIO core to reference freed memory. As a result, the device’s sysfs and character‑device nodes remain present and point to invalid memory, creating a use‑after‑free condition that may trigger a kernel crash when the orphaned device is accessed.

Affected Systems

Any Linux kernel that contains the pulsedlight IIO driver before the commit that added the error_unreg_dev cleanup path is potentially affected. Distribution‑specific impact is not listed in the data; users should inspect kernel release notes or verify whether the referenced commits are present in their kernel source.

Risk and Exploitability

The CVSS score of 7.0 and the EPSS score of less than 1% indicate a high impact potential but a very low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog, and no publicly reported exploitation activity is known. The flaw represents a classic kernel use‑after‑free that can cause a kernel panic. Based on the description, the likely attack vector is local: an attacker with the ability to trigger the pm_runtime_set_active() failure and subsequently access the orphaned IIO device (for example, via sysfs or the character device), which could lead to arbitrary kernel code execution or denial of service. This attack vector is inferred from the nature of the driver and the use‑after‑free, as it is not explicitly stated in the advisory.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the error_unreg_dev change added in the cited Git commits, ensuring the pulsedlight driver unregisters the device before performing buffer cleanup.
  • Reboot the system or reload the pulsedlight driver module after the kernel upgrade so that the new initialization logic is active and no orphaned IIO devices remain registered.
  • Verify that the sysfs device entries under /sys/bus/iio/devices are consistent and that no recent dmesg output contains use‑after‑free or device registration errors.

Generated by OpenCVE AI on October 23, 2026 at 06:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4906-1 linux security update
Ubuntu USN Ubuntu USN USN-9018-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9018-2 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9022-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9023-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9039-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9091-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9167-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9168-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9168-2 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-9167-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9168-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9183-1 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-9168-4 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9167-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9192-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
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().
Title iio: proximity: pulsedlight: fix iio_device left registered on PM setup failure
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 30, 2026, 12:38 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 18, 2026, 4:17 PM
Modified
Oct 30, 2026, 1:21 PM
Severity
Moderate
Public date
Oct 18, 2026, 12:00 AM