CVE-2021-47653 Details
Description
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.
A use-after-free vulnerability has been identified in the Linux kernel's media subsystem, specifically within the Davinci VPIF driver. This issue arises because the driver allocates and registers two platform device structures during the probe phase, but fails to deregister them when the driver is unbound. As a result, the device structures, which are managed by the device resource management system, are freed by the driver core after the remove() function returns, leading to a use-after-free condition. The vulnerability has been addressed by adding the missing deregistration calls to the remove() callback and ensuring that the probe function fails on registration errors. It is important to properly release the platform device structures using a designated release callback to prevent resource leaks, such as lingering device names.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 27, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/43acb728bbc40169d2e2425e84a80068270974be | kernel.org | Patch |
| https://git.kernel.org/stable/c/6512c3c39cb6b573b791ce45365818a38b76afbe | kernel.org | Patch |
| https://git.kernel.org/stable/c/9ffc602e14d7b9f7e7cb2f67e18dfef9ef8af676 | kernel.org | Patch |
| https://git.kernel.org/stable/c/b5a3bb7f6f164eb6ee74ef4898dcd019b2063448 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.13, < 5.15.54 >= 5.16, < 5.16.19 >= 5.17, < 5.17.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 24, 2025 | Initial Analysis | [email protected] |
| Feb 27, 2025 | CVE Modified | CISA-ADP |
| Feb 26, 2025 | New CVE Received | kernel.org |