{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "e628bf939aafb61fbc56e9bdac8795cea5127e25"
            },
            {
              "fixed": "5072f32330c71de91c1a844e7becaee48d743561"
            },
            {
              "fixed": "1f5c774488fa2dabe6667cb26888aaea39c4ead6"
            },
            {
              "fixed": "956968544ae647aa9a9534b58735f47922c85d44"
            },
            {
              "fixed": "7193241a49c958782ba4b8df06da3734d1e317d2"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "c5aa74449a41d9c10900d82d2c2e62d5462ef932"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "cf859267e639cff1f525bd050f370ea752cc25f7"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "1c660940f525279bb23b5d99a591535e7c359efe"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "ebdb872897dbb2425b6c9f7b7e2f5d9a8042a76a"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.15.145"
            },
            {
              "fixed": "5.16"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.1.52"
            },
            {
              "fixed": "6.2"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.4.15"
            },
            {
              "fixed": "6.5"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.5.2"
            },
            {
              "fixed": "6.6"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.6.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.61"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99388.json"
  },
  "details": "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",
  "modified": "2026-11-19T16:45:30.211034147Z",
  "published": "2026-11-19T14:23:27.698Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1f5c774488fa2dabe6667cb26888aaea39c4ead6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5072f32330c71de91c1a844e7becaee48d743561"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7193241a49c958782ba4b8df06da3734d1e317d2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/956968544ae647aa9a9534b58735f47922c85d44"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99388.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99388"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "smb: smbdirect: fix buffer length underflow in RDMA transfers"
}