Bug 2347697 (CVE-2021-47653) - CVE-2021-47653 kernel: media: davinci: vpif: fix use-after-free on driver unbind
Summary: CVE-2021-47653 kernel: media: davinci: vpif: fix use-after-free on driver unbind
Keywords:
Status: NEW
Alias: CVE-2021-47653
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:03 UTC by OSIDB Bzimport
Modified: 2025-02-27 09:31 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:03:35 UTC
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.

Comment 1 Avinash Hanwate 2025-02-26 19:18:42 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022649-CVE-2021-47653-2d4e@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.