PT-2023-9697 · Linux+3 · Linux Kernel+3

Jia-Ju Bai

·

Publicado

2023-10-02

·

Atualizado

2025-02-03

·

CVE-2023-52855

CVSS v3.1

5.5

Média

VetorAV: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.5
Description The vulnerability is related to a possible NULL pointer dereference caused by driver concurrency in the Linux kernel's dwc2 component. When the functions dwc2 hcd urb enqueue() and dwc2 hcd urb dequeue() are executed concurrently, the NULL check of urb->hcpriv can be executed before urb->hcpriv = NULL. After urb->hcpriv is NULL, it can be used in the function call to dwc2 hcd urb dequeue(), which can cause a NULL pointer dereference. This issue was found using an experimental static analysis tool that analyzes locking APIs to extract function pairs that can be concurrently executed and identifies possible concurrency bugs.
Recommendations To fix this possible bug, urb->hcpriv = NULL should be executed with holding the lock hsotg->lock. As a temporary workaround, consider disabling the dwc2 hcd urb enqueue() and dwc2 hcd urb dequeue() functions until a patch is available. Restrict access to the dwc2 hcd urb dequeue() function to minimize the risk of exploitation. Avoid using the urb->hcpriv variable in the affected API endpoints until the issue is resolved. Apply the patch that executes urb->hcpriv = NULL with holding the lock hsotg->lock to fix the vulnerability.

Exploit

Correção

NULL Pointer Dereference

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

Enumeração de Fraquezas

Identificadores relacionados

BDU:2024-10197
CVE-2023-52855
OESA-2024-2122
OESA-2024-2126
OESA-2024-2324
OPENSUSE-SU-2024_2189-1
SUSE-SU-2024:2008-1
SUSE-SU-2024:2011-1
SUSE-SU-2024:2019-1
SUSE-SU-2024:2189-1
SUSE-SU-2024:2190-1
SUSE-SU-2024:2360-1
SUSE-SU-2024:2381-1
SUSE-SU-2024:2561-1
SUSE-SU-2024:2571-1
SUSE-SU-2024:2896-1
SUSE-SU-2024:2973-1
SUSE-SU-2025:20008-1
SUSE-SU-2025:20028-1

Produtos afetados

Astra Linux
Linux Kernel
Red Os
Suse