iio: magnetometer: ak8975: fix potential kernel stack memory leak
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel fb27ebf81136e796c7b719303ef6fd7e1ae5d488, Kernel 12848f4ded022963944c063e09a192549a4dad1e, Kernel 3d57672119525c59ed73ea21accb001ccbcd6cfd and 12 more.
In the Linux kernel, the following vulnerability has been resolved: iio: magnetometer: ak8975: fix potential kernel stack memory leak Currently in the AK8975 driver there are four instances where potential uninitialized kernel stack memory leaks can occur. If i2c_smbus_read_i2c_block_data_or_emulated() returns a value less than the size of the buffer, uninitialized bytes are retained in the buffer and later the buffer is passed on to IIO buffers, potentially leaking memory to userspace. Fix this by adding checks whether the return value of the function is equal to the size of the buffer and subsequently if the value is lesser than zero to distinguish from a returned error code.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=bc11ca4a0b84a2f2ebaca2614b92998738d13b1e <fb27ebf81136e796c7b719303ef6fd7e1ae5d488, >=bc11ca4a0b84a2f2ebaca2614b92998738d13b1e <12848f4ded022963944c063e09a192549a4dad1e, >=bc11ca4a0b84a2f2ebaca2614b92998738d13b1e <3d57672119525c59ed73ea21accb001ccbcd6cfd, >=bc11ca4a0b84a2f2ebaca2614b92998738d13b1e <8cf346074533356d67a6a6a43a192328ad341f11, >=bc11ca4a0b84a2f2ebaca2614b92998738d13b1e <9f920550abacedc7fc3163dea65ac2a7d0b0765d, >=bc11ca4a0b84a2f2ebaca2614b92998738d13b1e <a9a00d727b7bbc5e913a919530a9dd468935bf95, >=bc11ca4a0b84a2f2ebaca2614b92998738d13b1e <a9cf46054f81972f8c0f1dc2a79d2a141999dbce, >=bc11ca4a0b84a2f2ebaca2614b92998738d13b1e <b974566803bceb72f0b9b5f1d7270b79ba963766, =4.7 | fb27ebf81136e796c7b719303ef6fd7e1ae5d488, 12848f4ded022963944c063e09a192549a4dad1e, 3d57672119525c59ed73ea21accb001ccbcd6cfd, 8cf346074533356d67a6a6a43a192328ad341f11, 9f920550abacedc7fc3163dea65ac2a7d0b0765d, a9a00d727b7bbc5e913a919530a9dd468935bf95, a9cf46054f81972f8c0f1dc2a79d2a141999dbce, b974566803bceb72f0b9b5f1d7270b79ba963766 |
| linux-kernel: Kernel | >=5.11.0 <5.15.212, >=5.16.0 <6.1.178, >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.2.0 <6.6.145, >=6.7.0 <6.12.97, >=4.7.0 <5.10.261 | 5.15.212, 6.1.178, 6.18.40, 7.1.5, 6.6.145, 6.12.97, 5.10.261 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket