title: media: dvbdev: Fix memory leak in dvb_media_device_free()
description: In the Linux kernel, the following vulnerability has been resolved:
media: dvbdev: Fix memory leak in dvb_media_device_free()
dvb_media_device_free() is leaking memory. Free `dvbdev->adapter->conn`
before setting it to NULL, as documented in include/media/media-device.h:
"The media_entity instance itself must be freed explicitly by the driver
if required."
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 0230d60e4661, lessThan: 06854b943e05, status: affected, versionType: git
version: 0230d60e4661, lessThan: 32168ca1f123, status: affected, versionType: git
version: 0230d60e4661, lessThan: cd89f79be5d5, status: affected, versionType: git
version: 0230d60e4661, lessThan: 9185b3b1c143, status: affected, versionType: git
version: 0230d60e4661, lessThan: 43263fd43083, status: affected, versionType: git
version: 0230d60e4661, lessThan: 9ad15e214fcd, status: affected, versionType: git
version: 0230d60e4661, lessThan: cede24d13be6, status: affected, versionType: git
version: 0230d60e4661, lessThan: bf9a40ae8d72, status: affected, versionType: git
}
{
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 4.5, status: affected
version: 0, lessThan: 4.5, status: unaffected, versionType: custom
version: 4.9.269, lessThanOrEqual: 4.9.*, status: unaffected, versionType: custom
version: 4.14.233, lessThanOrEqual: 4.14.*, status: unaffected, versionType: custom
version: 4.19.191, lessThanOrEqual: 4.19.*, status: unaffected, versionType: custom
version: 5.4.118, lessThanOrEqual: 5.4.*, status: unaffected, versionType: custom
version: 5.10.36, lessThanOrEqual: 5.10.*, status: unaffected, versionType: custom
version: 5.11.20, lessThanOrEqual: 5.11.*, status: unaffected, versionType: custom
version: 5.12.3, lessThanOrEqual: 5.12.*, status: unaffected, versionType: custom
version: 5.13, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
