CVE-2022-48663
kernel: gpio: mockup: fix NULL pointer dereference when removing debugfs
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 28, 2024
Updated · November 21, 2025
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.
Statement
Red Hat Enterprise Linux 8 is not affected by this vulnerability as the affected source code is not enabled by default.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-476 · NULL Pointer Dereference