CVE-2026-72481

iio: magnetometer: ak8975: fix potential kernel stack memory leak

State
Published
Severity
Not scored
Published
Aug 15, 2026
Updated
Aug 17, 2026
Reserved
Aug 9, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • bc11ca4a0b84a2f2ebaca2614b92998738d13b1e to before 12848f4ded022963944c063e09a192549a4dad1eAffected
  • bc11ca4a0b84a2f2ebaca2614b92998738d13b1e to before a9cf46054f81972f8c0f1dc2a79d2a141999dbceAffected
  • bc11ca4a0b84a2f2ebaca2614b92998738d13b1e to before 9f920550abacedc7fc3163dea65ac2a7d0b0765dAffected
  • bc11ca4a0b84a2f2ebaca2614b92998738d13b1e to before 8cf346074533356d67a6a6a43a192328ad341f11Affected
  • bc11ca4a0b84a2f2ebaca2614b92998738d13b1e to before b974566803bceb72f0b9b5f1d7270b79ba963766Affected
  • bc11ca4a0b84a2f2ebaca2614b92998738d13b1e to before 3d57672119525c59ed73ea21accb001ccbcd6cfdAffected
  • bc11ca4a0b84a2f2ebaca2614b92998738d13b1e to before fb27ebf81136e796c7b719303ef6fd7e1ae5d488Affected
  • bc11ca4a0b84a2f2ebaca2614b92998738d13b1e to before a9a00d727b7bbc5e913a919530a9dd468935bf95Affected
LinuxLinux
  • 4.7Affected
  • before 4.7Not affected
  • 5.10.261 through 5.10.*Not affected
  • 5.15.212 through 5.15.*Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.97 through 6.12.*Not affected
  • 6.18.40 through 6.18.*Not affected
  • 7.1.5 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.