iio: pressure: bmp280: fix out-of-bounds access in sampling frequency lookup
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel fed876157271fc4bc28b8739ad73642553a5920e, Kernel 05ef1af381a0f4556c7e3c0dc6bc2428d16c707e, Kernel 4fd5a61e61d6899cbd45728a5fceba49a53c222d and 8 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=10b40ffba2f95cdeed47b731c5ad5ecc73e140e8 <fed876157271fc4bc28b8739ad73642553a5920e, >=10b40ffba2f95cdeed47b731c5ad5ecc73e140e8 <05ef1af381a0f4556c7e3c0dc6bc2428d16c707e, >=10b40ffba2f95cdeed47b731c5ad5ecc73e140e8 <4fd5a61e61d6899cbd45728a5fceba49a53c222d, >=10b40ffba2f95cdeed47b731c5ad5ecc73e140e8 <56c423b233b214182c58c99861899327b45b0d6c, >=10b40ffba2f95cdeed47b731c5ad5ecc73e140e8 <7dbb518f3328ebd9d5c6e970b4befad6deb5c7f1, >=10b40ffba2f95cdeed47b731c5ad5ecc73e140e8 <9db6684fab228edd3b8861a172ccbce3236f027a, =6.1 | fed876157271fc4bc28b8739ad73642553a5920e, 05ef1af381a0f4556c7e3c0dc6bc2428d16c707e, 4fd5a61e61d6899cbd45728a5fceba49a53c222d, 56c423b233b214182c58c99861899327b45b0d6c, 7dbb518f3328ebd9d5c6e970b4befad6deb5c7f1, 9db6684fab228edd3b8861a172ccbce3236f027a |
| linux-kernel: Kernel | >=6.13.0 <6.18.56, >=6.19.0 <7.2.10, >=6.2.0 <6.6.160, >=6.7.0 <6.12.113, >=6.1.0 <6.1.191 | 6.18.56, 7.2.10, 6.6.160, 6.12.113, 6.1.191 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket