Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98657 Overview
CVE-2026-98657 affects the Linux kernel's Industrial I/O (IIO) subsystem, specifically the pulsedlight proximity driver. The flaw occurs in the driver's probe() function when pm_runtime_set_active() fails. Error handling jumps to the error_unreg_buffer label, which cleans up the triggered buffer but does not unregister the IIO device registered earlier in probe(). The devm-managed indio_dev is subsequently freed, yet the IIO core retains its registration. This leaves sysfs and chardev nodes live and pointing at freed memory, producing a use-after-free condition in a kernel driver.
Critical Impact
Dangling sysfs/chardev nodes reference freed indio_dev memory, enabling potential kernel memory corruption or information disclosure through userspace access to the stale nodes.
Affected Products
- Linux kernel versions containing the drivers/iio/proximity/pulsedlight-lidar-lite-v2 driver prior to the fix
- Multiple stable kernel branches patched via commits 06fa13c, 20ebd7f, 2c8211e, 4daa9ca, and e462b47
- Systems using the PulsedLight LIDAR-Lite v2 proximity sensor
Discovery Timeline
- 2026-10-18 - CVE-2026-98657 published to NVD
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-98657
Vulnerability Analysis
The vulnerability lives in the probe() routine of the pulsedlight-lidar-lite-v2 IIO proximity driver. The probe sequence calls iio_device_register() to publish the device to userspace through sysfs and chardev interfaces. It then invokes pm_runtime_set_active() to configure runtime power management. When pm_runtime_set_active() returns an error, control transfers to the error_unreg_buffer label.
That label only invokes iio_triggered_buffer_cleanup(). It does not call iio_device_unregister() to reverse the earlier registration. The probe function then returns the error. The devm (device-managed resources) framework frees the indio_dev allocation because probe failed. However, the IIO core still holds references to the now-freed structure, and the sysfs plus chardev nodes remain accessible to userspace.
Any subsequent userspace access to the stale nodes dereferences freed kernel memory. This matches a use-after-free pattern. The fix introduces a new error_unreg_dev label that calls iio_device_unregister() before falling through to buffer cleanup, mirroring the teardown order already used in lidar_remove().
Root Cause
The root cause is incorrect error-path ordering in probe(). Resources acquired after a successful iio_device_register() were not fully unwound when a later initialization step failed. The teardown order diverged from the symmetric cleanup performed in lidar_remove().
Attack Vector
Exploitation requires the probe failure path to trigger. This generally depends on hardware presence, driver load conditions, or runtime PM subsystem state at bind time. A local attacker with access to the resulting stale /sys/bus/iio or /dev/iio:device* nodes could interact with freed memory. Remote exploitation is not applicable to this kernel driver flaw.
No verified public exploit code is available. See the upstream fixes at Linux Kernel Commit 06fa13c and Linux Kernel Commit e462b47 for the authoritative patch diffs.
Detection Methods for CVE-2026-98657
Indicators of Compromise
- Kernel log entries indicating pm_runtime_set_active() failure during pulsedlight or lidar-lite driver probe
- KASAN or SLUB debug reports flagging use-after-free in IIO sysfs or chardev handlers
- Oops or panic traces referencing iio_device_register, pulsedlight, or lidar_probe call paths
Detection Strategies
- Audit running kernel versions against the fixed commits (06fa13c, 20ebd7f, 2c8211e, 4daa9ca, e462b47) across stable branches
- Enable CONFIG_KASAN on test and pre-production kernels to catch stale pointer dereferences in IIO code paths
- Review dmesg for probe failures on IIO proximity drivers followed by continued presence of /sys/bus/iio/devices entries
Monitoring Recommendations
- Collect kernel crash dumps and dmesg output centrally for Linux fleet triage of driver-level faults
- Alert on kernel oops events referencing IIO subsystem symbols on hosts with LIDAR or proximity hardware
- Track package and kernel versions across endpoints to confirm patch deployment coverage
How to Mitigate CVE-2026-98657
Immediate Actions Required
- Upgrade to a Linux kernel release that includes one of the fix commits referenced in the upstream advisory
- Inventory systems with the pulsedlight-lidar-lite-v2 driver loaded and prioritize them for patching
- Where patching is deferred, prevent loading of the affected driver on systems that do not require the hardware
Patch Information
The fix adds an error_unreg_dev label in the driver's probe() function. The label calls iio_device_unregister() before falling through to iio_triggered_buffer_cleanup(). Patches are available in stable kernel commits 06fa13c, 20ebd7f, 2c8211e, 4daa9ca, and e462b47. Apply the distribution kernel update that corresponds to your stable branch.
Workarounds
- Blacklist the pulsedlight-lidar-lite-v2 module on hosts that do not use the sensor by adding it to /etc/modprobe.d/ blacklist configuration
- Restrict unprivileged access to /sys/bus/iio and /dev/iio:device* nodes using udev rules until patches are deployed
- Avoid runtime PM configurations that reliably trigger the pm_runtime_set_active() failure path on affected drivers
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

