{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-64535",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2026-64535"
  ],
  "published": "2026-07-27T06:32:40Z",
  "summary": "nvmet-tcp: Fix potential UAF when ddgst mismatch",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-tcp: Fix potential UAF when ddgst mismatch\n\nShivam Kumar found via vulnerability testing:\nWhen data digest is enabled on an NVMe/TCP connection and a digest\nmismatch occurs on a non-final H2C_DATA PDU during an R2T-based\ndata transfer, the digest error handler in nvmet_tcp_try_recv_ddgst()\ncalls nvmet_req_uninit() \u2014 which performs percpu_ref_put() on the\nsubmission queue \u2014 but does NOT mark the command as completed. It\ndoes not set cqe->status, does not modify rbytes_done, and does not\nclear any flag. When the subsequent fatal error triggers queue\nteardown, nvmet_tcp_uninit_data_in_cmds() iterates all commands,\nchecks nvmet_tcp_need_data_in() for each one, and finds that the\nalready-uninited command still appears to need data (because\nrbytes_done < transfer_len and cqe->status == 0). It therefore calls\nnvmet_req_uninit() a second time on the same command \u2014 a double\npercpu_ref_put against a single percpu_ref_get.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.178",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-64535"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/dfb902462bca478f050224ec7a7195aafa7643b1"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/7e558308eba14c8136cb1e615f0c850f76d1fc0a"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/96fe2513df590e74b04253a45089cae75569570e"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/e091ff83d962f9ed00d9bd70443676de9fe98bdc"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/6f9442983a3e4227afd1c83a5251ddbca585ea21"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/088ee46c18d99baef453afd74181dd40ade044ad"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/dbbd07d0a7020b80f6a7028e561908f7b83b3d5a"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-19T16:47:12Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 9.8,
      "cvss_v3_severity": "Critical",
      "scenario": "AV:N - The vulnerable NVMe/TCP target receive worker processes attacker-controlled H2C_DATA PDUs received through a listening TCP socket, making it remotely network reachable.\nAC:L - The attacker controls digest negotiation, PDU chunking, transfer length, and digest contents, allowing a non-final digest mismatch to be triggered deterministically while keeping other I/O outstanding.\nPR:N - A reasonable non-TLS target deployment using allow_any_host requires no credentials or local capabilities; the remote peer can negotiate data digests and submit the malicious protocol sequence directly.\nUI:N - Exploitation requires only network protocol traffic and no action by a victim user.\nS:U - The vulnerable receive processing and resulting kernel compromise occur within the target host's existing kernel security authority.\nC:H - The premature reference release can free queue, request, response-buffer, and percpu-ref state while asynchronous completions still access it, creating a kernel UAF capable of arbitrary memory disclosure.\nI:H - The kernel UAF exposes writes through reclaimed request and queue structures and is plausibly exploitable for arbitrary kernel memory modification or code execution.\nA:H - The refcount corruption can cause a permanent workqueue teardown deadlock, while the resulting UAF can also produce an oops or kernel panic; the network trigger can be repeated."
    }
  }
}
