PT-2023-8793

CVE-2023-52570

·

Publicado

2023-09-22

·

Atualizado

2024-12-11

Descrição por

CVSS 3.1
5.5
Média
MétricasAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 6.6.0-rc2+
Description The issue is related to a null-ptr-deref bug in the mdev unregister parent() function. When probing mdpy.ko, if kstrdup() of create dir() fails, it will return 0 and probe successfully. However, when rmmod mdpy.ko is called, mdpy dev exit() will call mdev unregister parent(), which may cause a null-ptr-deref when traversing uninitialized parent->types[i] in parent remove sysfs files(). This can lead to a general protection fault.
To fix the issue, the code should return the error code and call kset unregister() when mdev type add() fails.
Recommendations To resolve the issue, update the Linux kernel to a version that includes the fix for the null-ptr-deref bug in mdev unregister parent(). As a temporary workaround, consider disabling the mdev unregister parent() function until a patch is available.
Explorabilidade
Exploit
Correção
Impactos
Pesquisadores
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾