Skip to content
Heist/ feed
Back to feed
UnratedFix available

iio: backend: make sure to NULL terminate stack buffer

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: iio: backend: make sure to NULL terminate stack buffer Make sure to NULL terminate the buffer in iio_backend_debugfs_write_reg() before passing it to sscanf(). It is a stack variable so we should not assume it will 0 initialized.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.23, 6.13.11, 6.14.2
CVEs
CVE-2025-22082
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 00:26 UTC · Revision 1

Source evidence

iio: backend: make sure to NULL terminate stack buffer

core-osv · Original source

Published 16 Apr 2025, 14:12 UTC

In the Linux kernel, the following vulnerability has been resolved: iio: backend: make sure to NULL terminate stack buffer Make sure to NULL terminate the buffer in iio_backend_debugfs_write_reg() before passing it to sscanf(). It is a stack variable so we should not assume it will 0 initialized.

osv:CVE-2025-22082

Kernel

Fixed versions: 6.12.23, 6.13.11, 6.14.2

Complete source record
{
  "id": "e1c422972a608636f127dfef664ce4f6be84e34e1f913970802b6e81c832e456",
  "url": "https://osv.dev/vulnerability/CVE-2025-22082",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "iio: backend: make sure to NULL terminate stack buffer",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: iio: backend: make sure to NULL terminate stack buffer Make sure to NULL terminate the buffer in iio_backend_debugfs_write_reg() before passing it to sscanf(). It is a stack variable so we should not assume it will 0 initialized.",
    "evidence": "osv:CVE-2025-22082",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.23",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.13.11",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.14.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-22082",
      "aliases": [
        "CVE-2025-22082"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "cdf01e0809a4c6c7877ea52401c2a6679df7aed6"
                },
                {
                  "fixed": "df3892e5e861c43d5612728ed259634675b8a71f"
                },
                {
                  "fixed": "04271a4d2740f98bbe36f82cd3d74677a839d1eb"
                },
                {
                  "fixed": "fd791c81f410ab1c554686a6f486dc7a176dfe35"
                },
                {
                  "fixed": "035b4989211dc1c8626e186d655ae8ca5141bb73"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22082.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.12.0"
                },
                {
                  "fixed": "6.12.23"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.13.11"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.14.0"
                },
                {
                  "fixed": "6.14.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22082.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.617699759Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/035b4989211dc1c8626e186d655ae8ca5141bb73",
        "https://git.kernel.org/stable/c/04271a4d2740f98bbe36f82cd3d74677a839d1eb",
        "https://git.kernel.org/stable/c/df3892e5e861c43d5612728ed259634675b8a71f",
        "https://git.kernel.org/stable/c/fd791c81f410ab1c554686a6f486dc7a176dfe35",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22082.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-22082",
        "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/2025/22xxx/CVE-2025-22082.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-22082",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 499337,
  "published_at": "2025-04-16T14:12:31.529+00:00"
}