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().
Published: 2026-10-18
Score: n/a
EPSS: n/a
KEV: No
Impact: Use-After-Free in Kernel Driver
Action: Immediate Patch
AI Analysis

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 is not disclosed and EPSS is unavailable, and the vulnerability is not listed in the CISA KEV catalog. Consequently, no publicly reported exploitation activity is known. The flaw represents a classic kernel use‑after‑free, which can result in a kernel panic; further exploitation beyond a crash is not supported by the provided information.

Generated by OpenCVE AI on October 18, 2026 at 22:58 UTC.

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 18, 2026 at 22:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 18 Oct 2026 23:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sun, 18 Oct 2026 16:00:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-18T15:44:09.808Z

Reserved: 2026-09-25T10:25:14.362Z

Link: CVE-2026-98657

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T16:17:19.013

Modified: 2026-10-18T16:17:19.013

Link: CVE-2026-98657

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-18T23:00:12Z

Weaknesses