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

iio: buffer: hw-consumer: free scan_mask on buffer release

The scan_mask lifetime changed in commit 9a2e1233d38c ("iio: buffer:
hw-consumer: remove redundant scan_mask flexible array").

Before that change, the scan mask storage was embedded in struct
hw_consumer_buffer, so iio_hw_buf_release() could free the whole
allocation with a single kfree(hw_buf).

That commit moved the scan mask to a separate bitmap_zalloc() allocation
stored in buffer.scan_mask, but left iio_hw_buf_release() unchanged.

Free the scan mask in iio_hw_buf_release() before freeing the buffer
wrapper.
Published: 2026-07-25
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability originates from the Linux kernel’s Industrial I/O (IIO) hw‑consumer buffer implementation, where the scan_mask bitmap is not freed when a buffer is released. This omission causes a cumulative memory leak whenever buffers are created and destroyed. As a result, an attacker could repeatedly trigger buffer allocation and release to exhaust system memory, potentially degrading performance or crashing the host. The weakness represents a resource‑management flaw, classified as CWE‑772.

Affected Systems

All Linux kernel releases that incorporate the legacy IIO hw‑consumer buffer logic but lack the commit 9a2e1233d38c, which added the missing free call. The fix was introduced in that commit; therefore, any kernel version built prior to including this change is impacted, regardless of the major release line.

Risk and Exploitability

The EPSS score of less than 1% indicates a very low probability of exploitation, and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is local: an attacker must have the ability to run code in kernel or privileged user mode to create and release IIO buffers. While the impact can lead to a denial of service, it does not provide remote code execution. The uncertainty in the exact CVSS metric suggests treating this as a medium‑to‑high severity issue that warrants prompt remediation.

Generated by OpenCVE AI on August 4, 2026 at 14:15 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes commit 9a2e1233d38c, which properly frees the scan_mask during buffer release.
  • If IIO buffer consumer functions are not required for your workload, disable or restrict their use to eliminate the memory‑leak risk.
  • Monitor kernel memory usage for the iio module and set alerts for abnormal growth patterns that might indicate ongoing leaks.

Generated by OpenCVE AI on August 4, 2026 at 14:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 30 Jul 2026 12:15:00 +0000


Sun, 26 Jul 2026 01:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772

Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: iio: buffer: hw-consumer: free scan_mask on buffer release The scan_mask lifetime changed in commit 9a2e1233d38c ("iio: buffer: hw-consumer: remove redundant scan_mask flexible array"). Before that change, the scan mask storage was embedded in struct hw_consumer_buffer, so iio_hw_buf_release() could free the whole allocation with a single kfree(hw_buf). That commit moved the scan mask to a separate bitmap_zalloc() allocation stored in buffer.scan_mask, but left iio_hw_buf_release() unchanged. Free the scan mask in iio_hw_buf_release() before freeing the buffer wrapper.
Title iio: buffer: hw-consumer: free scan_mask on buffer release
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-07-25T08:51:54.625Z

Reserved: 2026-07-19T15:36:31.792Z

Link: CVE-2026-64498

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-07-25T10:17:35.753

Modified: 2026-07-25T10:17:35.753

Link: CVE-2026-64498

cve-icon Redhat

Severity :

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64498 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T14:30:10Z

Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime