title: net: dsa: sja1105: add error handling in sja1105_setup()
description: In the Linux kernel, the following vulnerability has been resolved:
net: dsa: sja1105: add error handling in sja1105_setup()
If any of sja1105_static_config_load(), sja1105_clocking_setup() or
sja1105_devlink_setup() fails, we can't just return in the middle of
sja1105_setup() or memory will leak. Add a cleanup path.
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 8aa9ebccae87, lessThan: dd8609f20344, status: affected, versionType: git
version: 8aa9ebccae87, lessThan: 987e4ab8b8a4, status: affected, versionType: git
version: 8aa9ebccae87, lessThan: cec279a898a3, 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.10.42, lessThanOrEqual: 5.10.*, status: unaffected, versionType: custom
version: 5.12.9, lessThanOrEqual: 5.12.*, status: unaffected, versionType: custom
version: 5.13, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
