In the Linux kernel, the following vulnerability has been resolved: drm/vc4: hvs/v3d: Fix null dereference in unbind The hvs and v3d drivers use dev_get_drvdata(master) in their unbind functions. Since the vc4-drm gets removed before its dependent drivers (vc4_hvs/vc4_v3d) the vc4_hvs_unbind/vc4_v3d_unbind functions try to get drvdata of its master and fails with a null dereference error. Use the data pointer passed to the unbind functions directly instead of dev_get_drvdata(master). This avoids using potentially freed memory.
https://git.kernel.org/stable/c/8f62aae059e06746a18a00af27179c3c0f17f4c7
https://git.kernel.org/stable/c/7dc3680b7ffe01add3e9299fde8471d2dd53a8ae
https://git.kernel.org/stable/c/708688ec31ac6b35103ba364dc300a09930079d4
https://git.kernel.org/stable/c/261f0a3f0ac03248284f5116d3258f89c9642215