CVE-2022-50453 Details
Description
In the Linux kernel, the following vulnerability has been resolved: gpiolib: cdev: fix NULL-pointer dereferences There are several places where we can crash the kernel by requesting lines, unbinding the GPIO device, then calling any of the system calls relevant to the GPIO character device's annonymous file descriptors: ioctl(), read(), poll(). While I observed it with the GPIO simulator, it will also happen for any of the GPIO devices that can be hot-unplugged - for instance any HID GPIO expander (e.g. CP2112). This affects both v1 and v2 uAPI. This fixes it partially by checking if gdev->chip is not NULL but it doesn't entirely remedy the situation as we still have a race condition in which another thread can remove the device after the check.
A vulnerability in the Linux kernel's GPIO character device handling can lead to NULL pointer dereferences, causing a kernel crash. This issue arises when GPIO lines are requested, the corresponding GPIO device is unbound, and then system calls such as ioctl(), read(), or poll() are invoked on the GPIO character device's anonymous file descriptors. While this vulnerability was observed with the GPIO simulator, it also affects any GPIO devices that can be hot-unplugged, such as HID GPIO expanders like the CP2112. The vulnerability impacts both version 1 and version 2 of the GPIO userspace API.
Users can upgrade to the patched version of the Linux kernel available in the Linux kernel stable tree to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/533aae7c94dbc2b14301cfd68ae7e0e90f0c8438 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6d79546622baab843172b52c3af035f83c1b21df | kernel.org | Patch |
| https://git.kernel.org/stable/c/7c755a2d6df511eeb5afba966ac28140f9ea5063 | kernel.org | Patch |
| https://git.kernel.org/stable/c/ac6ce3cd7a3e10a2e37b8970bab81b4d33d5cfc3 | kernel.org | Patch |
| https://git.kernel.org/stable/c/d66f68ac9e7ba46b6b90fbe25155723f2126088a | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.8, < 5.10.163 >= 5.11, < 5.15.86 >= 5.16, < 6.0.16 >= 6.1, < 6.1.2 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jan 16, 2026 | Initial Analysis | [email protected] |
| Oct 1, 2025 | New CVE Received | kernel.org |