CVE-2023-52617

PCI: switchtec: Fix stdev_release() crash after surprise hot remove

MEDIUM
4.4
CVSS Score
Published: March 18, 2024 at 10:19 AM UTC
Updated: June 17, 2026 at 06:43 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.4
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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]

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.4.2695.0 ≤ v < 5.10.2105.0 ≤ v < 5.15.1495.0 ≤ v < 5.4.2695.0 ≤ v < 6.1.775.0 ≤ v < 6.6.165.0 ≤ v < 6.7.45.0 ≤ v < 6.85.11 ≤ v < 5.15.1495.16 ≤ v < 6.1.775.5 ≤ v < 5.10.2106.2 ≤ v < 6.6.166.7 ≤ v < 6.7.45.0f7eb7b8a4f72b0d9dea69b09f58185ffab97fd35
Vendor states this is fixed in 0233b836312e39a3c763fb53512b3fa455b473b3 (fixed)
Vendor states this is fixed in 1d83c85922647758c1f1e4806a4c5c3cf591a20a (fixed)
Vendor states this is fixed in 4a5d0528cf19dbf060313dffbe047bc11c90c24c (fixed)
Vendor states this is fixed in d8c293549946ee5078ed0ab77793cec365559355 (fixed)
Vendor states this is fixed in df25461119d987b8c81d232cfe4411e91dcabe66 (fixed)
Vendor states this is fixed in e129c7fa7070fbce57feb0bfc5eaa65eef44b693 (fixed)
Vendor states this is fixed in ff1c7e2fb9e9c3f53715fbe04d3ac47b80be7eb8 (fixed)
Vendor states this is fixed in 5.0 (unaffected)
Vendor states this is fixed in 5.10.210 (unaffected)
Vendor states this is fixed in 5.15.149 (unaffected)
Vendor states this is fixed in 5.4.269 (unaffected)
Vendor states this is fixed in 6.1.77 (unaffected)
Vendor states this is fixed in 6.6.16 (unaffected)
Vendor states this is fixed in 6.7.4 (unaffected)
Vendor states this is fixed in 6.8 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0233b836312e39a3c763fb53512b3fa455b473b3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1d83c85922647758c1f1e4806a4c5c3cf591a20a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4a5d0528cf19dbf060313dffbe047bc11c90c24c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d8c293549946ee5078ed0ab77793cec365559355
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/df25461119d987b8c81d232cfe4411e91dcabe66
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e129c7fa7070fbce57feb0bfc5eaa65eef44b693
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ff1c7e2fb9e9c3f53715fbe04d3ac47b80be7eb8
Mailing ListThird Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

4.4MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
HIGH
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-459

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card