Linux
cifs: Fix locking usage for tcon fields
In the Linux kernel, the following vulnerability has been resolved: cifs: Fix locking usage for tcon fields We used to use the cifs_tcp_ses_lock to protect a lot of objects that are not just the server, ses or tcon lists. We later introduced srv_lock, ses_lock and tc_lock to protect fields within the corresponding structs. This was done to provide a more granular protection and avoid unnecessary serialization. There were still a couple of uses of cifs_tcp_ses_lock to provide tcon fields. In this patch, I've replaced them with tc_lock.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, < 92d197ef7e9bb4994dae2bb17c2f19fa09d219a2
- >= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, < 953953abb66e52c224057ab91e404284fefeab62
- >= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, < 601dd3b79769b38d30b693c40afdb2a4b7edf9d0
- >= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, < 3969db6b22e3d90d8c5f22ac1a7fe0350a94c136
- >= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, < 8c59eeeeffa1524ef57e173a89a1a3ff539888d5
- >= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, < 96c4af418586ee9a6aab61738644366426e05316
Fixed in 92d197ef7e9bb4994dae2bb17c2f19fa09d219a2, 953953abb66e52c224057ab91e404284fefeab62, 601dd3b79769b38d30b693c40afdb2a4b7edf9d0, 3969db6b22e3d90d8c5f22ac1a7fe0350a94c136, 8c59eeeeffa1524ef57e173a89a1a3ff539888d5, 96c4af418586ee9a6aab61738644366426e05316
- 6.0
Fixed in 0, 6.1.191, 6.6.128, 6.12.75, 6.18.16, 6.19.6, 7.0
Mitigation
Upgrade Linux to 92d197ef7e9bb4994dae2bb17c2f19fa09d219a2 or 953953abb66e52c224057ab91e404284fefeab62 or 601dd3b79769b38d30b693c40afdb2a4b7edf9d0 or 3969db6b22e3d90d8c5f22ac1a7fe0350a94c136 or 8c59eeeeffa1524ef57e173a89a1a3ff539888d5 or 96c4af418586ee9a6aab61738644366426e05316 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.128 or 6.12.75 or 6.18.16 or 6.19.6 or 7.0 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.