CVE-2023-52617
MediumIn the Linux kernel, the following vulnerability has been resolved: PCI: switchtec: Fix stdev_release() crash after surprise hot remove A PCI device hot removal may occur while stdev->cdev is held open. The call to stdev_release() then happens during close or exit, at a point way past switchtec_pci_remove(). Otherwise the last ref would vanish with the trailing put_device(), just before return. At that later point in time, the devm cleanup has already removed the stdev->mmio_mrpc mapping. Also, the stdev->pdev reference was not a counted one. Therefore, in DMA mode, the iowrite32() in stdev_release() will cause a fatal page fault, and the subsequent dma_free_coherent(), if reached, would pass a stale &stdev->pdev->dev pointer. Fix by moving MRPC DMA shutdown into switchtec_pci_remove(), after stdev_kill(). Counting the stdev->pdev ref is now optional, but may prevent future accidents. Reproducible via the script at https://lore.kernel.org/r/[email protected]
CVSS 3.1 score
4.4
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
Weakness type
CWE-459CVE-2023-52617 is classified as CWE-459
See CWE-459 on MITRE CWE for full details on this weakness type.
Affected versions
Linux kernel versions
5.0
and later are affected. Fixed in
5.4.269,
5.10.210,
5.15.149,
6.1.77,
6.6.16,
6.7.4,
6.8
and their respective stable series.
References
8 total-
Patch
-
Patch
-
Patch
-
Patch
-
Patch
Frequently asked questions
-
What is CVE-2023-52617?
CVE-2023-52617 is a Medium severity Linux kernel vulnerability with a CVSS score of 4.4 out of 10 . It affects Linux kernel versions from 5.0 onward and has been patched in 5.4.269, 5.10.210, 5.15.149 and others. CVE-2023-52617 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2023-52617?
CVE-2023-52617 has a CVSS score of 4.4 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2023-52617?
Yes. CVE-2023-52617 has been patched. Fixed versions include 5.4.269, 5.10.210, 5.15.149 and others. If you are running Linux kernel 5.0 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2023-52617 actively exploited?
No. CVE-2023-52617 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.