# CVE-2026-64495: iio: gyro: bmg160: bail out when bandwidth/filter is not in table

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2026-07-25T08:51:52.468Z
- **Modified:** 2026-11-18T18:53:43.280Z

## Who should check

- Anyone running Linux \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 1dc3a833be11e5d503038e3c701745fd0e03903c; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 77e56ebb1786f4296afd5fa46975a989b285ae65; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 029481cddb98697716f4bf3021d035eaf2ca0e1f; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 8d202515baea4e2e3be448d1590099af28f2346d; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< d85ee50f58dd83fe74f6d0bf8bd345c657b216e8; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 7bbf02b63961fc1768c9c654392c11f2077d4c59; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 6c8675468862161d1c59130266852b66867d3861; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 8320c77e67382d5d55d77043a5f60a867d408a2b
- Anyone running Linux 3.18

## Description

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

iio: gyro: bmg160: bail out when bandwidth/filter is not in table

bmg160\_get\_filter() walks bmg160\_samp\_freq\_table\[\] looking for the entry
matching the bw\_bits value read from the chip:

	for (i = 0; i \< ARRAY\_SIZE(bmg160\_samp\_freq\_table); ++i) {
		if (bmg160\_samp\_freq\_table\[i\].bw\_bits == bw\_bits)
			break;
	}
	\*val = bmg160\_samp\_freq\_table\[i\].filter;

If no entry matches, i ends up equal to the array size and the next line
reads one slot past the end. bmg160\_set\_filter() has the same shape, driven
by 'val' instead of bw\_bits.

smatch flags both:

  drivers/iio/gyro/bmg160\_core.c:204 bmg160\_get\_filter() error:
  buffer overflow 'bmg160\_samp\_freq\_table' 7 \<= 7
  drivers/iio/gyro/bmg160\_core.c:222 bmg160\_set\_filter() error:
  buffer overflow 'bmg160\_samp\_freq\_table' 7 \<= 7

Return -EINVAL when no entry matches.

The set\_filter() path is reachable from userspace via the sysfs
in\_anglvel\_filter\_low\_pass\_3db\_frequency interface, so userspace can
trivially trigger the out-of-bounds read with a value that is not in
bmg160\_samp\_freq\_table\[\].filter.

## Affected and fixed versions

- Linux: \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 1dc3a833be11e5d503038e3c701745fd0e03903c; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 77e56ebb1786f4296afd5fa46975a989b285ae65; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 029481cddb98697716f4bf3021d035eaf2ca0e1f; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 8d202515baea4e2e3be448d1590099af28f2346d; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< d85ee50f58dd83fe74f6d0bf8bd345c657b216e8; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 7bbf02b63961fc1768c9c654392c11f2077d4c59; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 6c8675468862161d1c59130266852b66867d3861; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 8320c77e67382d5d55d77043a5f60a867d408a2b (cvelist)
- Linux: 3.18 (cvelist)

## Mitigation

- Upgrade Linux to 8320c77e67382d5d55d77043a5f60a867d408a2b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64495. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64495.md
Affected: Linux >= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, < 1dc3a833be11e5d503038e3c701745fd0e03903c; >= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, < 77e56ebb1786f4296afd5fa46975a989b285ae65; >= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, < 029481cddb98697716f4bf3021d035eaf2ca0e1f; >= 22b46c45fb9be8ec1fcb4d9…
Fixed in: Linux 1dc3a833be11e5d503038e3c701745fd0e03903c, Linux 77e56ebb1786f4296afd5fa46975a989b285ae65, Linux 029481cddb98697716f4bf3021d035eaf2ca0e1f, Linux 8d202515baea4e2e3be448d1590099af28f2346d, Linux 7bbf02b63961fc1768c9c654392c11f2077d4c59, Linux 6c8675468862161d1c59130266852b66867d3861, Linux 8320c…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64495 being exploited?

There is no confirmed exploitation: CVE-2026-64495 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64495?

High: CVSS 7.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-64495?

Linux \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 1dc3a833be11e5d503038e3c701745fd0e03903c; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 77e56ebb1786f4296afd5fa46975a989b285ae65; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 029481cddb98697716f4bf3021d035eaf2ca0e1f; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 8d202515baea4e2e3be448d1590099af28f2346d; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< d85ee50f58dd83fe74f6d0bf8bd345c657b216e8; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 7bbf02b63961fc1768c9c654392c11f2077d4c59; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 6c8675468862161d1c59130266852b66867d3861; \>= 22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc, \< 8320c77e67382d5d55d77043a5f60a867d408a2b; Linux 3.18.

### Is there a fix for CVE-2026-64495?

Yes. Fixed in Linux 1dc3a833be11e5d503038e3c701745fd0e03903c, Linux 77e56ebb1786f4296afd5fa46975a989b285ae65, Linux 029481cddb98697716f4bf3021d035eaf2ca0e1f, Linux 8d202515baea4e2e3be448d1590099af28f2346d, Linux 7bbf02b63961fc1768c9c654392c11f2077d4c59, Linux 6c8675468862161d1c59130266852b66867d3861, Linux 8320c77e67382d5d55d77043a5f60a867d408a2b. Upgrade Linux to 8320c77e67382d5d55d77043a5f60a867d408a2b or later.

### How do I check if I'm affected by CVE-2026-64495?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/1dc3a833be11e5d503038e3c701745fd0e03903c>
- patch: <https://git.kernel.org/stable/c/77e56ebb1786f4296afd5fa46975a989b285ae65>
- patch: <https://git.kernel.org/stable/c/029481cddb98697716f4bf3021d035eaf2ca0e1f>
- patch: <https://git.kernel.org/stable/c/8d202515baea4e2e3be448d1590099af28f2346d>
- patch: <https://git.kernel.org/stable/c/d85ee50f58dd83fe74f6d0bf8bd345c657b216e8>
- patch: <https://git.kernel.org/stable/c/7bbf02b63961fc1768c9c654392c11f2077d4c59>
- patch: <https://git.kernel.org/stable/c/6c8675468862161d1c59130266852b66867d3861>
- patch: <https://git.kernel.org/stable/c/8320c77e67382d5d55d77043a5f60a867d408a2b>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64495>

HTML: <https://flawdb.com/CVE-2026-64495> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64495>
