Description
In the Linux kernel, the following vulnerability has been resolved: smb: client: Fix use-after-free in cifs_try_adding_channels() cifs_try_adding_channels() takes a temporary reference to an interface before dropping iface_lock. If cifs_ses_add_channel() fails, it drops that reference and then increments iface->weight_fulfilled. A concurrent interface list refresh can remove the list reference while channel creation is in progress. In that case, the failure-path kref_put() releases the last reference and frees iface. Updating weight_fulfilled afterward then accesses freed memory. Increment weight_fulfilled before dropping the temporary reference, keeping iface alive for the final access.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
cbc53148cc0946b72d62a3c53870cb22ce4ec284 to < 64d7584e62ac8cdc750455c5fdc6008fc2de4f06affectedcff97d683a083b862a8bb24309e0f4d2d928128a to < c292d4686f717c03e5022fc4ae7c782f39a94915affected6aac002bcfd554aff6d3ebb55e1660d078d70ab0 to < 47dfac48bce7198ad4f1a388fc8c9491f878ac3baffected6aac002bcfd554aff6d3ebb55e1660d078d70ab0 to < 1ffacbadc14530e55b8d86f7b917524f6a0fb891affected6aac002bcfd554aff6d3ebb55e1660d078d70ab0 to < 1305eadc6a7d78a8d0a52eee29ddd2d9e8a27805affected6aac002bcfd554aff6d3ebb55e1660d078d70ab0 to < 4986410316b1ae0e63c6ce418e4eb196723626e7affected22a6c5b3425f327e7f4c3606a72277dce82c7d83affected6.1.78 to < 6.1.183affected6.6.17 to < 6.6.152affected6.7.5 to < 6.8affected
Linux Linux
Default version status: affected
6.8affected0 to < 6.8unaffected6.1.183 to ≤ 6.1.*unaffected6.6.152 to ≤ 6.6.*unaffected6.12.104 to ≤ 6.12.*unaffected6.18.45 to ≤ 6.18.*unaffected7.1.9 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/64d7584e62ac8cdc750455c5fdc6008fc2de4f06 ↗
- https://git.kernel.org/stable/c/c292d4686f717c03e5022fc4ae7c782f39a94915 ↗
- https://git.kernel.org/stable/c/47dfac48bce7198ad4f1a388fc8c9491f878ac3b ↗
- https://git.kernel.org/stable/c/1ffacbadc14530e55b8d86f7b917524f6a0fb891 ↗
- https://git.kernel.org/stable/c/1305eadc6a7d78a8d0a52eee29ddd2d9e8a27805 ↗
- https://git.kernel.org/stable/c/4986410316b1ae0e63c6ce418e4eb196723626e7 ↗