Bug 2405742 (CVE-2022-50576) - CVE-2022-50576 kernel: serial: pch: Fix PCI device refcount leak in pch_request_dma()
Summary: CVE-2022-50576 kernel: serial: pch: Fix PCI device refcount leak in pch_reque...
Keywords:
Status: NEW
Alias: CVE-2022-50576
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-10-22 14:03 UTC by OSIDB Bzimport
Modified: 2025-10-29 10:21 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-10-22 14:03:44 UTC
In the Linux kernel, the following vulnerability has been resolved:

serial: pch: Fix PCI device refcount leak in pch_request_dma()

As comment of pci_get_slot() says, it returns a pci_device with its
refcount increased. The caller must decrement the reference count by
calling pci_dev_put().

Since 'dma_dev' is only used to filter the channel in filter(), we can
call pci_dev_put() before exiting from pch_request_dma(). Add the
missing pci_dev_put() for the normal and error path.


Note You need to log in before you can comment on or make changes to this bug.