7.8 HIGH
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Local (L)
- Attack Complexity (AC): Low (L)
- Privileges Required (PR): Low (L)
- User Interaction (UI): None (N)
- Scope (S): Unchanged (U)
- Confidentiality (C): High (H)
- Integrity (I): High (H)
- Availability (A): High (H)
- Modified Attack Vector (MAV): Local (L)
- Modified Attack Complexity (MAC): Low (L)
- Modified Privileges Required (MPR): Low (L)
- Modified User Interaction (MUI): None (N)
- Modified Confidentiality (MC): High (H)
- Modified Scope (MS): Unchanged (U)
- Modified Integrity (MI): High (H)
- Modified Availability (MA): High (H)
Activity log
- Created & dismissed (max. allowed matches exceeded) suggestion
media: zoran: Avoid freeing a registered video_device twice
In the Linux kernel, the following vulnerability has been resolved: media: zoran: Avoid freeing a registered video_device twice zoran_init_video_device() installs zoran_vdev_release() as the video_device release callback through zoran_template. After video_register_device() succeeds, video_unregister_device() drops the registered video_device reference and the V4L2 core eventually invokes that release callback, which kfree()s the video_device. zoran_exit_video_devices() called video_unregister_device() and then kfree(zr->video_dev), so device teardown could free the same video_device twice. Remove the direct kfree() and clear the cached pointer after unregistering. The pre-registration failure path keeps its manual free because the video_device was not registered there. This issue was found by a static analysis checker and confirmed by manual source review.
References
Affected products
- <0735e0b5a96761a9ce277a238e834008ad92a0a5
- =<6.18.*
- ==c1ba65100a359fe28cfe37e09e10c99f247cbf1e
- <c4acac8cdc005b2d14b6cef5e215d264212857f3
- =<6.1.*
- <5.18
- <5.17
- <f1c4f3885df1f09bcab5296d86834d104f865e86
- =<6.12.*
- <4d99d8d0d895489064783601a516bd45812fa992
- ==bd01629315ffd5b63da91d0bd529a77d30e55028
- <5.16
- =<*
- =<6.6.*
- =<7.2.*
- ==ff3357bffd9fb78f59762d8955afc7382a279079
- <3ad6cf27505017a6794f5f96c31218c2291e951b
- ==1e501ec38796f43e995731d1bcd4173cb1ccfce0
- <5.18
- <672dbccf4351370dad002d3c78dbb29ca1588f22
- ==5.18
- <5.11