{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-99857",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.438Z",
        "datePublished": "2026-11-30T13:17:42.469Z",
        "dateUpdated": "2026-11-30T13:17:42.469Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:17:42.469Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-fc: only send read data for successful commands\n\nWhen a read command completes with an error,\n__nvmet_fc_fcp_nvme_cmd_done() still pushes the whole data buffer to\nthe host before the response. nvmet_fc_alloc_tgt_pgs() allocates that\nbuffer with sgl_alloc() and no __GFP_ZERO, and a command rejected by\nnvmet_check_transfer_len() leaves it untouched, so the host receives\nstale target memory.\n\nThe buffer is as large as the data length in the command IU, so the\namount of stale memory returned is up to the host.\n\nThe tcp and rdma targets send data only when cqe->status is zero (see\nnvmet_tcp_need_data_out() and nvmet_rdma_need_data_out()), so no nvmet\ncommand can rely on returning data with an error status. Do the same\nfor fc. The ERSP then reports a transferred length of fod->offset,\nwhich is 0, matching what nvme_fc_fcpio_done() checks on the host.\n\nTested over nvme-fcloop: a failed read command no longer transfers\ndata and still completes with its error status, and successful reads\nare unaffected."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/nvme/target/fc.c"
                    ],
                    "versions": [
                        {
                            "version": "c53432030d86429dc9fe5adc3d68cb9d1343b0b2",
                            "lessThan": "275ed9e20d551762ebd945decc87128ac9e63d9d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c53432030d86429dc9fe5adc3d68cb9d1343b0b2",
                            "lessThan": "0d5c5a234c7ab987d6b610dc4ec50b3234b3e479",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c53432030d86429dc9fe5adc3d68cb9d1343b0b2",
                            "lessThan": "9425c1c7a5a24a68096a8c19f4159d52402866f7",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c53432030d86429dc9fe5adc3d68cb9d1343b0b2",
                            "lessThan": "d4b53489bcb74ceec8285aa831aced8dc777d3db",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c53432030d86429dc9fe5adc3d68cb9d1343b0b2",
                            "lessThan": "e39568fd4d9cd33cfd55deca89272f9a6506a26d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c53432030d86429dc9fe5adc3d68cb9d1343b0b2",
                            "lessThan": "224aa110632eaccdafa62e106fbeb81420c0d84e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c53432030d86429dc9fe5adc3d68cb9d1343b0b2",
                            "lessThan": "c32b169fb13c22a8723db2467a54b6c0079fd84b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c53432030d86429dc9fe5adc3d68cb9d1343b0b2",
                            "lessThan": "94f93c61b1a5dd08d011be58172ce4392b849008",
                            "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/nvme/target/fc.c"
                    ],
                    "versions": [
                        {
                            "version": "4.10",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.10",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.275",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "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": "4.10",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.10",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.10",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.10",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.10",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.10",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.10",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.10",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/275ed9e20d551762ebd945decc87128ac9e63d9d"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0d5c5a234c7ab987d6b610dc4ec50b3234b3e479"
                },
                {
                    "url": "https://git.kernel.org/stable/c/9425c1c7a5a24a68096a8c19f4159d52402866f7"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d4b53489bcb74ceec8285aa831aced8dc777d3db"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e39568fd4d9cd33cfd55deca89272f9a6506a26d"
                },
                {
                    "url": "https://git.kernel.org/stable/c/224aa110632eaccdafa62e106fbeb81420c0d84e"
                },
                {
                    "url": "https://git.kernel.org/stable/c/c32b169fb13c22a8723db2467a54b6c0079fd84b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/94f93c61b1a5dd08d011be58172ce4392b849008"
                }
            ],
            "title": "nvmet-fc: only send read data for successful commands",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}