CVE-2022-48663 gpio: mockup: fix NULL pointer dereference when removing debugfs
A NULL pointer dereference in the Linux kernel GPIO mockup driver causes a denial of service when removing debugfs entries during module exit.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-48663?
CVE-2022-48663 is a medium-severity vulnerability in Linux kernel, published on 28 Apr 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-476
Which versions are affected by CVE-2022-48663?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-48663?
Apply the vendor's patch.
Is CVE-2022-48663 being exploited?
There is no known exploitation of CVE-2022-48663 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-48663, GHSA-xgx4-jvp8-p2h2, UBUNTU-CVE-2022-48663.