{"id":"CVE-2026-31538","aliases":["CVE-2026-31538"],"related":[],"kind":"vulnerability","state":"published","title":"smb: server: make use of smbdirect_socket.recv_io.credits.available","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nsmb: servidor: hacer uso de smbdirect_socket.recv_io.credits.available\n\nLa lógica de gestionar los créditos de recepción contando los recv_io publicados y los créditos concedidos es propensa a condiciones de carrera.\n\nEsto se debe a que el par podría haber consumido ya un crédito, pero entre la recepción del recv entrante en el hardware y el procesamiento de la finalización en las funciones ’recv_done’ es probable que tengamos una ventana donde concedemos créditos que en realidad no existen.\n\nAsí que es mejor tener un contador dedicado para los créditos disponibles, el cual se incrementará cuando publiquemos nuevos búferes de recepción y se vaciará cuando concedamos los créditos al par.\n\nEsto corrige la regresión que Namjae informó con la versión 6.18.","source":"nvd"}],"published":"2026-04-24T14:30:25.598Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"89b021a72663c4d96d8a8b85272bb42d991a1c6f","fixed":"66c082e3d4651e8629a393a9e182b01eb50fb0a3","status":"affected"},{"type":"git","introduced":"89b021a72663c4d96d8a8b85272bb42d991a1c6f","fixed":"809cbd31aa4f87a1b889532244c9cf30eb022385","status":"affected"},{"type":"git","introduced":"89b021a72663c4d96d8a8b85272bb42d991a1c6f","fixed":"26ad87a2cfb8c1384620d1693a166ed87303046e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","status":"unaffected"},{"type":"semver","introduced":"6.18.11","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.1","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.18","fixed":"6.18.11"},{"status":"affected","introduced":"6.19","fixed":"6.19.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/66c082e3d4651e8629a393a9e182b01eb50fb0a3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/809cbd31aa4f87a1b889532244c9cf30eb022385","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/26ad87a2cfb8c1384620d1693a166ed87303046e","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31538","url":"https://www.cve.org/CVERecord?id=CVE-2026-31538","licence":"CVE Terms of Use","modified":"2026-08-05T12:23:22.947Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31538","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31538","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.473Z","epss":{"score":0.00443,"percentile":0.40245,"date":"2026-12-01T12:00:22.000Z"}}