{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99295","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.406Z","datePublished":"2026-11-16T09:59:22.911Z","dateUpdated":"2026-11-19T13:52:18.020Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-19T13:52:18.020Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: stop processing a read response after a receive error\n\ncifs_read_iter_from_socket() may call cifs_reconnect() before returning an\nerror.  The reconnect path aborts pending mids and invokes their callbacks.\nThe callback can then release the cifs_io_subrequest containing rdata.\n\ncifs_readv_receive() nevertheless continues after a negative return and may\ndereference rdata in cifs_readv_discard().  KASAN reports the resulting\nUAF:\n\n  BUG: KASAN: slab-use-after-free in cifs_readv_receive\n  Read of size 4 by task cifsd\n  cifs_readv_receive (fs/smb/client/transport.c:1284)\n  cifs_demultiplex_thread (fs/smb/client/connect.c:1355)\n  kthread (kernel/kthread.c:436)\n  ret_from_fork (arch/x86/kernel/process.c:158)\n\n  Freed by task 148:\n  netfs_put_subrequest (fs/netfs/objects.c:267)\n  netfs_read_collection (fs/netfs/read_collect.c:460)\n  netfs_wait_for_in_progress (fs/netfs/misc.c:462)\n\nReturn the socket error immediately, as this path did before the iterator\nconversion.  This also avoids adding a negative length to total_read."}],"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 an SMB2 READ response from the server TCP socket and calls cifs_readv_receive. The server fills smb2_read_rsp.DataOffset and DataLength, then closes the connection so sock_recvmsg inside cifs_read_iter_from_socket fails. Those response bytes are the attacker-controlled input, and SMB over TCP is a routable transport.\nAC:L - The server chooses DataOffset between 103 and 255 so that, after cifs_read_iter_from_socket returns -ECONNABORTED, the unsigned server->total_read += length stays below pdu_size and cifs_readv_receive calls cifs_readv_discard. cifs_reconnect invokes smb2_readv_callback and blocks in TCP connect before that return, so netfs_wait_for_in_progress frees rdata first. The peer produces every step.\nPR:N - The attacker is the SMB server. cifs_demultiplex_thread calls cifs_readv_receive on the READ response with no check of a client-side credential; session setup authenticated the client to the server, not the server to the client. No capability on the victim is required.\nUI:N - cifs_issue_read already has an SMB2 READ in flight for normal file I/O or readahead on the mounted share. The server answers that request and drops the socket; no further human action is required to reach cifs_readv_receive.\nS:U - The use-after-free is in the same client kernel that owns the mount and cifsd. It does not cross a guest/host, IOMMU, or other security boundary.\nC:N - The dangling use is a 4-byte read of cifs_io_subrequest.result in cifs_readv_discard, passed only as dequeue_mid's malformed flag. That value is not copied to userspace or written back to the socket, and mid_execute_callback has already cleared mid->callback so the freed object is not pointer-chased.\nI:N - cifs_readv_discard does not store through the freed rdata pointer. It may set mid->mid_state on the mid still referenced by cifsd, and __release_mid then frees that mid. smb2_readv_callback cannot run a second time because mid->callback is already NULL.\nA:H - KASAN reports a slab use-after-free in cifsd at the rdata->result read. cifs_discard_remaining_data then blocks in sock_recvmsg on the just-reconnected socket, retrying the 7-second rcvtimeo until server_unresponsive (three echo intervals) calls cifs_reconnect again, so the only demultiplex thread stops servicing the session and the server can repeat it."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/transport.c"],"versions":[{"version":"d08089f649a0cfb2099c8551ac47eef0cc23fdf2","lessThan":"af78baeacd731a98531eaa3103bfe03f147cffb7","status":"affected","versionType":"git"},{"version":"d08089f649a0cfb2099c8551ac47eef0cc23fdf2","lessThan":"ecc327edd96a65ac177379664cc0972d8a23dfa4","status":"affected","versionType":"git"},{"version":"d08089f649a0cfb2099c8551ac47eef0cc23fdf2","lessThan":"558cb79cb242ce7ca8b32c4b39412d125879e8f2","status":"affected","versionType":"git"},{"version":"d08089f649a0cfb2099c8551ac47eef0cc23fdf2","lessThan":"51efca72345acdbedc4af76782d464bd15ba50ff","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/transport.c"],"versions":[{"version":"6.3","status":"affected"},{"version":"0","lessThan":"6.3","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/af78baeacd731a98531eaa3103bfe03f147cffb7"},{"url":"https://git.kernel.org/stable/c/ecc327edd96a65ac177379664cc0972d8a23dfa4"},{"url":"https://git.kernel.org/stable/c/558cb79cb242ce7ca8b32c4b39412d125879e8f2"},{"url":"https://git.kernel.org/stable/c/51efca72345acdbedc4af76782d464bd15ba50ff"}],"title":"smb: client: stop processing a read response after a receive error","x_generator":{"engine":"bippy-1.2.0"}}}}