What’s Vulnerable › Vulnerabilities

CVE-2022-48663: gpio: mockup: fix NULL pointer dereference when removing debugfs

Description

In the Linux kernel, the following vulnerability has been resolved: gpio: mockup: fix NULL pointer dereference when removing debugfs We now remove the device's debugfs entries when unbinding the driver. This now causes a NULL-pointer dereference on module exit because the platform devices are unregistered *after* the global debugfs directory has been recursively removed. Fix it by unregistering the devices first.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.10.146, 5.15.71, 5.19.12. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-48663 or the next vulnerability affects your stack