CVE-2026-99388 (GCVE-0-2026-99388)

Vulnerability from cvelistv5 – Published: 2026-11-19 14:23 – Updated: 2026-11-22 11:08
VLAI
Title
smb: smbdirect: fix buffer length underflow in RDMA transfers
Summary
In the Linux kernel, the following vulnerability has been resolved: smb: smbdirect: fix buffer length underflow in RDMA transfers When a remote buffer descriptor is larger than the remaining local buffer, smbdirect_connection_rdma_xmit() clamps its length and sets buf_len to zero. The common accounting code then subtracts the clamped length from buf_len, causing it to underflow. If another descriptor follows, the loop processes it with a wrapped remaining length and includes memory beyond the local buffer in the RDMA transfer. A client can trigger an out-of-bounds kernel write with an SMB WRITE request, or an out-of-bounds kernel read with an SMB READ request, by supplying multiple RDMA buffer descriptors with an oversized descriptor before the last one. Remove the premature assignment to buf_len. Subtracting the clamped length already consumes the remaining buffer, so the next iteration stops and only descriptors within the local buffer are used to build work requests.
Impacted products
Vendor Product Version
Linux Linux Affected: e628bf939aafb61fbc56e9bdac8795cea5127e25 , < 5072f32330c71de91c1a844e7becaee48d743561 (git)
Affected: e628bf939aafb61fbc56e9bdac8795cea5127e25 , < 1f5c774488fa2dabe6667cb26888aaea39c4ead6 (git)
Affected: e628bf939aafb61fbc56e9bdac8795cea5127e25 , < 956968544ae647aa9a9534b58735f47922c85d44 (git)
Affected: e628bf939aafb61fbc56e9bdac8795cea5127e25 , < 7193241a49c958782ba4b8df06da3734d1e317d2 (git)
Affected: c5aa74449a41d9c10900d82d2c2e62d5462ef932 (git)
Affected: cf859267e639cff1f525bd050f370ea752cc25f7 (git)
Affected: 1c660940f525279bb23b5d99a591535e7c359efe (git)
Affected: ebdb872897dbb2425b6c9f7b7e2f5d9a8042a76a (git)
Affected: 5.15.145 , < 5.16 (semver)
Affected: 6.1.52 , < 6.2 (semver)
Affected: 6.4.15 , < 6.5 (semver)
Affected: 6.5.2 , < 6.6 (semver)
Create a notification for this product.
Linux Linux Affected: 6.6
Unaffected: 0 , < 6.6 (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/smb/smbdirect/rw.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "5072f32330c71de91c1a844e7becaee48d743561",
              "status": "affected",
              "version": "e628bf939aafb61fbc56e9bdac8795cea5127e25",
              "versionType": "git"
            },
            {
              "lessThan": "1f5c774488fa2dabe6667cb26888aaea39c4ead6",
              "status": "affected",
              "version": "e628bf939aafb61fbc56e9bdac8795cea5127e25",
              "versionType": "git"
            },
            {
              "lessThan": "956968544ae647aa9a9534b58735f47922c85d44",
              "status": "affected",
              "version": "e628bf939aafb61fbc56e9bdac8795cea5127e25",
              "versionType": "git"
            },
            {
              "lessThan": "7193241a49c958782ba4b8df06da3734d1e317d2",
              "status": "affected",
              "version": "e628bf939aafb61fbc56e9bdac8795cea5127e25",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "c5aa74449a41d9c10900d82d2c2e62d5462ef932",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "cf859267e639cff1f525bd050f370ea752cc25f7",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "1c660940f525279bb23b5d99a591535e7c359efe",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "ebdb872897dbb2425b6c9f7b7e2f5d9a8042a76a",
              "versionType": "git"
            },
            {
              "lessThan": "5.16",
              "status": "affected",
              "version": "5.15.145",
              "versionType": "semver"
            },
            {
              "lessThan": "6.2",
              "status": "affected",
              "version": "6.1.52",
              "versionType": "semver"
            },
            {
              "lessThan": "6.5",
              "status": "affected",
              "version": "6.4.15",
              "versionType": "semver"
            },
            {
              "lessThan": "6.6",
              "status": "affected",
              "version": "6.5.2",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/smb/smbdirect/rw.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.6"
            },
            {
              "lessThan": "6.6",
              "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": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.61",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.2",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.15.145",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.1.52",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.4.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.5.2",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: smbdirect: fix buffer length underflow in RDMA transfers\n\nWhen a remote buffer descriptor is larger than the remaining local\nbuffer, smbdirect_connection_rdma_xmit() clamps its length and sets\nbuf_len to zero. The common accounting code then subtracts the clamped\nlength from buf_len, causing it to underflow. If another descriptor\nfollows, the loop processes it with a wrapped remaining length and\nincludes memory beyond the local buffer in the RDMA transfer.\n\nA client can trigger an out-of-bounds kernel write with an SMB WRITE\nrequest, or an out-of-bounds kernel read with an SMB READ request, by\nsupplying multiple RDMA buffer descriptors with an oversized descriptor\nbefore the last one.\n\nRemove the premature assignment to buf_len. Subtracting the clamped length\nalready consumes the remaining buffer, so the next iteration stops and\nonly descriptors within the local buffer are used to build work requests."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 8.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - A remote SMB Direct client puts the bad descriptor lengths in the SMB2 READ ReadChannelInfo or SMB2 WRITE WriteChannelInfo of the PDU that ksmbd_conn_handler_loop reads via smb_direct_read; smb2_read/smb2_write then call smbdirect_connection_rdma_xmit. That listener binds AF_INET port 5445 for iWARP (TCP) and port 445 for RoCEv2, both routable IP.\nAC:L - The client chooses the descriptor lengths, and check_rdma_desc only requires their sum to cover Length or RemainingBytes, so an oversized descriptor followed by another one makes buf_len wrap in smbdirect_connection_rdma_xmit. The client opens the SMB Direct connection and the file itself; a modest overflow fits the connection\u0027s existing RDMA credit pool.\nPR:L - smb2_check_user_session drops SMB2 READ and WRITE that lack a valid session, and smb2_read/smb2_write then require a tree connect and an open file with FILE_READ_DATA or FILE_WRITE_DATA. That is an authenticated share user who already finished session setup before the descriptor loop runs.\nUI:N - The authenticated client alone opens the file and sends the SMB2 READ or WRITE whose ReadChannelInfo or WriteChannelInfo carries the descriptors.\nS:U - The HCA DMA stays inside the host kernel that built the SG list from the ksmbd buffer in smbdirect_connection_rdma_xmit, which is the same security authority as the corrupted memory.\nC:H - SMB2 READ calls smbdirect_connection_rdma_xmit with is_read false, and the unclamped later descriptor makes smbdirect_connection_rdma_get_sg_list RDMA-write memory past aux_payload_buf to the client rkey. The client-chosen descriptor length covers many pages of adjacent kernel memory.\nI:H - SMB2 WRITE calls smbdirect_connection_rdma_xmit with is_read true (DMA_FROM_DEVICE), so the same later descriptor RDMA-reads bytes from the client\u0027s registered buffer into kernel memory past the kvzalloc buffer in smb2_write_rdma. Those bytes are chosen by the client.\nA:H - That RDMA read writes attacker-controlled data over adjacent kernel heap after the kvzalloc/kvmalloc buffer, which is enough to oops the host. A length that runs off a vmalloc mapping also puts a NULL page from vmalloc_to_page into the SG list."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-22T11:08:01.580Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/5072f32330c71de91c1a844e7becaee48d743561"
        },
        {
          "url": "https://git.kernel.org/stable/c/1f5c774488fa2dabe6667cb26888aaea39c4ead6"
        },
        {
          "url": "https://git.kernel.org/stable/c/956968544ae647aa9a9534b58735f47922c85d44"
        },
        {
          "url": "https://git.kernel.org/stable/c/7193241a49c958782ba4b8df06da3734d1e317d2"
        }
      ],
      "title": "smb: smbdirect: fix buffer length underflow in RDMA transfers",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99388",
    "datePublished": "2026-11-19T14:23:27.698Z",
    "dateReserved": "2026-09-25T10:25:14.412Z",
    "dateUpdated": "2026-11-22T11:08:01.580Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99388",
      "date": "2026-11-22",
      "epss": "0.00224",
      "percentile": "0.13164"
    },
    "microsoft_vex": {
      "current_release_date": "2026-11-21T01:05:48.000Z",
      "cve": "CVE-2026-99388",
      "id": "msrc_CVE-2026-99388",
      "initial_release_date": "2026-11-21T01:05:48.000Z",
      "product_status:known_affected": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "smb: smbdirect: fix buffer length underflow in RDMA transfers",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-99388.json",
      "version": "1"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "fs/smb/smbdirect/rw.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "5072f32330c71de91c1a844e7becaee48d743561",
                    "status": "affected",
                    "version": "e628bf939aafb61fbc56e9bdac8795cea5127e25",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "1f5c774488fa2dabe6667cb26888aaea39c4ead6",
                    "status": "affected",
                    "version": "e628bf939aafb61fbc56e9bdac8795cea5127e25",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "956968544ae647aa9a9534b58735f47922c85d44",
                    "status": "affected",
                    "version": "e628bf939aafb61fbc56e9bdac8795cea5127e25",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "7193241a49c958782ba4b8df06da3734d1e317d2",
                    "status": "affected",
                    "version": "e628bf939aafb61fbc56e9bdac8795cea5127e25",
                    "versionType": "git"
                  },
                  {
                    "status": "affected",
                    "version": "c5aa74449a41d9c10900d82d2c2e62d5462ef932",
                    "versionType": "git"
                  },
                  {
                    "status": "affected",
                    "version": "cf859267e639cff1f525bd050f370ea752cc25f7",
                    "versionType": "git"
                  },
                  {
                    "status": "affected",
                    "version": "1c660940f525279bb23b5d99a591535e7c359efe",
                    "versionType": "git"
                  },
                  {
                    "status": "affected",
                    "version": "ebdb872897dbb2425b6c9f7b7e2f5d9a8042a76a",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "5.16",
                    "status": "affected",
                    "version": "5.15.145",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.2",
                    "status": "affected",
                    "version": "6.1.52",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.5",
                    "status": "affected",
                    "version": "6.4.15",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.6",
                    "status": "affected",
                    "version": "6.5.2",
                    "versionType": "semver"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "fs/smb/smbdirect/rw.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.6"
                  },
                  {
                    "lessThan": "6.6",
                    "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\nsmb: smbdirect: fix buffer length underflow in RDMA transfers\n\nWhen a remote buffer descriptor is larger than the remaining local\nbuffer, smbdirect_connection_rdma_xmit() clamps its length and sets\nbuf_len to zero. The common accounting code then subtracts the clamped\nlength from buf_len, causing it to underflow. If another descriptor\nfollows, the loop processes it with a wrapped remaining length and\nincludes memory beyond the local buffer in the RDMA transfer.\n\nA client can trigger an out-of-bounds kernel write with an SMB WRITE\nrequest, or an out-of-bounds kernel read with an SMB READ request, by\nsupplying multiple RDMA buffer descriptors with an oversized descriptor\nbefore the last one.\n\nRemove the premature assignment to buf_len. Subtracting the clamped length\nalready consumes the remaining buffer, so the next iteration stops and\nonly descriptors within the local buffer are used to build work requests."
          }
        ],
        "id": "CVE-2026-99388",
        "lastModified": "2026-11-22T11:16:49.933",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 8.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 2.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-19T15:17:51.087",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/1f5c774488fa2dabe6667cb26888aaea39c4ead6"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/5072f32330c71de91c1a844e7becaee48d743561"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/7193241a49c958782ba4b8df06da3734d1e317d2"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/956968544ae647aa9a9534b58735f47922c85d44"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Important",
      "current_release_date": "2026-11-22T11:30:51+00:00",
      "cve": "CVE-2026-99388",
      "id": "CVE-2026-99388",
      "initial_release_date": "2026-11-19T14:23:27.698000+00:00",
      "product_status:known_affected": "2",
      "product_status:known_not_affected": "202",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: out-of-bounds memory write in SMB Direct via buffer length underflow",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99388.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "important",
      "current_release_date": "2026-11-20T17:47:20Z",
      "cve": "CVE-2026-99388",
      "id": "CVE-2026-99388",
      "initial_release_date": "2026-11-20T17:47:20Z",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-99388",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-99388.json",
      "version": "2"
    }
  }
}



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…