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.
References
The following references provide additional information about CVE-2023-52617 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
Mailing List Third Party Advisory
-
PatchKernel patch commithttps://git.kernel.org/stable/c/0233b836312e39a3c763fb53512b3fa455b473b3
-
PatchKernel patch commithttps://git.kernel.org/stable/c/1d83c85922647758c1f1e4806a4c5c3cf591a20a
-
PatchKernel patch commithttps://git.kernel.org/stable/c/4a5d0528cf19dbf060313dffbe047bc11c90c24c
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 . 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?
No patch is currently available for CVE-2023-52617. Monitor the NIST NVD and your Linux distribution's security advisories for updates.
-
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.