CVE-2022-50337Missing Release of Resource after Effective Lifetime in Linux

Severity
5.5MEDIUMNVD
EPSS
0.0%
top 95.84%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedSep 15

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 call

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitability: 1.8 | Impact: 3.6

Affected Packages4 packages

NVDlinux/linux_kernel5.95.10.163+3
Debianlinux/linux_kernel< 5.10.178-1+3
CVEListV5linux/linux87db7579ebd5ded337056eb765542eb2608f16e3a40e1b0a922a53fa925ea8b296e3de30a31ed028+5
debiandebian/linux< linux 6.1.4-1 (bookworm)

Patches

🔴Vulnerability Details

2
GHSA
GHSA-p8q7-6g9r-q34g: In the Linux kernel, the following vulnerability has been resolved: ocxl: fix pci device refcount leak when calling get_function_0() get_function_0(2025-09-15
OSV
CVE-2022-50337: In the Linux kernel, the following vulnerability has been resolved: ocxl: fix pci device refcount leak when calling get_function_0() get_function_0()2025-09-15

📋Vendor Advisories

2
Red Hat
kernel: ocxl: fix pci device refcount leak when calling get_function_0()2025-09-15
Debian
CVE-2022-50337: linux - In the Linux kernel, the following vulnerability has been resolved: ocxl: fix p...2022
CVE-2022-50337 — Linux vulnerability | cvebase