{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-99441",
  "modified": "2026-11-24T05:30:02Z",
  "upstream": [
    "CVE-2026-99441"
  ],
  "published": "2026-11-19T15:08:37Z",
  "summary": "nvmet-auth: serialize access to DH-HMAC-CHAP state to fix UAF",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-auth: serialize access to DH-HMAC-CHAP state to fix UAF\n\nA REPLY AUTH_SEND command can derive a dhchap_skey key while a\nconcurrent AUTH_RECEIVE command observing this REPLY state executes\nthe failure path and frees that key. The REPLY command then continues\nand writes into freed memory, causing a use-after-free. KASAN reports\nit as:\n\n  BUG: KASAN: slab-use-after-free in __sha256_final\n  Write of size 4 at addr ffff88800359c540\n  ...\n  nvmet_auth_sq_free (drivers/nvme/target/auth.c:237)\n  nvmet_execute_auth_receive (drivers/nvme/target/fabrics-cmd-auth.c:621)\n\nAdd a mutex to each submission queue to serialize authentication\ncommands and timeout handling. Unlock the mutex before completing\nrequests and ignore outdated timeout callbacks. Limit timeout delays\nto prevent immediate expiry on 32-bit kernels.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:A/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.193",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-99441"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/52642b931d0fdbae34ec414c6e156c1e2ef61d22"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/b77027a6127d85ddd2eb2de94d1be17dba895cb8"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/4074511c39abed4b763392f0430bf84f166abb4c"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/edb4f7bcffdb768103c561c588de310f34dd26ba"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/35f55810ee2410815d687ff00fb8412d63ab2899"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/53f6efe00cea0c0cf7bd99debe3cdac8567170b5"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-11-23T08:12:11Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 8.8,
      "cvss_v3_severity": "High",
      "scenario": "AV:A - A Fibre Channel initiator triggers the race with two in-flight commands on one submission queue: an Authentication Send carrying a DH-HMAC-CHAP Reply, and an Authentication Receive. lpfc_nvmet_unsol_fcp_event delivers each FCP IU to nvmet_fc_rcv_fcp_req, which reaches nvmet_execute_auth_send and nvmet_execute_auth_receive; the attacker has to be on that FC SAN.\nAC:L - The attacker submits both commands. nvmet_auth_reply stays in nvmet_auth_ctrl_sesskey, with dhchap_step still NVME_AUTH_DHCHAP_MESSAGE_REPLY, while nvme_auth_gen_session_key blocks in crypto_wait_req on the DH shared secret. The receive runs nvmet_execute_auth_receive on lpfc's phba->wq or another CQ during that wait.\nPR:N - nvmet_parse_fabrics_admin_cmd dispatches Authentication Send and Authentication Receive without nvmet_check_auth_status. nvmet_auth_ctrl_sesskey allocates sq->dhchap_skey before nvmet_auth_reply's crypto_memneq checks the host response, so the DHCHAP secret is unverified; Connect only matches the self-asserted hostnqn in nvmet_host_allowed.\nUI:N - The initiator sends Connect, the DH-HMAC-CHAP Negotiate on Authentication Send, the Authentication Receive that sets dhchap_step to REPLY, and then the overlapping Reply and Receive on the same queue.\nS:U - The corrupted object is sq->dhchap_skey on the nvmet host's kernel heap, the same security authority as the target. This is a kernel memory corruption in that host.\nC:H - The receive failure path calls nvmet_auth_sq_free, which kfree's sq->dhchap_skey and sq->dhchap_c1 while nvmet_auth_reply still uses them. nvme_auth_hash writes the digest through the freed skey, and nvmet_auth_host_hash passes it to nvme_auth_augmented_challenge, so a reclaimed slab is read as key material.\nI:H - __sha256_final's put_unaligned_be32 stores the session-key digest into the buffer nvmet_auth_ctrl_sesskey allocated as sq->dhchap_skey after the concurrent receive has freed it. That write hits a reclaimed hash-sized kmalloc slot (32 bytes for the default SHA-256) and is a kernel heap write primitive.\nA:H - The digest store into the freed sq->dhchap_skey slab is a kernel use-after-free that oopses the target, and the receive's FAILURE1 arm also calls nvmet_ctrl_fatal_error, which sets NVME_CSTS_CFS and queues nvmet_fatal_error_handler to delete the controller."
    }
  }
}
