iio: magnetometer: ak8975: fix potential kernel stack memory leak (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.22 % · percentile 13 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- Affected products
- Linux · Linux
- NVD status
- Received
Description
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.
References
- https://git.kernel.org/stable/c/12848f4ded022963944c063e09a192549a4dad1e
- https://git.kernel.org/stable/c/a9cf46054f81972f8c0f1dc2a79d2a141999dbce
- https://git.kernel.org/stable/c/9f920550abacedc7fc3163dea65ac2a7d0b0765d
- https://git.kernel.org/stable/c/8cf346074533356d67a6a6a43a192328ad341f11
- https://git.kernel.org/stable/c/b974566803bceb72f0b9b5f1d7270b79ba963766
- https://git.kernel.org/stable/c/3d57672119525c59ed73ea21accb001ccbcd6cfd
- https://git.kernel.org/stable/c/fb27ebf81136e796c7b719303ef6fd7e1ae5d488
- https://git.kernel.org/stable/c/a9a00d727b7bbc5e913a919530a9dd468935bf95
European references
- ENISA EUVD · EUVD-2026-59380
- GCVE · GCVE-0-2026-72481
CERT-FR advisories
- CERTFR-2026-AVI-1596 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1593 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1537 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1535 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1470 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1469 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1385 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1333 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1286 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
Affected products
| Product | Affected versions |
|---|---|
| Linux · Linux | affected : ≥ bc11ca4a0b84a2f2ebaca2614b92998738d13b1e < 12848f4ded022963944c063e09a192549a4dad1e affected : ≥ bc11ca4a0b84a2f2ebaca2614b92998738d13b1e < a9cf46054f81972f8c0f1dc2a79d2a141999dbce affected : ≥ bc11ca4a0b84a2f2ebaca2614b92998738d13b1e < 9f920550abacedc7fc3163dea65ac2a7d0b0765d affected : ≥ bc11ca4a0b84a2f2ebaca2614b92998738d13b1e < 8cf346074533356d67a6a6a43a192328ad341f11 affected : ≥ bc11ca4a0b84a2f2ebaca2614b92998738d13b1e < b974566803bceb72f0b9b5f1d7270b79ba963766 affected : ≥ bc11ca4a0b84a2f2ebaca2614b92998738d13b1e < 3d57672119525c59ed73ea21accb001ccbcd6cfd affected : ≥ bc11ca4a0b84a2f2ebaca2614b92998738d13b1e < fb27ebf81136e796c7b719303ef6fd7e1ae5d488 affected : ≥ bc11ca4a0b84a2f2ebaca2614b92998738d13b1e < a9a00d727b7bbc5e913a919530a9dd468935bf95 Other versions : unaffected |
| Linux · Linux | affected : 4.7 unaffected : ≥ 0 < 4.7 unaffected : ≥ 5.10.261 ≤ 5.10.* unaffected : ≥ 5.15.212 ≤ 5.15.* unaffected : ≥ 6.1.178 ≤ 6.1.* unaffected : ≥ 6.6.145 ≤ 6.6.* unaffected : ≥ 6.12.97 ≤ 6.12.* unaffected : ≥ 6.18.40 ≤ 6.18.* unaffected : ≥ 7.1.5 ≤ 7.1.* unaffected : ≥ 7.2 ≤ * Other versions : affected |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |