CVE-2023-52617

Medium

In 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]

Package Linux Kernel
Published 2024-03-18
Last modified 2025-04-08
CVSS version 3.1
Patch available
Awaiting data

CVSS 3.1 score

4.4

out of 10
Medium
Attack Vector
Local
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
High
Vector string
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

Weakness type

CWE-459

CVE-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.

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.