CVE-2023-53488: IB/hfi1: Fix possible panic during hotplug remove
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
IB/hfi1: Fix possible panic during hotplug remove
During hotplug remove it is possible that the update counters work might be pending, and may run after memory has been freed. Cancel the update counters work before freeing memory.
The Linux kernel CVE team has assigned CVE-2023-53488 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.3 with commit 7724105686e718ac476a6ad3304fea2fbcfcffde and fixed in 4.14.323 with commit 5e72f33ddfdb69cb21c1b59d31bbd3498d31b14a Issue introduced in 4.3 with commit 7724105686e718ac476a6ad3304fea2fbcfcffde and fixed in 4.19.292 with commit bfd727ad8411995218f336ead9f2becfde7f3a89 Issue introduced in 4.3 with commit 7724105686e718ac476a6ad3304fea2fbcfcffde and fixed in 5.4.254 with commit c2145b18740c7e697748e4005ce93a5c683c86a8 Issue introduced in 4.3 with commit 7724105686e718ac476a6ad3304fea2fbcfcffde and fixed in 5.10.191 with commit 33c677d1e087e437c7dcaad8d73402cf6add282e Issue introduced in 4.3 with commit 7724105686e718ac476a6ad3304fea2fbcfcffde and fixed in 5.15.127 with commit 918c1e6843b7e81d0e5cf7994f41f28dc34c98b0 Issue introduced in 4.3 with commit 7724105686e718ac476a6ad3304fea2fbcfcffde and fixed in 6.1.46 with commit ac6640f4193d0f5b44269a7f08372909f9a18e5c Issue introduced in 4.3 with commit 7724105686e718ac476a6ad3304fea2fbcfcffde and fixed in 6.4.11 with commit d32a5e9b825d40c08a43dfbcba007159fed41a5d Issue introduced in 4.3 with commit 7724105686e718ac476a6ad3304fea2fbcfcffde and fixed in 6.5 with commit 4fdfaef71fced490835145631a795497646f4555
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-2023-53488
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/infiniband/hw/hfi1/chip.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/5e72f33ddfdb69cb21c1b59d31bbd3498d31b14a https://git.kernel.org/stable/c/bfd727ad8411995218f336ead9f2becfde7f3a89 https://git.kernel.org/stable/c/c2145b18740c7e697748e4005ce93a5c683c86a8 https://git.kernel.org/stable/c/33c677d1e087e437c7dcaad8d73402cf6add282e https://git.kernel.org/stable/c/918c1e6843b7e81d0e5cf7994f41f28dc34c98b0 https://git.kernel.org/stable/c/ac6640f4193d0f5b44269a7f08372909f9a18e5c https://git.kernel.org/stable/c/d32a5e9b825d40c08a43dfbcba007159fed41a5d https://git.kernel.org/stable/c/4fdfaef71fced490835145631a795497646f4555