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.
Published: 2026-08-15
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The AK8975 magnetometer driver in the Linux kernel contains four code paths where the I2C read helper may return fewer bytes than requested. In those cases uninitialized stack bytes remain in the buffer and are later handed to the IIO subsystem, making them available to user‑space callers. The result is a potential information‑leak of kernel stack contents, which can compromise confidentiality of the host. The weakness aligns with CWE‑200 and CWE‑401.

Affected Systems

Any Linux kernel that includes the AK8975 driver and does not yet incorporate the patch from commit 12848f4de (and other referenced commits) is affected. Affected releases span all kernel series that ship this driver prior to the fix. No specific vendor or version list is supplied in the CNA data.

Risk and Exploitability

The advisory lists a CVSS score of 5.5, indicating moderate severity. The EPSS score of <1% suggests a very low likelihood of exploitation in the wild, and the vulnerability is not included in CISA’s KEV catalog. The likely attack vector is local: a user with access to the IIO device or an attacker with kernel privileges could invoke the I2C read that returns fewer bytes than expected. Because the vulnerability only leaks uninitialized stack data to user‑space and requires local access, the overall risk remains moderate, but administrators should patch promptly.

Generated by OpenCVE AI on August 18, 2026 at 14:17 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the kernel patch that adds the return value checks to the AK8975 driver (commits 12848f4de and associated updates).
  • Rebuild and install the kernel containing the patched driver.
  • Reboot the system to load the updated kernel and ensure the AK8975 interface no longer gives access to uninitialized stack bytes.

Generated by OpenCVE AI on August 18, 2026 at 14:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-908
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Sat, 15 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200
CWE-401

Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
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.
Title iio: magnetometer: ak8975: fix potential kernel stack memory leak
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:15:31.386Z

Reserved: 2026-08-09T03:40:39.935Z

Link: CVE-2026-72481

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:22.313

Modified: 2026-08-17T06:19:16.230

Link: CVE-2026-72481

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72481 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T14:30:05Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-908

    Use of Uninitialized Resource