# CVE-2021-47278: bus: mhi: pci_generic: Fix possible use-after-free in mhi_pci_remove()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-05-21T14:20:05.394Z
- Modified: 2026-06-17T04:17:05.333Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 8562d4fe34a3ef52da077f77985994bb9ad1f83e before c597d5c59c7a6417dba06590f59b922e01188e8d; from 8562d4fe34a3ef52da077f77985994bb9ad1f83e before 0b67808ade8893a1b3608ddd74fac7854786c919; 5.12 (not affected: before 5.12; from 5.12.11 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 5.12 before 5.12.11; 5.13

## References

- <https://git.kernel.org/stable/c/c597d5c59c7a6417dba06590f59b922e01188e8d> (patch)
- <https://git.kernel.org/stable/c/0b67808ade8893a1b3608ddd74fac7854786c919> (patch)

## Sources

- CVE List: [CVE-2021-47278](https://www.cve.org/CVERecord?id=CVE-2021-47278), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47278](https://nvd.nist.gov/vuln/detail/CVE-2021-47278), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47278 · Whole record: https://cve.day/CVE-2021-47278.json · Rebuilt by cve.day 2026-11-25T22:58:08.773Z
