CVE-2021-47653·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: media: davinci: vpif: fix use-after-free on driver unbind The driver allocates and registers two platform device structures during probe, but the devices were never deregistered on driver unbind. This results in a use-after-free on driver unbind as the device structures were allocated using devres and would be freed by driver core when remove() returns. Fix this by adding the missing deregistration calls to the remove() callback and failing probe on registration errors. Note that the platform device structures must be freed using a proper release callback to avoid leaking associated resources like device names.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.17.2
- Published
- 2025-02-26
Affected versions
From: 5.17
Until: 5.17.2
Fixed in: 5.17.2
How to fix this CVE
Update your Linux kernel to version 5.17.2 or later to fix a use-after-free vulnerability in the davinci VPIF media driver. The issue occurs when the driver fails to properly deregister platform devices during unbind operations, causing memory corruption when the kernel attempts to free resources. Apply this patch immediately if you are running kernel versions 5.17.0 through 5.17.1.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with: uname -r
- Step 2: Verify if davinci VPIF driver is loaded: lsmod | grep vpif_display
- Step 3: Search system logs for memory errors or use-after-free warnings: sudo dmesg | grep -iE 'use-after-free|vpif|use of uninitialized'
- Step 4: After patching, reboot and verify the new kernel version with: uname -r
FAQ
What is CVE-2021-47653?
This vulnerability is a use-after-free flaw in the Linux kernel's davinci VPIF (Video Processing Interface) media driver where platform device structures are not properly deregistered during driver removal, leading to kernel memory corruption and potential privilege escalation.
Is CVE-2021-47653 being actively exploited?
No, this CVE is not listed on CISA's Known Exploited Vulnerabilities catalog and no public exploits are available. However, the high CVSS score (7.8) indicates significant risk if exploited locally.
What versions of Kernel are affected by CVE-2021-47653?
Linux kernel versions 5.17.0, 5.17.1, and 5.17.2-rc versions are affected. The vulnerability was fixed in kernel 5.17.2 release.
How do I check if my server is vulnerable to CVE-2021-47653?
Run: uname -r | grep -E '^5\.17\.[0-1]' to identify vulnerable kernel versions. If davinci VPIF is in use on your system, check: lsmod | grep vpif
Does Defensia detect CVE-2021-47653?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2021-47653 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47653. Free for 1 server.
Get started free