title: bus: qcom: Put child node before return
description: In the Linux kernel, the following vulnerability has been resolved:
bus: qcom: Put child node before return
Put child node before return to fix potential reference count leak.
Generally, the reference count of child is incremented and decremented
automatically in the macro for_each_available_child_of_node() and should
be decremented manually if the loop is broken in loop body.
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 335a12754808, lessThan: a6191e91c10e, status: affected, versionType: git
version: 335a12754808, lessThan: 94810fc52925, status: affected, versionType: git
version: 335a12754808, lessThan: a399dd80e697, status: affected, versionType: git
version: 335a12754808, lessThan: 3a76ec28824c, status: affected, versionType: git
version: 335a12754808, lessThan: 00f6abd3509b, status: affected, versionType: git
version: 335a12754808, lessThan: 6b68c03dfc79, status: affected, versionType: git
version: 335a12754808, lessThan: c6f8e0dc8da1, status: affected, versionType: git
version: 335a12754808, lessThan: ac6ad7c2a862, 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.9, status: affected
version: 0, lessThan: 4.9, 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.119, lessThanOrEqual: 5.4.*, status: unaffected, versionType: custom
version: 5.10.37, lessThanOrEqual: 5.10.*, status: unaffected, versionType: custom
version: 5.11.21, lessThanOrEqual: 5.11.*, status: unaffected, versionType: custom
version: 5.12.4, lessThanOrEqual: 5.12.*, status: unaffected, versionType: custom
version: 5.13, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
