CVE-2026-64495

Source
https://cve.org/CVERecord?id=CVE-2026-64495
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64495.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64495
Downstream
Related
Published
2026-07-25T08:51:52.468Z
Modified
2026-08-18T03:31:21.564252834Z
Summary
iio: gyro: bmg160: bail out when bandwidth/filter is not in table
Details

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

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

bmg160getfilter() walks bmg160sampfreqtable[] looking for the entry matching the bwbits 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. bmg160setfilter() has the same shape, driven by 'val' instead of bw_bits.

smatch flags both:

drivers/iio/gyro/bmg160core.c:204 bmg160getfilter() error: buffer overflow 'bmg160sampfreqtable' 7 <= 7 drivers/iio/gyro/bmg160core.c:222 bmg160setfilter() error: buffer overflow 'bmg160sampfreqtable' 7 <= 7

Return -EINVAL when no entry matches.

The setfilter() path is reachable from userspace via the sysfs inanglvelfilterlowpass3dbfrequency interface, so userspace can trivially trigger the out-of-bounds read with a value that is not in bmg160sampfreqtable[].filter.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64495.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
22b46c45fb9be8ec1fcb4d9b74810e6a20ff67cc
Fixed
1dc3a833be11e5d503038e3c701745fd0e03903c
Fixed
77e56ebb1786f4296afd5fa46975a989b285ae65
Fixed
029481cddb98697716f4bf3021d035eaf2ca0e1f
Fixed
8d202515baea4e2e3be448d1590099af28f2346d
Fixed
d85ee50f58dd83fe74f6d0bf8bd345c657b216e8
Fixed
7bbf02b63961fc1768c9c654392c11f2077d4c59
Fixed
6c8675468862161d1c59130266852b66867d3861
Fixed
8320c77e67382d5d55d77043a5f60a867d408a2b

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64495.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.18.0
Fixed
5.10.261
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.212
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.178
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.145
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.96
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.39
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64495.json"