smb: client: stop processing a read response after a receive error
NIST has received this entry but not started reviewing it.
In the Linux kernel, the following vulnerability has been resolved: smb: client: stop processing a read response after a receive error cifs_read_iter_from_socket() may call cifs_reconnect() before returning an error. The reconnect path aborts pending mids and invokes their callbacks. The callback can then release the cifs_io_subrequest containing rdata. cifs_readv_receive() nevertheless continues after a negative return and may dereference rdata in cifs_readv_discard(). KASAN reports the resulting UAF: BUG: KASAN: slab-use-after-free in cifs_readv_receive Read of size 4 by task cifsd cifs_readv_receive (fs/smb/client/transport.c:1284) cifs_demultiplex_thread (fs/smb/client/connect.c:1355) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) Freed by task 148: netfs_put_subrequest (fs/netfs/objects.c:267) netfs_read_collection (fs/netfs/read_collect.c:460) netfs_wait_for_in_progress (fs/netfs/misc.c:462) Return the socket error immediately, as this path did before the iterator conversion. This also avoids adding a negative length to total_read.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from d08089f649a0cfb2099c8551ac47eef0cc23fdf2, before d3d007b7f63310fb6f9bb4ed24d74c14ee34b0b6; from d08089f649a0cfb2099c8551ac47eef0cc23fdf2, before af78baeacd731a98531eaa3103bfe03f147cffb7; from d08089f649a0cfb2099c8551ac47eef0cc23fdf2, before ecc327edd96a65ac177379664cc0972d8a23dfa4; from d08089f649a0cfb2099c8551ac47eef0cc23fdf2, before 558cb79cb242ce7ca8b32c4b39412d125879e8f2; from d08089f649a0cfb2099c8551ac47eef0cc23fdf2, before 51efca72345acdbedc4af76782d464bd15ba50ff | d3d007b7f63310fb6f9bb4ed24d74c14ee34b0b6; af78baeacd731a98531eaa3103bfe03f147cffb7; ecc327edd96a65ac177379664cc0972d8a23dfa4; 558cb79cb242ce7ca8b32c4b39412d125879e8f2 |
| Linux Linux | Software | 6.3 | not recorded |
The 7.5 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | None | The attacker does not need an account or password. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | None | No data can be read. |
| Data changed | None | Nothing can be changed. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 3.9 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 3.6 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 5 sources for this flaw, none tagged as a vendor patch.