CVE-2022-50337
MediumIn 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().
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected versions
Linux kernel versions
5.9
and later are affected. Fixed in
5.10.163,
5.15.86,
6.0.16,
6.1.2,
6.2
and their respective stable series.
References
The following references provide additional information about CVE-2022-50337 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/27158c72678b39ee01cc01de1aba6b51c71abe2f
-
PatchKernel patch commithttps://git.kernel.org/stable/c/37a13b274e4513c757e50c002ddcbf4bc89adbb2
-
PatchKernel patch commithttps://git.kernel.org/stable/c/40ff4c2335a98f0ee96b099bfd70b8e6644f321f
Frequently asked questions
-
What is CVE-2022-50337?
CVE-2022-50337 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 . It affects Linux kernel versions from 5.9 onward and has been patched in 5.10.163, 5.15.86, 6.0.16 and others. CVE-2022-50337 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2022-50337?
CVE-2022-50337 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2022-50337?
Yes — CVE-2022-50337 has been patched. Fixed versions include 5.10.163, 5.15.86, 6.0.16 and others. If you are running Linux kernel 5.9 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2022-50337 actively exploited?
No — CVE-2022-50337 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.