PT-2023-9639 · Linux+5 · Linux Kernel+5

Daniel Stodden

·

Publicado

2023-11-22

·

Atualizado

2024-11-04

·

CVE-2023-52617

CVSS v3.1

4.4

Média

VetorAV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The issue is related to the stdev release() function in the Linux kernel, specifically in the drivers/pci/switch/switchtec.c component. It is caused by errors in resource release, which can lead to a crash after a surprise hot removal of a PCI device. When stdev->cdev is held open and a hot removal occurs, the call to stdev release() happens at a point after switchtec pci remove(), leading to issues because the devm cleanup has already removed the stdev->mmio mrpc mapping and the stdev->pdev reference was not counted. This results in a fatal page fault in DMA mode when iowrite32() is called in stdev release(), and if reached, dma free coherent() would pass a stale pointer. The fix involves moving the MRPC DMA shutdown into switchtec pci remove() after stdev kill() and making the counting of the stdev->pdev reference optional to prevent future accidents.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Improper Resource Release

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

BDU:2024-09032
CVE-2023-52617
DLA-3842-1
DSA-5658-1
DSA-5681-1
OESA-2024-1498
OESA-2024-1499
OESA-2024-1500
OESA-2024-1501
OPENSUSE-SU-2024_1322-1
OPENSUSE-SU-2024_1322-2
OPENSUSE-SU-2024_1332-1
OPENSUSE-SU-2024_1332-2
OPENSUSE-SU-2024_1466-1
OPENSUSE-SU-2024_1480-1
OPENSUSE-SU-2024_1490-1
SUSE-SU-2024:1466-1
SUSE-SU-2024:1480-1
SUSE-SU-2024:1490-1
USN-6765-1
USN-6766-1
USN-6766-2
USN-6766-3
USN-6767-1
USN-6767-2
USN-6795-1
USN-6818-1
USN-6818-2
USN-6818-3
USN-6818-4
USN-6819-1
USN-6819-2
USN-6819-3
USN-6819-4
USN-6828-1

Produtos afetados

Astra Linux
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu