Skip to main content
Network Thinking Solutions Logo

CVE-2022-50337

Linux kernel: ocxl: fix pci device refcount leak when calling get_function_0()

All CVEs
CVE-2022-50337Published 9/15/2025

Linux kernel: ocxl: fix pci device refcount leak when calling get_function_0()

Vendor advisory
CVSS5.5Medium

Overview

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().

Published
9/15/2025
Last modified
11/5/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.9, < 5.10.163

Verify advisory

Source
linux kernel
linux
≥ 5.11, < 5.15.86

Verify advisory

Source
linux kernel
linux
≥ 5.16, < 6.0.16

Verify advisory

Source
linux kernel
linux
≥ 6.1, < 6.1.2

Verify advisory

Source
Linux
Linux
≥ 87db7579ebd5ded337056eb765542eb2608f16e3, < a40e1b0a922a53fa925ea8b296e3de30a31ed028

Verify advisory

Source
Linux
Linux
≥ 87db7579ebd5ded337056eb765542eb2608f16e3, < 37a13b274e4513c757e50c002ddcbf4bc89adbb2

Verify advisory

Source
Linux
Linux
≥ 87db7579ebd5ded337056eb765542eb2608f16e3, < 9a1b3148975b71fdc194e62612478346bbe618cd

Verify advisory

Source
Linux
Linux
≥ 87db7579ebd5ded337056eb765542eb2608f16e3, < 40ff4c2335a98f0ee96b099bfd70b8e6644f321f

Verify advisory

Source
Linux
Linux
≥ 87db7579ebd5ded337056eb765542eb2608f16e3, < 27158c72678b39ee01cc01de1aba6b51c71abe2f

Verify advisory

Source
Linux
Linux
5.9

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.