Skip to content

Null pointer dereference in nv-acpi.c #109

@tallossos

Description

@tallossos

NVIDIA Driver Version
Git

void NV_API_CALL nv_acpi_methods_uninit(void)
{
struct acpi_device *device = NULL;

#if defined(NV_ACPI_BUS_GET_DEVICE_PRESENT)
acpi_bus_get_device(nvif_parent_gpu_handle, &device);
nv_uninstall_notifier(device->driver_data, nv_acpi_event);
#endif
device->driver_data = NULL;
nvif_parent_gpu_handle = NULL;
return;
There isn't any validation on the return value from acpi_bus_get_device unlike other places where acpi_bus_get_device is being used.
device might be null when dereferencing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ImplementedFixed, in test prior to release integrationbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions