Skip to content
Heist/ feed
Back to feed
UnratedFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.261, 5.15.212, 6.1.178, 6.12.97, 6.18.40, 6.6.145, 7.1.5
CVEs
CVE-2026-72481
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 22:38 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 15 Aug 2026, 05:57 UTC

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.

osv:CVE-2026-72481

Kernel

Fixed versions: 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5

Complete source record
{
  "id": "dd51b5ef3098beb2d73e02a9b96af8d7a4885718cde1a35b339b5a5358605ca2",
  "url": "https://osv.dev/vulnerability/CVE-2026-72481",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "iio: magnetometer: ak8975: fix potential kernel stack memory leak",
    "summary": "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.",
    "evidence": "osv:CVE-2026-72481",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.261",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.212",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.178",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.145",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.97",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.40",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.1.5",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-72481",
      "aliases": [
        "CVE-2026-72481"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "bc11ca4a0b84a2f2ebaca2614b92998738d13b1e"
                },
                {
                  "fixed": "12848f4ded022963944c063e09a192549a4dad1e"
                },
                {
                  "fixed": "a9cf46054f81972f8c0f1dc2a79d2a141999dbce"
                },
                {
                  "fixed": "9f920550abacedc7fc3163dea65ac2a7d0b0765d"
                },
                {
                  "fixed": "8cf346074533356d67a6a6a43a192328ad341f11"
                },
                {
                  "fixed": "b974566803bceb72f0b9b5f1d7270b79ba963766"
                },
                {
                  "fixed": "3d57672119525c59ed73ea21accb001ccbcd6cfd"
                },
                {
                  "fixed": "fb27ebf81136e796c7b719303ef6fd7e1ae5d488"
                },
                {
                  "fixed": "a9a00d727b7bbc5e913a919530a9dd468935bf95"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72481.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.7.0"
                },
                {
                  "fixed": "5.10.261"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.212"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.178"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.145"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.97"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.40"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.1.5"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72481.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.943178370Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/12848f4ded022963944c063e09a192549a4dad1e",
        "https://git.kernel.org/stable/c/3d57672119525c59ed73ea21accb001ccbcd6cfd",
        "https://git.kernel.org/stable/c/8cf346074533356d67a6a6a43a192328ad341f11",
        "https://git.kernel.org/stable/c/9f920550abacedc7fc3163dea65ac2a7d0b0765d",
        "https://git.kernel.org/stable/c/a9a00d727b7bbc5e913a919530a9dd468935bf95",
        "https://git.kernel.org/stable/c/a9cf46054f81972f8c0f1dc2a79d2a141999dbce",
        "https://git.kernel.org/stable/c/b974566803bceb72f0b9b5f1d7270b79ba963766",
        "https://git.kernel.org/stable/c/fb27ebf81136e796c7b719303ef6fd7e1ae5d488",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72481.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-72481",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72481.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-72481",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 490616,
  "published_at": "2026-08-15T05:57:19.613+00:00"
}