Linux
smb: client: protect tc_count increment in smb2_find_smb_sess_tcon_unlocked()
In the Linux kernel, the following vulnerability has been resolved: smb: client: protect tc_count increment in smb2_find_smb_sess_tcon_unlocked() Commit 96c4af418586 ("cifs: Fix locking usage for tcon fields") refactored cifs code to change cifs_tcp_ses_lock for tc_lock around tc_count changes. There was missing lock around tc_count increment inside smb2_find_smb_sess_tcon_unlocked().
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 92d197ef7e9bb4994dae2bb17c2f19fa09d219a2, < 7585d4242f59185b084957fa077396e53dbf7c24
- >= 953953abb66e52c224057ab91e404284fefeab62, < 7df1df6f40c0720d30206aa35c0343b962350e0d
- >= 601dd3b79769b38d30b693c40afdb2a4b7edf9d0, < 13fb413ae22a37c69341918a6d651d19a9b0b9b7
- >= 3969db6b22e3d90d8c5f22ac1a7fe0350a94c136, < bf4ebdb19ff9b3cdf992b50715fe61633327416a
- >= 96c4af418586ee9a6aab61738644366426e05316, < e374f4e496fef8168784f93a4477d67be34485fd
- >= 96c4af418586ee9a6aab61738644366426e05316, < 4d8690dace005a38e6dbde9ecce2da3ad85c7c41
- 8c59eeeeffa1524ef57e173a89a1a3ff539888d5
- >= 6.6.128, < 6.6.142
- >= 6.12.75, < 6.12.92
- >= 6.18.16, < 6.18.34
- >= 6.19.6, < 6.20
Fixed in 7585d4242f59185b084957fa077396e53dbf7c24, 7df1df6f40c0720d30206aa35c0343b962350e0d, 13fb413ae22a37c69341918a6d651d19a9b0b9b7, bf4ebdb19ff9b3cdf992b50715fe61633327416a, e374f4e496fef8168784f93a4477d67be34485fd, 4d8690dace005a38e6dbde9ecce2da3ad85c7c41, 6.6.142, 6.12.92, 6.18.34, 6.20
- 7.0
Fixed in 0, 6.6.142, 6.12.92, 6.18.34, 7.0.11, 7.1
Mitigation
Upgrade Linux to 7585d4242f59185b084957fa077396e53dbf7c24 or 7df1df6f40c0720d30206aa35c0343b962350e0d or 13fb413ae22a37c69341918a6d651d19a9b0b9b7 or bf4ebdb19ff9b3cdf992b50715fe61633327416a or e374f4e496fef8168784f93a4477d67be34485fd or 4d8690dace005a38e6dbde9ecce2da3ad85c7c41 or 6.6.142 or 6.12.92 or 6.18.34 or 6.20 or later.
Upgrade Linux to 0 or 6.6.142 or 6.12.92 or 6.18.34 or 7.0.11 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.