CVE-2022-50337 json
ocxl: fix pci device refcount leak when calling get_function_0()
published 2025-09-15 13 mo ago modified 2026-11-05 3 d ago also EUVD-2022-55518
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 5%
- public exploits
- 0
- none known
Summary
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().
Patch / fix
- Linux Linux 5.10.163, 5.15.86, 6.0.16, 6.1.2, 6.2
- linux Debian 14, Debian 13, Debian 12 6.1.4-1
debian advisories DEBIAN-CVE-2022-50337
- linux Ubuntu 22.04 LTS 5.15.0-69.76
- linux-aws Ubuntu 22.04 LTS 5.15.0-1033.37
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1031.38
- linux-gke Ubuntu 22.04 LTS 5.15.0-1030.35
- linux-ibm Ubuntu 22.04 LTS 5.15.0-1027.30
- linux-kvm Ubuntu 22.04 LTS 5.15.0-1030.35
- linux-azure Ubuntu 22.04 LTS 5.15.0-1035.42
- linux-gkeop Ubuntu 22.04 LTS 5.15.0-1017.22
ubuntu advisories UBUNTU-CVE-2022-50337
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git.kernel.org/stable/c/a40e1b0a922a53fa925ea8b296e3de30a31ed028 commit
- git.kernel.org/stable/c/37a13b274e4513c757e50c002ddcbf4bc89adbb2 commit
- git.kernel.org/stable/c/9a1b3148975b71fdc194e62612478346bbe618cd commit
- git.kernel.org/stable/c/40ff4c2335a98f0ee96b099bfd70b8e6644f321f commit
- git.kernel.org/stable/c/27158c72678b39ee01cc01de1aba6b51c71abe2f commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-50337 updated cvss 5.5
kernel: ocxl: fix pci device refcount leak when calling get_function_0()
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 d ago
Exploit prediction
0.16% chance of exploitation in the next 30 days, higher than 5% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Technology feeds
References
-
git.kernel.org
/stable/c/a40e1b0a922a53fa925ea8b296e3de30a31ed028
patch
-
git.kernel.org
/stable/c/37a13b274e4513c757e50c002ddcbf4bc89adbb2
patch
-
git.kernel.org
/stable/c/9a1b3148975b71fdc194e62612478346bbe618cd
patch
-
git.kernel.org
/stable/c/40ff4c2335a98f0ee96b099bfd70b8e6644f321f
patch
-
git.kernel.org
/stable/c/27158c72678b39ee01cc01de1aba6b51c71abe2f
patch
Sources
- CVE List CVE-2022-50337
- NVD CVE-2022-50337
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.