CVE-2026-98967: cxgb4/ch_ktls: disable softirqs around tid_list erases
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-98967 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.13 with commit 65e302a9bd57b62872040d57eea1201562a7cbb2 and fixed in 6.6.160 with commit 8739f06e3f82cd715f7dd10ab24029ed881efc90 Issue introduced in 5.13 with commit 65e302a9bd57b62872040d57eea1201562a7cbb2 and fixed in 6.12.113 with commit bcf97573d44e277b1744d7f1226f665aa0ccc599 Issue introduced in 5.13 with commit 65e302a9bd57b62872040d57eea1201562a7cbb2 and fixed in 6.18.57 with commit 7110c7f70c59eb7924e79853bcc00e2a026662e6 Issue introduced in 5.13 with commit 65e302a9bd57b62872040d57eea1201562a7cbb2 and fixed in 7.2.11 with commit bea736a2b8c6da5b1078badf1206541b5404250f Issue introduced in 5.13 with commit 65e302a9bd57b62872040d57eea1201562a7cbb2 and fixed in 7.3 with commit 4c9dc0faca98084922caeb689579d338cf3e1c29 Issue introduced in 5.10.42 with commit b96adbf6601d76ee0bdd9bfa5bcdd0cdd5333d78 Issue introduced in 5.12.9 with commit 70c4ead897211b184f36cbeda213f2a3e8153218
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98967
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/8739f06e3f82cd715f7dd10ab24029ed881efc90 https://git.kernel.org/stable/c/bcf97573d44e277b1744d7f1226f665aa0ccc599 https://git.kernel.org/stable/c/7110c7f70c59eb7924e79853bcc00e2a026662e6 https://git.kernel.org/stable/c/bea736a2b8c6da5b1078badf1206541b5404250f https://git.kernel.org/stable/c/4c9dc0faca98084922caeb689579d338cf3e1c29