Description
In the Linux kernel, the following vulnerability has been resolved:

iio: buffer: serialize buffer teardown with mode claims

Buffer-mode claims hold mlock to guarantee that the device remains in
buffer mode until the claim is released. Normal buffer updates take
info_exist_lock followed by mlock in iio_update_buffers().

However, iio_device_unregister() disables and deactivates all buffers
without taking mlock. This can invalidate buffer state, including
active_scan_mask, while a buffer-mode claim is held.

Take mlock in iio_disable_all_buffers() so that unregister honors the
mode-claim lifetime guarantee. The info_exist_lock -> mlock ordering
matches iio_update_buffers().
Published: 2026-10-18
Score: 4.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Inconsistent IIO buffer state leading to integrity violation
Action: Patch Now
AI Analysis

Impact

In the Linux kernel the Industrial I/O subsystem can terminate a device while a buffer‑mode claim is held, because the unregister routine disables all buffers without acquiring the mlock lock that protects those claims. This race condition, identified as CWE‑366, can corrupt buffer state such as the active_scan_mask, potentially causing inconsistent behavior or data loss during IIO operations.

Affected Systems

The flaw affects all Linux kernel implementations that include the IIO buffer management code. No specific kernel versions are listed, meaning any kernel that contains the unpatched disable path may be impacted.

Risk and Exploitability

The CVSS score of 4.1 indicates moderate severity, and the EPSS score of < 1% shows a very low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. Exploitation would require local or privileged access to the IIO device and the ability to trigger device unregistration while a buffer‑mode claim is active, but the patch eliminates the race by acquiring mlock during sidebar teardown.

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

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest Linux kernel version that incorporates the iio buffer teardown patch provided by your distribution.
  • If using a custom or older kernel, cherry‑pick the commit that adds mlock acquisition to iio_disable_all_buffers() from the supplied commit URLs and rebuild the kernel.
  • Modify the unregistration path so that it takes mlock before disabling all buffers, ensuring the lock ordering aligns with the buffer update routine to prevent race conditions described by CWE‑366.

Generated by OpenCVE AI on October 23, 2026 at 06:41 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
History

Fri, 30 Oct 2026 12:45:00 +0000


Fri, 23 Oct 2026 00:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362

Thu, 22 Oct 2026 12:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-366
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate


Wed, 21 Oct 2026 13:15:00 +0000


Sun, 18 Oct 2026 22:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362

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: buffer: serialize buffer teardown with mode claims Buffer-mode claims hold mlock to guarantee that the device remains in buffer mode until the claim is released. Normal buffer updates take info_exist_lock followed by mlock in iio_update_buffers(). However, iio_device_unregister() disables and deactivates all buffers without taking mlock. This can invalidate buffer state, including active_scan_mask, while a buffer-mode claim is held. Take mlock in iio_disable_all_buffers() so that unregister honors the mode-claim lifetime guarantee. The info_exist_lock -> mlock ordering matches iio_update_buffers().
Title iio: buffer: serialize buffer teardown with mode claims
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-30T12:38:36.653Z

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

Link: CVE-2026-98669

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

Modified: 2026-10-30T13:21:17.290

Link: CVE-2026-98669

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-18T00:00:00Z

Links: CVE-2026-98669 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T06:45:07Z

Weaknesses
  • CWE-366

    Race Condition within a Thread