CVE-2021-47278

bus: mhi: pci_generic: Fix possible use-after-free in mhi_pci_remove()

published May 21, 2024

CVSS
—
EPSS
0%
Percentile
11.7
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

bus: mhi: pci_generic: Fix possible use-after-free in mhi_pci_remove()

This driver's remove path calls del_timer(). However, that function

does not wait until the timer handler finishes. This means that the

timer handler may still be running after the driver's remove function

has finished, which would result in a use-after-free.

Fix by calling del_timer_sync(), which makes sure the timer handler

has finished, and unable to re-schedule itself.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00219 · 11.7th percentile
Published
2024-05-21T14:20Z
EPSS history
Timeline
  • 21 MAY 14:20Z
    bus: mhi: pci_generic: Fix possible use-after-free in mhi_pci_remove()
    cvelistv5