{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "5fb9b459b3686e366640edd4e62805ef7b4de927"
            },
            {
              "fixed": "e811e60e1cc79923c4388146eb1fa26a7482731e"
            },
            {
              "fixed": "f99996870222b598914a1f49d7375dc23752c237"
            },
            {
              "fixed": "6e3c5052f9686192e178806e017b7377155f4bab"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.18.0"
            },
            {
              "fixed": "6.18.11"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "6.19.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31539.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: smbdirect: introduce smbdirect_socket.recv_io.credits.available\n\nThe logic off managing recv credits by counting posted recv_io and\ngranted credits is racy.\n\nThat's because the peer might already consumed a credit,\nbut between receiving the incoming recv at the hardware\nand processing the completion in the 'recv_done' functions\nwe likely have a window where we grant credits, which\ndon't really exist.\n\nSo we better have a decicated counter for the\navailable credits, which will be incremented\nwhen we posted new recv buffers and drained when\nwe grant the credits to the peer.",
  "id": "CVE-2026-31539",
  "modified": "2026-07-15T01:48:50.291989470Z",
  "published": "2026-04-24T14:30:26.326Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6e3c5052f9686192e178806e017b7377155f4bab"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e811e60e1cc79923c4388146eb1fa26a7482731e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f99996870222b598914a1f49d7375dc23752c237"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31539.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31539"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "smb: smbdirect: introduce smbdirect_socket.recv_io.credits.available"
}