CVE-2021-47286·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: bus: mhi: core: Validate channel ID when processing command completions MHI reads the channel ID from the event ring element sent by the device which can be any value between 0 and 255. In order to prevent any out of bound accesses, add a check against the maximum number of channels supported by the controller and those channels not configured yet so as to skip processing of that event ring element.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.13.6
- Published
- 2024-05-21
Affected versions
From: 5.11
Until: 5.13.6
Fixed in: 5.13.6
How to fix this CVE
Update your Linux kernel to version 5.13.6 or later to address a critical MHI bus driver vulnerability that could allow local privilege escalation. The issue stems from insufficient validation of channel IDs in event ring processing, which can be exploited to trigger out-of-bounds memory access. Systems running kernel versions 5.11 through 5.13.5 should prioritize this patch immediately.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r (should be 5.13.6 or higher; vulnerable if output shows 5.11.x through 5.13.5)
- Verify MHI driver is loaded: lsmod | grep mhi_bus (presence indicates MHI bus is active)
- Review dmesg logs for MHI channel errors: dmesg | grep -i 'mhi\|channel' (look for repeated channel ID validation errors)
- Confirm patch applied: grep -r 'Validate channel ID' /boot/config-$(uname -r) || grep 'mhi' /var/log/kern.log (verify validation logic is present in kernel logs post-reboot)
FAQ
What is CVE-2021-47286?
CVE-2021-47286 is a kernel vulnerability in the MHI (Modem Host Interface) bus driver where untrusted channel ID values from device event rings are not validated before use, potentially enabling local attackers to read or modify kernel memory with local access.
Is CVE-2021-47286 being actively exploited?
No, this vulnerability is not listed on CISA's KEV (Known Exploited Vulnerabilities) catalog and no public exploit code is currently available, though the high CVSS score warrants timely patching.
What versions of Kernel are affected by CVE-2021-47286?
Linux kernel versions 5.11.0 through 5.13.5 are vulnerable; kernel 5.13.6 and later versions include the remediation.
How do I check if my server is vulnerable to CVE-2021-47286?
Run 'uname -r' and compare output to the affected range 5.11–5.13.5; also verify MHI bus presence with 'lsmod | grep mhi_bus' to confirm exposure.
Does Defensia detect CVE-2021-47286?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2021-47286 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/3efec3b4b16fc7af25676a94230a8ab2a3bb867c
- https://git.kernel.org/stable/c/546362a9ef2ef40b57c6605f14e88ced507f8dd0
- https://git.kernel.org/stable/c/aed4f5b51aba41e2afd7cfda20a0571a6a67dfe9
- https://git.kernel.org/stable/c/3efec3b4b16fc7af25676a94230a8ab2a3bb867c
- https://git.kernel.org/stable/c/546362a9ef2ef40b57c6605f14e88ced507f8dd0
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47286. Free for 1 server.
Get started free