Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2021-47278

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

Description

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 8562d4fe34a3ef52da077f77985994bb9ad1f83e to < c597d5c59c7a6417dba06590f59b922e01188e8daffected
  • 8562d4fe34a3ef52da077f77985994bb9ad1f83e to < 0b67808ade8893a1b3608ddd74fac7854786c919affected

Linux Linux

Default version status: affected

  • 5.12affected
  • 0 to < 5.12unaffected
  • 5.12.11 to ≤ 5.12.*unaffected
  • 5.13 to ≤ *unaffected

References