In the Linux kernel, the following vulnerability has been resolved:
drm/meson: fix shutdown crash when component not probed
When main component is not probed, by example when the dw-hdmi module is not loaded yet or in probe defer, the following crash appears on shutdown:
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000038 ... pc : mesondrvshutdown+0x24/0x50 lr : platformdrvshutdown+0x20/0x30 ... Call trace: mesondrvshutdown+0x24/0x50 platformdrvshutdown+0x20/0x30 deviceshutdown+0x158/0x360 kernelrestartprepare+0x38/0x48 kernelrestart+0x18/0x68 _dosysreboot+0x224/0x250 _arm64sysreboot+0x24/0x30 ...
Simply check if the priv struct has been allocated before using it.