CVEvulnerability
CVE-2021-47278
7.8 HIGH
Official page ↗
- Status
- Analyzed
- Published
- 2024-05-21
- Last modified
- 2026-06-17
- Assigner
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- CVSS 3.1 ([email protected])
- 7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-416
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 configurations
• linux linux kernel (>= 5.12 < 5.12.11)
• linux linux kernel 5.13
Related
Weakness · CWE (1)
- CWE-416 Use After Free weakness
References
- https://git.kernel.org/stable/c/0b67808ade8893a1b3608ddd74fac7854786c919 Patch
- https://git.kernel.org/stable/c/c597d5c59c7a6417dba06590f59b922e01188e8d Patch
- https://git.kernel.org/stable/c/0b67808ade8893a1b3608ddd74fac7854786c919 Patch
- https://git.kernel.org/stable/c/c597d5c59c7a6417dba06590f59b922e01188e8d Patch