CVE-2026-31538

smb: server: make use of smbdirect_socket.recv_io.credits.available

Published Apr 24, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

smb: server: make use of smbdirect_socket.recv_io.credits.available

The logic off managing recv credits by counting posted recv_io and
granted credits is racy.

That's because the peer might already consumed a credit,
but between receiving the incoming recv at the hardware
and processing the completion in the 'recv_done' functions
we likely have a window where we grant credits, which
don't really exist.

So we better have a decicated counter for the
available credits, which will be incremented
when we posted new recv buffers and drained when
we grant the credits to the peer.

This fixes regression Namjae reported with
the 6.18 release.

Analysis

AI-generated

Technical impact

The vulnerability arises from a race condition in the Linux kernel’s SMB server when managing receive credits. The counter that tracks posted receive buffers and granted credits is not isolated, so a peer could consume a credit while the kernel is still processing the previous receive. During the brief window where the kernel grants additional credits before the initial grant has been fully accounted for, the available credit count can temporarily exceed the number of actually posted buffers. This inconsistency may lead the SMB server to believe it has more credits than it actually does, which can result in the service using more resources than intended and potentially causing a denial of service.

Affected Systems

The issue is present in the SMB server code of the Linux kernel itself; it is not confined to a specific distribution. All kernel releases that include the current SMB implementation before the patch – including those preceding version 6.18 – are affected unless the system’s kernel has been upgraded to a version that incorporates the indicated fix. The vulnerability affects all architectures supported by the Linux kernel’s SMB stack.

Risk and Exploitability

The CVSS score of 7.5 places this flaw in the high severity range. An EPSS score of below 1 % indicates that the probability of real‑world exploitation is currently low. The flaw can be triggered via normal SMB traffic from any network host that can reach the SMB server provided by the kernel. The likely attack vector is a remote SMB request, inferred from the description that the vulnerability is activated by SMB traffic. As it is not listed in the CISA KEV catalog, no large‑scale active exploitation is known. However, the potential for denial of service warrants prompt attention.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a release that includes the SMB receive‑credit race condition fix
  • Disable SMB1 and other legacy SMB protocols to reduce exposure
  • Configure firewall or network segmentation to limit SMB traffic to trusted hosts or internal network

Generated by OpenCVE AI on April 28, 2026 at 23:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses NVD-CWE-Other
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: smb: server: make use of smbdirect_socket.recv_io.credits.available The logic off managing recv credits by counting posted recv_io and granted credits is racy. That's because the peer might already consumed a credit, but between receiving the incoming recv at the hardware and processing the completion in the 'recv_done' functions we likely have a window where we grant credits, which don't really exist. So we better have a decicated counter for the available credits, which will be incremented when we posted new recv buffers and drained when we grant the credits to the peer. This fixes regression Namjae reported with the 6.18 release.
Title smb: server: make use of smbdirect_socket.recv_io.credits.available
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 5, 2026, 12:23 PM
Reserved
Mar 9, 2026, 3:48 PM
Status
Analyzed
Published
Apr 24, 2026, 3:16 PM
Modified
Nov 11, 2026, 11:10 PM
Severity
Public date
Apr 24, 2026, 12:00 AM