iio: pressure: bmp280: fix out-of-bounds access in sampling frequency lookup
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.160, 6.12.113, 6.18.56, 7.2.10
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: iio: pressure: bmp280: fix out-of-bounds access in sampling frequency lookup The sampling frequency tables store each frequency as an integer part and a fractional part in micro units. num_sampling_freq_avail is initialized to the number of flattened integer elements because read_avail() returns the table as a flat array. bmp280_write_sampling_frequency(), however, indexes the same table as a two-dimensional array and uses num_sampling_freq_avail as the number of rows. Convert the flattened element count back to the number of rows before iterating over the table.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 10b40ffba2f95cdeed47b731c5ad5ecc73e140e8 · fixed in 05ef1af381a0f4556c7e3c0dc6bc2428d16c707e; From 10b40ffba2f95cdeed47b731c5ad5ecc73e140e8 · fixed in 9db6684fab228edd3b8861a172ccbce3236f027a; From 10b40ffba2f95cdeed47b731c5ad5ecc73e140e8 · fixed in 4fd5a61e61d6899cbd45728a5fceba49a53c222d; From 10b40ffba2f95cdeed47b731c5ad5ecc73e140e8 · fixed in 7dbb518f3328ebd9d5c6e970b4befad6deb5c7f1; From 10b40ffba2f95cdeed47b731c5ad5ecc73e140e8 · fixed in 56c423b233b214182c58c99861899327b45b0d6c
- Linux Linux
6.1
- KernelLinux
From 6.1.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.113; From 6.13.0 · fixed in 6.18.56; From 6.19.0 · fixed in 7.2.10