CVE-2022-50337
Last modified
CVE-2022-50337 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: ocxl: fix pci device refcount leak when calling get_function_0() get_function_0() calls pci_get_domain_bus_and_slot(), as comment says, it returns a pci device with refcount increment, so after using it, pci_dev_put() needs be called. Get the device reference when get_function_0() is not called, so pci_dev_put() can be called in the error path and callers unconditionally. And add comment above get_dvsec_vendor0() to tell callers to call pci_dev_put().. EPSS estimates a 0.14% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: ocxl: fix pci device refcount leak when calling get_function_0() get_function_0() calls pci_get_domain_bus_and_slot(), as comment says, it returns a pci device with refcount increment, so after using it, pci_dev_put() needs be called. Get the device reference when get_function_0() is not called, so pci_dev_put() can be called in the error path and callers unconditionally. And add comment above get_dvsec_vendor0() to tell callers to call pci_dev_put().
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 5.9, < 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-50337?
How severe is CVE-2022-50337?
How do I fix CVE-2022-50337?
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-50331In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50332In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50333In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2022-50334In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50335In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50336In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50338Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2022-50339In the Linux kernel, the following vulnerability has been re…7
- CVE-2022-50340In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50341In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50342In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50343In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2022-50337?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
