Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2024-57980

media: uvcvideo: Fix double free in error path

Description

In the Linux kernel, the following vulnerability has been resolved: media: uvcvideo: Fix double free in error path If the uvc_status_init() function fails to allocate the int_urb, it will free the dev->status pointer but doesn't reset the pointer to NULL. This results in the kfree() call in uvc_status_cleanup() trying to double-free the memory. Fix it by resetting the dev->status pointer to NULL after freeing it. Reviewed by: Ricardo Ribalda <ribalda@chromium.org>

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • a31a4055473bf0a7b2b06cb2262347200d0711e1 to < d6e5ba2516c5bef87c1fcb8189b6f3cad7c64b2daffected
  • a31a4055473bf0a7b2b06cb2262347200d0711e1 to < 87522ef165e5b6de8ef98cc318f3335166a1512caffected
  • a31a4055473bf0a7b2b06cb2262347200d0711e1 to < 3ba8884a56a3eb97c22f0ce0e4dd410d4ca4c277affected
  • a31a4055473bf0a7b2b06cb2262347200d0711e1 to < 9232719ac9ce4d5c213cebda23d72aec3e1c4c0daffected
  • a31a4055473bf0a7b2b06cb2262347200d0711e1 to < 6c36dcd662ec5276782838660f8533a7cb26be49affected
  • a31a4055473bf0a7b2b06cb2262347200d0711e1 to < d1f8e69eec91d5a75ef079778a5d0151db2a7f22affected
  • a31a4055473bf0a7b2b06cb2262347200d0711e1 to < d8e63dd7b6683969d3d47c7b8e9635f96d554ad4affected
  • a31a4055473bf0a7b2b06cb2262347200d0711e1 to < c6ef3a7fa97ec823a1e1af9085cf13db9f7b3bacaffected

Linux Linux

Default version status: affected

  • 2.6.28affected
  • 0 to < 2.6.28unaffected
  • 5.4.291 to ≤ 5.4.*unaffected
  • 5.10.235 to ≤ 5.10.*unaffected
  • 5.15.179 to ≤ 5.15.*unaffected
  • 6.1.129 to ≤ 6.1.*unaffected
  • 6.6.76 to ≤ 6.6.*unaffected
  • 6.12.13 to ≤ 6.12.*unaffected
  • 6.13.2 to ≤ 6.13.*unaffected
  • 6.14 to ≤ *unaffected

References