CVE-2022-50453
Last modified
CVE-2022-50453 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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.. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 4.8, < 5.10.163 |
| Linux | Linux Kernel | >= 5.11, < 5.15.86 |
| Linux | Linux Kernel | >= 5.16, < 6.0.16 |
| Linux | Linux Kernel | >= 6.1, < 6.1.2 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2022-50453?
How severe is CVE-2022-50453?
How do I fix CVE-2022-50453?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-50447In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50448In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50449In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50450Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2022-50451In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50452In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50454In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-50455Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2022-50456In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50457In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50458In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50459In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2022-50453?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
