{"id":"CVE-2026-31538","published":"2026-04-24T14:30:25Z","modified":"2026-08-05T12:23:22Z","title":"smb: server: make use of smbdirect_socket.recv_io.credits.available","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00633,"percentile":0.44839,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/66c082e3d4651e8629a393a9e182b01eb50fb0a3","tags":[]},{"url":"https://git.kernel.org/stable/c/809cbd31aa4f87a1b889532244c9cf30eb022385","tags":[]},{"url":"https://git.kernel.org/stable/c/26ad87a2cfb8c1384620d1693a166ed87303046e","tags":[]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":8.97},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 89b021a72663c4d96d8a8b85272bb42d991a1c6f, < 66c082e3d4651e8629a393a9e182b01eb50fb0a3",">= 89b021a72663c4d96d8a8b85272bb42d991a1c6f, < 809cbd31aa4f87a1b889532244c9cf30eb022385",">= 89b021a72663c4d96d8a8b85272bb42d991a1c6f, < 26ad87a2cfb8c1384620d1693a166ed87303046e"]},{"vendor":"Linux","product":"Linux","versions":["6.18"]}],"euvd":{"id":"EUVD-2026-25431","exploited":false,"provenance":"source"}}