title: media: staging/intel-ipu3: Fix memory leak in imu_fmt
description: In the Linux kernel, the following vulnerability has been resolved:
media: staging/intel-ipu3: Fix memory leak in imu_fmt
We are losing the reference to an allocated memory if try. Change the
order of the check to avoid that.
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 6d5f26f2e045, lessThan: ff792ae52005, status: affected, versionType: git
version: 6d5f26f2e045, lessThan: 517f6f570566, status: affected, versionType: git
version: 6d5f26f2e045, lessThan: 14d0e99c3ef6, status: affected, versionType: git
version: 6d5f26f2e045, lessThan: 74ba0adb5e98, status: affected, versionType: git
version: 6d5f26f2e045, lessThan: 3630901933af, 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: 5.2, status: affected
version: 0, lessThan: 5.2, 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
}
