Linux kernel deadlock in cxgb4 kTLS connection cleanup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 65e302a9bd57b62872040d57eea1201562a7cbb2 · < 7110c7f70c59eb7924e79853bcc00e2a026662e6| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
cxgb4/ch_ktls: disable softirqs around tid_list erases
chcr_ktls_cpl_act_open_rpl() inserts into tid_list from the receive path using xa_insert_bh(). The array is shared by the adapter's connections and initialized with XA_FLAGS_LOCK_BH. However, chcr_ktls_dev_del() and the chcr_ktls_dev_add() error path use xa_erase(), which takes the XArray lock without disabling softirqs.
When cleanup runs with softirqs enabled, a receive softirq for another connection on the same CPU can interrupt the erase and spin on the lock held by the interrupted task. Use xa_erase_bh() at both sites to match the insertion path.
From the CVE record · Linux
The cxgb4/ch_ktls driver can deadlock when connection cleanup is interrupted by a receive softirq for another connection on the same CPU. The input does not specify an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with cxgb4/ch_ktls should check their versions; affected versions are not specified.