smb: client: reclaim credits for decrypted reads with no matching mid

State
Published
Severity
7.5 High
Published
Nov 19, 2026
Updated
Nov 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linuxc42a6abe3012832a68a371dabe17c2ced97e62ad to before 9a44c39530b3b5f1aed9e7150e0c58f5dccf3700 Affectedc42a6abe3012832a68a371dabe17c2ced97e62ad to before 9b3473e7bc5ec104c37faa7f7c9092914d97f076 Affectedc42a6abe3012832a68a371dabe17c2ced97e62ad to before b3f511aa7f45ff9ab1abc38d133e05b919563aaf Affectedc42a6abe3012832a68a371dabe17c2ced97e62ad to before 78f73985846465a25a7bd1d89904053661f3ca92 Affected
Linux Linux4.11 Affectedbefore 4.11 Not Affected6.12.120 through 6.12.* Not Affected6.18.64 through 6.18.* Not Affected7.3.2 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.