{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-100060",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.455Z",
        "datePublished": "2026-11-30T13:23:30.908Z",
        "dateUpdated": "2026-11-30T13:23:30.908Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:23:30.908Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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->len 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."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/spi/spi-amd.c"
                    ],
                    "versions": [
                        {
                            "version": "bbb336f39efcb1b5498f65f59f9af5773ad6dc2b",
                            "lessThan": "887f483a5a0fb992854a810f50a2de86b3df6748",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bbb336f39efcb1b5498f65f59f9af5773ad6dc2b",
                            "lessThan": "f1ab07b264cc94625df4b84db2b88f5500669a85",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bbb336f39efcb1b5498f65f59f9af5773ad6dc2b",
                            "lessThan": "51faeca5d332e0cf8b930b760c3536aadd171425",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bbb336f39efcb1b5498f65f59f9af5773ad6dc2b",
                            "lessThan": "bf56e0e3cd67806a15dfaf637cd941449ca54a49",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bbb336f39efcb1b5498f65f59f9af5773ad6dc2b",
                            "lessThan": "f64e8fccdf73e03a9a42e548a2f894e4c689c5c3",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bbb336f39efcb1b5498f65f59f9af5773ad6dc2b",
                            "lessThan": "e2f4edfc061e493fddde16c4bbe1c4f230f41e4a",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/spi/spi-amd.c"
                    ],
                    "versions": [
                        {
                            "version": "5.8",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.8",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.117",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.63",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/887f483a5a0fb992854a810f50a2de86b3df6748"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f1ab07b264cc94625df4b84db2b88f5500669a85"
                },
                {
                    "url": "https://git.kernel.org/stable/c/51faeca5d332e0cf8b930b760c3536aadd171425"
                },
                {
                    "url": "https://git.kernel.org/stable/c/bf56e0e3cd67806a15dfaf637cd941449ca54a49"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f64e8fccdf73e03a9a42e548a2f894e4c689c5c3"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e2f4edfc061e493fddde16c4bbe1c4f230f41e4a"
                }
            ],
            "title": "spi: amd: fix len==0 underflow and FIFO overflow",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}