{
  "id": "CVE-2026-31538",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31538",
  "published_at": "2026-04-24T14:30:25.598Z",
  "title": "smb: server: make use of smbdirect_socket.recv_io.credits.available",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: server: make use of 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.\n\nThis fixes regression Namjae reported with\nthe 6.18 release.",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 89b021a72663c4d96d8a8b85272bb42d991a1c6f, \u003c 66c082e3d4651e8629a393a9e182b01eb50fb0a3",
          "\u003e= 89b021a72663c4d96d8a8b85272bb42d991a1c6f, \u003c 809cbd31aa4f87a1b889532244c9cf30eb022385",
          "\u003e= 89b021a72663c4d96d8a8b85272bb42d991a1c6f, \u003c 26ad87a2cfb8c1384620d1693a166ed87303046e"
        ],
        "fixed_in": [
          "66c082e3d4651e8629a393a9e182b01eb50fb0a3",
          "809cbd31aa4f87a1b889532244c9cf30eb022385",
          "26ad87a2cfb8c1384620d1693a166ed87303046e"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.18"
        ],
        "fixed_in": [
          "0",
          "6.18.11",
          "6.19.1",
          "7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 66c082e3d4651e8629a393a9e182b01eb50fb0a3 or 809cbd31aa4f87a1b889532244c9cf30eb022385 or 26ad87a2cfb8c1384620d1693a166ed87303046e or later.",
      "Upgrade Linux to 0 or 6.18.11 or 6.19.1 or 7.0 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
