{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "bbb336f39efcb1b5498f65f59f9af5773ad6dc2b"
            },
            {
              "fixed": "887f483a5a0fb992854a810f50a2de86b3df6748"
            },
            {
              "fixed": "f1ab07b264cc94625df4b84db2b88f5500669a85"
            },
            {
              "fixed": "51faeca5d332e0cf8b930b760c3536aadd171425"
            },
            {
              "fixed": "bf56e0e3cd67806a15dfaf637cd941449ca54a49"
            },
            {
              "fixed": "f64e8fccdf73e03a9a42e548a2f894e4c689c5c3"
            },
            {
              "fixed": "e2f4edfc061e493fddde16c4bbe1c4f230f41e4a"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.8.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100060.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nspi: amd: fix len==0 underflow and FIFO overflow\n\namd_spi_fifo_xfer() unconditionally decrements xfer-\u003elen when a tx_buf\nis present. The SPI core does not reject zero-length transfers, so a\ntransfer submitted through the SPI_IOC_MESSAGE ioctl with len == 0 and\na tx_buf makes the u32 len wrap to 0xFFFFFFFF, and the following\nper-byte loop writes far past the FIFO window.\n\nThe driver also never checks the cumulative FIFO offset against\nAMD_SPI_FIFO_SIZE. The core splits each transfer down to the\ncontroller's max transfer size but does not bound the total message\nlength, so a message of several transfers whose total exceeds the FIFO\noverflows it with out-of-bounds MMIO writes (tx) and reads (rx).\n\nSkip zero-length transfers and reject any transfer that would run past\nthe end of the FIFO window.\n\nTested with a user-space replica of the fifo_xfer length arithmetic\n(ASAN build): a zero-length transfer with tx_buf makes len-- wrap to\n0xffffffff, and skipping zero-length transfers avoids the wrap. No AMD\nSPI hardware was available, so the FIFO bound check was verified by\ninspection against AMD_SPI_FIFO_SIZE.",
  "id": "CVE-2026-100060",
  "modified": "2026-12-01T20:45:49.707219767Z",
  "published": "2026-11-30T13:23:30.908Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/51faeca5d332e0cf8b930b760c3536aadd171425"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/887f483a5a0fb992854a810f50a2de86b3df6748"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bf56e0e3cd67806a15dfaf637cd941449ca54a49"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e2f4edfc061e493fddde16c4bbe1c4f230f41e4a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f1ab07b264cc94625df4b84db2b88f5500669a85"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f64e8fccdf73e03a9a42e548a2f894e4c689c5c3"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100060.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-100060"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "spi: amd: fix len==0 underflow and FIFO overflow"
}