title: net: usb: fix memory leak in smsc75xx_bind
description: In the Linux kernel, the following vulnerability has been resolved:
net: usb: fix memory leak in smsc75xx_bind
Syzbot reported memory leak in smsc75xx_bind().
The problem was is non-freed memory in case of
errors after memory allocation.
backtrace:
[<ffffffff84245b62>] kmalloc include/linux/slab.h:556 [inline]
[<ffffffff84245b62>] kzalloc include/linux/slab.h:686 [inline]
[<ffffffff84245b62>] smsc75xx_bind+0x7a/0x334 drivers/net/usb/smsc75xx.c:1460
[<ffffffff82b5b2e6>] usbnet_probe+0x3b6/0xc30 drivers/net/usb/usbnet.c:1728
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: d0cad871703b, lessThan: 200dbfcad801, status: affected, versionType: git
version: d0cad871703b, lessThan: 22c840596af0, status: affected, versionType: git
version: d0cad871703b, lessThan: 9e6b8c1ff9d9, status: affected, versionType: git
version: d0cad871703b, lessThan: 9e6a3eccb287, status: affected, versionType: git
version: d0cad871703b, lessThan: b95fb96e6339, status: affected, versionType: git
version: d0cad871703b, lessThan: 635ac38b3625, status: affected, versionType: git
version: d0cad871703b, lessThan: 70c886ac93f8, status: affected, versionType: git
version: d0cad871703b, lessThan: 46a8b29c6306, 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: 2.6.34, status: affected
version: 0, lessThan: 2.6.34, status: unaffected, versionType: custom
version: 4.4.271, lessThanOrEqual: 4.4.*, status: unaffected, versionType: custom
version: 4.9.271, lessThanOrEqual: 4.9.*, status: unaffected, versionType: custom
version: 4.14.235, lessThanOrEqual: 4.14.*, status: unaffected, versionType: custom
version: 4.19.193, lessThanOrEqual: 4.19.*, status: unaffected, versionType: custom
version: 5.4.124, lessThanOrEqual: 5.4.*, 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
}
