Skip to content

Null pointer dereference in nv-acpi.c #109

Closed

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.

Activity

  1. added
    bug
    on May 12, 2022
  2. added
    Implemented
    on Jul 11, 2022
  3. PAR2020 commented on Jul 12, 2022

    @PAR2020
    Contributor

    Since PRs are closed, will close this issue as well.

  4. added this to the 515.48.07 milestone on Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Implementedbug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions