What’s Vulnerable › Vulnerabilities
CVE-2022-48663: gpio: mockup: fix NULL pointer dereference when removing debugfs
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-04-28 · updated 2026-06-17
- Weakness: CWE-476
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
- Linux kernel: from 5.10.144 before 5.10.146; from 5.15.69 before 5.15.71; from 5.19.10 before 5.19.12 — fixed in 5.10.146, 5.15.71, 5.19.12
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
- https://git.kernel.org/stable/c/18352095a0d581f6aeb1e9fc9d68cc0152cd64b4
- https://git.kernel.org/stable/c/af0bfabf06c74c260265c30ba81a34e7dec0e881
- https://git.kernel.org/stable/c/b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68
- https://git.kernel.org/stable/c/bdea98b98f844bd8a983ca880893e509a8b4162f
- https://git.kernel.org/stable/c/18352095a0d581f6aeb1e9fc9d68cc0152cd64b4
- https://git.kernel.org/stable/c/af0bfabf06c74c260265c30ba81a34e7dec0e881
- https://git.kernel.org/stable/c/b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68
- https://git.kernel.org/stable/c/bdea98b98f844bd8a983ca880893e509a8b4162f
Get alerted when CVE-2022-48663 or the next vulnerability affects your stack