CVE-2026-99383: smb: client: reclaim credits for decrypted reads with no matching mid
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
smb: client: reclaim credits for decrypted reads with no matching mid
When a decrypted SMB2 READ response carries a MessageId that matches no outstanding request, both the inline receive_encrypted_read() and the offloaded smb2_decrypt_offload() paths drop the frame without accounting the credits the server granted in it. The plaintext unknown-frame path in cifs_demultiplex_thread() already reclaims them with smb2_add_credits_from_hdr(), so encrypted reads leak credits that the plaintext path would not.
This also happens for legitimate frames - e.g. a reply that arrives after the client has timed out and dropped the mid - so over a long-lived connection the client's credit count drifts down and can eventually starve it of the ability to issue requests. The frame is AEAD-authenticated, so the granted credits in the decrypted header come from the real server and are safe to apply.
Reclaim the credits from the decrypted header before dropping the frame, and export smb2_add_credits_from_hdr() so the SMB2 receive paths can use it.
The Linux kernel CVE team has assigned CVE-2026-99383 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.11 with commit c42a6abe3012832a68a371dabe17c2ced97e62ad and fixed in 6.18.64 with commit 9b3473e7bc5ec104c37faa7f7c9092914d97f076 Issue introduced in 4.11 with commit c42a6abe3012832a68a371dabe17c2ced97e62ad and fixed in 7.3.2 with commit b3f511aa7f45ff9ab1abc38d133e05b919563aaf Issue introduced in 4.11 with commit c42a6abe3012832a68a371dabe17c2ced97e62ad and fixed in 7.4-rc1 with commit 78f73985846465a25a7bd1d89904053661f3ca92
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99383
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/smb/client/cifsproto.h
fs/smb/client/connect.c
fs/smb/client/smb2ops.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/9b3473e7bc5ec104c37faa7f7c9092914d97f076 https://git.kernel.org/stable/c/b3f511aa7f45ff9ab1abc38d133e05b919563aaf https://git.kernel.org/stable/c/78f73985846465a25a7bd1d89904053661f3ca92