# CVE-2026-64498: iio: buffer: hw-consumer: free scan_mask on buffer release

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-07-25T08:51:54.625Z
- Modified: 2026-11-18T19:00:44.603Z
- Weaknesses: CWE-401
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 9a2e1233d38c460ad07f36901931f3674a32d1ed before fb8e18f8ca724bd4de4643cad5b7c7230b9a5a71; from 9a2e1233d38c460ad07f36901931f3674a32d1ed before 6325d6e2204327965b849c0a16efb6ac9202e5a8; 7.1 (not affected: before 7.1; from 7.1.4 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 7.1 before 7.1.4

## References

- <https://git.kernel.org/stable/c/fb8e18f8ca724bd4de4643cad5b7c7230b9a5a71> (patch)
- <https://git.kernel.org/stable/c/6325d6e2204327965b849c0a16efb6ac9202e5a8> (patch)

## Sources

- CVE List: [CVE-2026-64498](https://www.cve.org/CVERecord?id=CVE-2026-64498), CVE Terms of Use, modified 2026-08-17
- NVD: [CVE-2026-64498](https://nvd.nist.gov/vuln/detail/CVE-2026-64498), Public domain, modified 2026-11-18

---

Page: https://cve.day/CVE-2026-64498 · Whole record: https://cve.day/CVE-2026-64498.json · Rebuilt by cve.day 2026-11-25T22:59:30.147Z
