CVE-2021-47653

media: davinci: vpif: fix use-after-free on driver unbind

State
Published
Severity
7.8 High
Published
Feb 26, 2025
Updated
May 11, 2026
Reserved
Feb 26, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 479f7a1181058689435baddc16a6a42e1a8ff0e8 to before 6512c3c39cb6b573b791ce45365818a38b76afbeAffected
  • 479f7a1181058689435baddc16a6a42e1a8ff0e8 to before b5a3bb7f6f164eb6ee74ef4898dcd019b2063448Affected
  • 479f7a1181058689435baddc16a6a42e1a8ff0e8 to before 9ffc602e14d7b9f7e7cb2f67e18dfef9ef8af676Affected
  • 479f7a1181058689435baddc16a6a42e1a8ff0e8 to before 43acb728bbc40169d2e2425e84a80068270974beAffected
LinuxLinux
  • 4.13Affected
  • before 4.13Not affected
  • 5.15.54 through 5.15.*Not affected
  • 5.16.19 through 5.16.*Not affected
  • 5.17.2 through 5.17.*Not affected
  • 5.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.