{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "4d671b71beefbfc145b971a11e0c3cabde94b673"
            },
            {
              "fixed": "b3bb8faeca1a2ef7be95ee8a512b639f9ffce947"
            },
            {
              "fixed": "fa64aab25aba47296aa8d12bb4c88ec3fecb2054"
            },
            {
              "fixed": "67b3a91bdc48220bfb67155ab528121b9c822782"
            },
            {
              "fixed": "014c6d27878d3883f7bb065610768fd021de1a96"
            },
            {
              "fixed": "d2d031b0786ea66ab0577c9d2d71435068d32199"
            },
            {
              "fixed": "768461517a28d80fe81ea4d5d03a90cd184ea6ad"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.9.0"
            },
            {
              "fixed": "6.1.168"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.134"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.81"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.22"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "6.19.12"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31768.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\niio: adc: ti-adc161s626: use DMA-safe memory for spi_read()\n\nAdd a DMA-safe buffer and use it for spi_read() instead of a stack\nmemory. All SPI buffers must be DMA-safe.\n\nSince we only need up to 3 bytes, we just use a u8[] instead of __be16\nand __be32 and change the conversion functions appropriately.",
  "id": "CVE-2026-31768",
  "modified": "2026-07-08T05:38:09.134501826Z",
  "published": "2026-05-01T14:14:57.971Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/014c6d27878d3883f7bb065610768fd021de1a96"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/67b3a91bdc48220bfb67155ab528121b9c822782"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/768461517a28d80fe81ea4d5d03a90cd184ea6ad"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b3bb8faeca1a2ef7be95ee8a512b639f9ffce947"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d2d031b0786ea66ab0577c9d2d71435068d32199"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fa64aab25aba47296aa8d12bb4c88ec3fecb2054"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31768.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31768"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "iio: adc: ti-adc161s626: use DMA-safe memory for spi_read()"
}