{"id":"CVE-2026-99383","state":"PUBLISHED","title":"smb: client: reclaim credits for decrypted reads with no matching mid","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: reclaim credits for decrypted reads with no matching mid\n\nWhen a decrypted SMB2 READ response carries a MessageId that matches no\noutstanding request, both the inline receive_encrypted_read() and the\noffloaded smb2_decrypt_offload() paths drop the frame without accounting\nthe credits the server granted in it.  The plaintext unknown-frame path in\ncifs_demultiplex_thread() already reclaims them with\nsmb2_add_credits_from_hdr(), so encrypted reads leak credits that the\nplaintext path would not.\n\nThis also happens for legitimate frames - e.g. a reply that arrives after\nthe client has timed out and dropped the mid - so over a long-lived\nconnection the client's credit count drifts down and can eventually starve\nit of the ability to issue requests.  The frame is AEAD-authenticated, so\nthe granted credits in the decrypted header come from the real server and\nare safe to apply.\n\nReclaim the credits from the decrypted header before dropping the frame,\nand export smb2_add_credits_from_hdr() so the SMB2 receive paths can use it.","publishedAt":"2026-11-19T14:23:23.299Z","updatedAt":"2026-11-22T11:07:57.952Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c42a6abe3012832a68a371dabe17c2ced97e62ad","status":"affected","lessThan":"9b3473e7bc5ec104c37faa7f7c9092914d97f076","versionType":"git"},{"version":"c42a6abe3012832a68a371dabe17c2ced97e62ad","status":"affected","lessThan":"b3f511aa7f45ff9ab1abc38d133e05b919563aaf","versionType":"git"},{"version":"c42a6abe3012832a68a371dabe17c2ced97e62ad","status":"affected","lessThan":"78f73985846465a25a7bd1d89904053661f3ca92","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsproto.h","fs/smb/client/connect.c","fs/smb/client/smb2ops.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.11","versionType":"semver"},{"version":"6.18.64","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsproto.h","fs/smb/client/connect.c","fs/smb/client/smb2ops.c"]}],"references":["https://git.kernel.org/stable/c/9b3473e7bc5ec104c37faa7f7c9092914d97f076","https://git.kernel.org/stable/c/b3f511aa7f45ff9ab1abc38d133e05b919563aaf","https://git.kernel.org/stable/c/78f73985846465a25a7bd1d89904053661f3ca92"],"weaknesses":[],"ingestedAt":"2026-11-22T11:18:06.032Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99383.json","commit":"247cc9beefd85903834df0592e88a44f4d599223","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99383","state":"PUBLISHED","datePublished":"2026-11-19T14:23:23.299Z","dateUpdated":"2026-11-22T11:07:57.952Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.411Z"},"containers":{"cna":{"title":"smb: client: reclaim credits for decrypted reads with no matching mid","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: reclaim credits for decrypted reads with no matching mid\n\nWhen a decrypted SMB2 READ response carries a MessageId that matches no\noutstanding request, both the inline receive_encrypted_read() and the\noffloaded smb2_decrypt_offload() paths drop the frame without accounting\nthe credits the server granted in it.  The plaintext unknown-frame path in\ncifs_demultiplex_thread() already reclaims them with\nsmb2_add_credits_from_hdr(), so encrypted reads leak credits that the\nplaintext path would not.\n\nThis also happens for legitimate frames - e.g. a reply that arrives after\nthe client has timed out and dropped the mid - so over a long-lived\nconnection the client's credit count drifts down and can eventually starve\nit of the ability to issue requests.  The frame is AEAD-authenticated, so\nthe granted credits in the decrypted header come from the real server and\nare safe to apply.\n\nReclaim the credits from the decrypted header before dropping the frame,\nand export smb2_add_credits_from_hdr() so the SMB2 receive paths can use it."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c42a6abe3012832a68a371dabe17c2ced97e62ad","status":"affected","lessThan":"9b3473e7bc5ec104c37faa7f7c9092914d97f076","versionType":"git"},{"version":"c42a6abe3012832a68a371dabe17c2ced97e62ad","status":"affected","lessThan":"b3f511aa7f45ff9ab1abc38d133e05b919563aaf","versionType":"git"},{"version":"c42a6abe3012832a68a371dabe17c2ced97e62ad","status":"affected","lessThan":"78f73985846465a25a7bd1d89904053661f3ca92","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsproto.h","fs/smb/client/connect.c","fs/smb/client/smb2ops.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.11","versionType":"semver"},{"version":"6.18.64","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsproto.h","fs/smb/client/connect.c","fs/smb/client/smb2ops.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9b3473e7bc5ec104c37faa7f7c9092914d97f076"},{"url":"https://git.kernel.org/stable/c/b3f511aa7f45ff9ab1abc38d133e05b919563aaf"},{"url":"https://git.kernel.org/stable/c/78f73985846465a25a7bd1d89904053661f3ca92"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - cifs_demultiplex_thread reads the server SMB2 transform PDU from the TCP socket, and smb3_receive_transform hands frames larger than CIFSMaxBufSize to receive_encrypted_read. A decrypted smb2_hdr.MessageId that misses smb2_find_mid drops the CreditRequest grant on that wire response.\nAC:L - The server sets SMB2_SESSION_FLAG_ENCRYPT_DATA or SHI1005_FLAGS_ENCRYPT_DATA so smb3_encryption_required is true, then sends one transform READ whose MessageId is not a MID_REQUEST_SUBMITTED entry on pending_mid_q. decrypt_raw_data succeeds with the server's session key and the missed credit update is immediate.\nPR:N - receive_encrypted_read and smb2_decrypt_offload run in cifsd after decrypt_raw_data and never consult the local task's uid or capabilities. The peer that holds the SMB3 session keys is the server the client connected to.\nUI:N - On an established session the server alone writes the encrypted SMB2 READ response; cifs_demultiplex_thread processes that PDU from the socket without a further local mount or read.\nS:U - The lost accounting is TCP_Server_Info.credits for the SMB session whose socket received the frame, the same kernel scope as cifsd.\nC:N - The NULL-mid path in receive_encrypted_read and smb2_decrypt_offload only logs and frees the decrypted buffer; READ payload is not copied to a caller or to any other kernel object.\nI:N - The defect is skipping smb2_add_credits_from_hdr, so smb2_hdr.CreditRequest is not added to server->credits. That path stores nothing into file data or other kernel objects.\nA:H - smb2_readv_callback zeroes rdata->credits and replenishes server->credits only from smb2_hdr.CreditRequest. Dropping that grant in receive_encrypted_read or smb2_decrypt_offload shrinks the pool until wait_for_free_request sleeps in wait_for_free_credits with timeout -1 and new SMB commands cannot be sent."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-22T11:07:57.952Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}