CVE-2026-99362 (GCVE-0-2026-99362)

Vulnerability from cvelistv5 – Published: 2026-11-19 14:22 – Updated: 2026-11-22 11:07
VLAI
Title
nfsd: preflight SEQUENCE replies before accepting a slot
Summary
In the Linux kernel, the following vulnerability has been resolved: nfsd: preflight SEQUENCE replies before accepting a slot nfsd4_sequence() narrows the reply buffer to the session's cached reply limit before it accepts the slot seqid. A client may negotiate ca_maxresponsesize_cached down to NFSD_MIN_HDR_SEQ_SZ, and nfsd4_alloc_slot() then gives every slot a zero-length sl_data[]. A COMPOUND tag can fill that narrowed buffer until it holds the SEQUENCE opcode but not the status word that follows. nfsd4_encode_operation() returns without running nfsd4_encode_sequence(), so cstate.data_offset stays zero. It leaves op->status at nfs_ok as well, so the COMPOUND is treated as having succeeded. nfsd4_store_cache_entry() declines to cache a lone SEQUENCE that returned an error. That test reads the status the operation reported, so it passes here. The copy starts at offset zero and takes the whole reply, RPC and COMPOUND headers included, into the zero-length sl_data[]. The COMPOUND tag is copied along with it, so the client picks most of the bytes written past the end of the slot: BUG: KASAN: slab-out-of-bounds in read_bytes_from_xdr_buf+0x1bc/0x390 Write of size 80 at addr ffff888003a549cd by task kunit_try_catch/24 __asan_memcpy+0x38/0x60 read_bytes_from_xdr_buf+0x1bc/0x390 nfsd4_sequence_done+0x5b0/0x810 nfs4svc_encode_compoundres+0x1bf/0x240 Check that the fixed-size SEQUENCE result, plus room for a following operation's error status, fits the negotiated limit before narrowing the buffer and consuming the slot seqid. The slot and its reply cache are left unchanged, as RFC 8881 Section 2.10.6.1.2 requires of an error returned from SEQUENCE.
Impacted products
Vendor Product Version
Linux Linux Affected: 47ee52986472dba068e8223cbaf1b65d74238781 , < 1a5a227bca6a8a9f9d31230697aeb84c62a21da6 (git)
Affected: 47ee52986472dba068e8223cbaf1b65d74238781 , < 37fc2ec211630360e9aefcaaec8730db964645f2 (git)
Affected: 47ee52986472dba068e8223cbaf1b65d74238781 , < ed98b0c57e5e84290c5b35428144ab26778905f3 (git)
Affected: 47ee52986472dba068e8223cbaf1b65d74238781 , < 35ff1a7a7e3835c3e974bc5c45d335897564ceae (git)
Create a notification for this product.
Linux Linux Affected: 3.16
Unaffected: 0 , < 3.16 (semver)
Unaffected: 6.12.117 , ≤ 6.12.* (semver)
Unaffected: 6.18.61 , ≤ 6.18.* (semver)
Unaffected: 7.3.2 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/nfsd/nfs4state.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "1a5a227bca6a8a9f9d31230697aeb84c62a21da6",
              "status": "affected",
              "version": "47ee52986472dba068e8223cbaf1b65d74238781",
              "versionType": "git"
            },
            {
              "lessThan": "37fc2ec211630360e9aefcaaec8730db964645f2",
              "status": "affected",
              "version": "47ee52986472dba068e8223cbaf1b65d74238781",
              "versionType": "git"
            },
            {
              "lessThan": "ed98b0c57e5e84290c5b35428144ab26778905f3",
              "status": "affected",
              "version": "47ee52986472dba068e8223cbaf1b65d74238781",
              "versionType": "git"
            },
            {
              "lessThan": "35ff1a7a7e3835c3e974bc5c45d335897564ceae",
              "status": "affected",
              "version": "47ee52986472dba068e8223cbaf1b65d74238781",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/nfsd/nfs4state.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.16"
            },
            {
              "lessThan": "3.16",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.117",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.61",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.117",
                  "versionStartIncluding": "3.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.61",
                  "versionStartIncluding": "3.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.2",
                  "versionStartIncluding": "3.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "3.16",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: preflight SEQUENCE replies before accepting a slot\n\nnfsd4_sequence() narrows the reply buffer to the session\u0027s cached\nreply limit before it accepts the slot seqid. A client may negotiate\nca_maxresponsesize_cached down to NFSD_MIN_HDR_SEQ_SZ, and\nnfsd4_alloc_slot() then gives every slot a zero-length sl_data[]. A\nCOMPOUND tag can fill that narrowed buffer until it holds the\nSEQUENCE opcode but not the status word that follows.\nnfsd4_encode_operation() returns without running\nnfsd4_encode_sequence(), so cstate.data_offset stays zero. It leaves\nop-\u003estatus at nfs_ok as well, so the COMPOUND is treated as having\nsucceeded.\n\nnfsd4_store_cache_entry() declines to cache a lone SEQUENCE that\nreturned an error. That test reads the status the operation\nreported, so it passes here. The copy starts at offset zero and\ntakes the whole reply, RPC and COMPOUND headers included, into the\nzero-length sl_data[]. The COMPOUND tag is copied along with it, so\nthe client picks most of the bytes written past the end of the slot:\n\n  BUG: KASAN: slab-out-of-bounds in read_bytes_from_xdr_buf+0x1bc/0x390\n  Write of size 80 at addr ffff888003a549cd by task kunit_try_catch/24\n   __asan_memcpy+0x38/0x60\n   read_bytes_from_xdr_buf+0x1bc/0x390\n   nfsd4_sequence_done+0x5b0/0x810\n   nfs4svc_encode_compoundres+0x1bf/0x240\n\nCheck that the fixed-size SEQUENCE result, plus room for a following\noperation\u0027s error status, fits the negotiated limit before narrowing\nthe buffer and consuming the slot seqid. The slot and its reply\ncache are left unchanged, as RFC 8881 Section 2.10.6.1.2 requires of\nan error returned from SEQUENCE."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - svc_tcp_recvfrom delivers an NFSv4.1 TCP RPC to svc_process, nfsd_dispatch, and nfsd4_proc_compound, which calls nfsd4_sequence. The client supplies ca_maxresponsesize_cached in CREATE_SESSION (nfsd4_decode_channel_attrs4) and the COMPOUND tag plus SEQUENCE sa_cachethis (nfsd4_decode_sequence); that reply is what nfsd4_store_cache_entry copies past sl_data.\nAC:L - The client sets ca_maxresponsesize_cached to NFSD_MIN_HDR_SEQ_SZ and a COMPOUND tag that leaves room for the SEQUENCE opcode but not its status word. nfsd4_encode_operation then returns with op-\u003estatus still nfs_ok and cstate.data_offset still 0, so nfsd4_store_cache_entry copies the reply on that COMPOUND with no further timing or peer state.\nPR:N - EXCHANGE_ID with SP4_NONE, CREATE_SESSION, and SEQUENCE are ALLOWED_WITHOUT_FH and never call fh_verify or check_nfsd_access. svcauth_unix_accept copies the AUTH_SYS uid from the RPC without checking it, and svcauth_null_accept accepts AUTH_NULL; svcauth_unix_set_client only maps the source address to an export.\nUI:N - The attacker opens the TCP connection and sends EXCHANGE_ID, CREATE_SESSION, and the SEQUENCE COMPOUND itself. No local user must mount a share or open a file.\nS:U - The overflow corrupts the nfsd4_slot allocation in the kernel that is running nfsd. It does not cross a guest-to-host or IOMMU boundary.\nC:H - nfsd4_store_cache_entry leaves data_offset at 0, sets sl_datalen to the whole reply, and copies it into a zero-length sl_data[]. nfsd4_replay_cache_entry then xdr-encodes those sl_datalen bytes from sl_data into the RPC reply, so the read extends into the adjacent slab object and is returned to the client.\nI:H - read_bytes_from_xdr_buf writes the reply, including the client-chosen COMPOUND tag, at slot-\u003esl_data. With ca_maxresponsesize_cached equal to NFSD_MIN_HDR_SEQ_SZ, nfsd4_alloc_slot makes sl_data zero-length, so the 80-byte copy runs off the kmalloc\u0027d nfsd4_slot into the next object of that slab.\nA:H - The write is performed from nfs4svc_encode_compoundres via nfsd4_sequence_done on the triggering SEQUENCE. KASAN reports it as a slab-out-of-bounds write in read_bytes_from_xdr_buf, which oopses the nfsd thread and can panic the host."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-22T11:07:51.882Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/1a5a227bca6a8a9f9d31230697aeb84c62a21da6"
        },
        {
          "url": "https://git.kernel.org/stable/c/37fc2ec211630360e9aefcaaec8730db964645f2"
        },
        {
          "url": "https://git.kernel.org/stable/c/ed98b0c57e5e84290c5b35428144ab26778905f3"
        },
        {
          "url": "https://git.kernel.org/stable/c/35ff1a7a7e3835c3e974bc5c45d335897564ceae"
        }
      ],
      "title": "nfsd: preflight SEQUENCE replies before accepting a slot",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99362",
    "datePublished": "2026-11-19T14:22:44.299Z",
    "dateReserved": "2026-09-25T10:25:14.410Z",
    "dateUpdated": "2026-11-22T11:07:51.882Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99362",
      "date": "2026-11-22",
      "epss": "0.00228",
      "percentile": "0.13695"
    },
    "microsoft_vex": {
      "current_release_date": "2026-11-21T01:18:11.000Z",
      "cve": "CVE-2026-99362",
      "id": "msrc_CVE-2026-99362",
      "initial_release_date": "2026-11-21T01:18:11.000Z",
      "product_status:known_affected": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "nfsd: preflight SEQUENCE replies before accepting a slot",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-99362.json",
      "version": "1"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "fs/nfsd/nfs4state.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "1a5a227bca6a8a9f9d31230697aeb84c62a21da6",
                    "status": "affected",
                    "version": "47ee52986472dba068e8223cbaf1b65d74238781",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "37fc2ec211630360e9aefcaaec8730db964645f2",
                    "status": "affected",
                    "version": "47ee52986472dba068e8223cbaf1b65d74238781",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "ed98b0c57e5e84290c5b35428144ab26778905f3",
                    "status": "affected",
                    "version": "47ee52986472dba068e8223cbaf1b65d74238781",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "35ff1a7a7e3835c3e974bc5c45d335897564ceae",
                    "status": "affected",
                    "version": "47ee52986472dba068e8223cbaf1b65d74238781",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "fs/nfsd/nfs4state.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "3.16"
                  },
                  {
                    "lessThan": "3.16",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.117",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.61",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.2",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: preflight SEQUENCE replies before accepting a slot\n\nnfsd4_sequence() narrows the reply buffer to the session\u0027s cached\nreply limit before it accepts the slot seqid. A client may negotiate\nca_maxresponsesize_cached down to NFSD_MIN_HDR_SEQ_SZ, and\nnfsd4_alloc_slot() then gives every slot a zero-length sl_data[]. A\nCOMPOUND tag can fill that narrowed buffer until it holds the\nSEQUENCE opcode but not the status word that follows.\nnfsd4_encode_operation() returns without running\nnfsd4_encode_sequence(), so cstate.data_offset stays zero. It leaves\nop-\u003estatus at nfs_ok as well, so the COMPOUND is treated as having\nsucceeded.\n\nnfsd4_store_cache_entry() declines to cache a lone SEQUENCE that\nreturned an error. That test reads the status the operation\nreported, so it passes here. The copy starts at offset zero and\ntakes the whole reply, RPC and COMPOUND headers included, into the\nzero-length sl_data[]. The COMPOUND tag is copied along with it, so\nthe client picks most of the bytes written past the end of the slot:\n\n  BUG: KASAN: slab-out-of-bounds in read_bytes_from_xdr_buf+0x1bc/0x390\n  Write of size 80 at addr ffff888003a549cd by task kunit_try_catch/24\n   __asan_memcpy+0x38/0x60\n   read_bytes_from_xdr_buf+0x1bc/0x390\n   nfsd4_sequence_done+0x5b0/0x810\n   nfs4svc_encode_compoundres+0x1bf/0x240\n\nCheck that the fixed-size SEQUENCE result, plus room for a following\noperation\u0027s error status, fits the negotiated limit before narrowing\nthe buffer and consuming the slot seqid. The slot and its reply\ncache are left unchanged, as RFC 8881 Section 2.10.6.1.2 requires of\nan error returned from SEQUENCE."
          }
        ],
        "id": "CVE-2026-99362",
        "lastModified": "2026-11-22T11:16:48.807",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 9.8,
                "baseSeverity": "CRITICAL",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 3.9,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-19T15:17:47.803",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/1a5a227bca6a8a9f9d31230697aeb84c62a21da6"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/35ff1a7a7e3835c3e974bc5c45d335897564ceae"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/37fc2ec211630360e9aefcaaec8730db964645f2"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/ed98b0c57e5e84290c5b35428144ab26778905f3"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Critical",
      "current_release_date": "2026-11-22T11:30:42+00:00",
      "cve": "CVE-2026-99362",
      "id": "CVE-2026-99362",
      "initial_release_date": "2026-11-19T14:22:44.299000+00:00",
      "product_status:known_affected": "204",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Out-of-bounds write in nfsd via crafted SEQUENCE compound requests",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99362.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…