CVE-2021-47239

net: usb: fix possible use-after-free in smsc75xx_bind

State
Published
Severity
Not scored
Published
May 21, 2024
Updated
May 11, 2026
Reserved
Apr 10, 2024

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

net: usb: fix possible use-after-free in smsc75xx_bind

The commit 46a8b29c6306 ("net: usb: fix memory leak in smsc75xx_bind") fails to clean up the work scheduled in smsc75xx_reset-> smsc75xx_set_multicast, which leads to use-after-free if the work is scheduled to start after the deallocation. In addition, this patch also removes a dangling pointer - dev->data[0].

This patch calls cancel_work_sync to cancel the scheduled work and set the dangling pointer to NULL.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 200dbfcad8011e50c3cec269ed7b980836eeb1fa to before 7cc8b2e05fcea6edd022d26e82091d781af8fd9bAffected
  • 22c840596af0c09068b6cf948616e6496e59e07f to before 64160d1741a3de5204d1a822e058e0b4cc526504Affected
  • 9e6b8c1ff9d997e1fa16cbd2d60739adf6dc1bbc to before c4e3be2e7742863e454ce31faf8fd0109c00050bAffected
  • 9e6a3eccb28779710cbbafc4f4258d92509c6d07 to before 2fc8300c9cfa5167fcb5b1a2a07db6f53e82f59bAffected
  • b95fb96e6339e34694dd578fb6bde3575b01af17 to before 4252bf6c2b245f47011098113d405ffad6ad5d5bAffected
  • 635ac38b36255d3cfb8312cf7c471334f4d537e0 to before 570a52cf3e01d19f7fd1a251dfc52b0cd86c13cbAffected
  • 70c886ac93f87ae7214a0c69151a28a8075dd95b to before 14616c372a7be01a2fb8c56c9d8debd232b9e43dAffected
  • 46a8b29c6306d8bbfd92b614ef65a47c900d8e70 to before 56b786d86694e079d8aad9b314e015cd4ac02a3dAffected
LinuxLinux
  • 4.4.271 to before 4.4.274Affected
  • 4.9.271 to before 4.9.274Affected
  • 4.14.235 to before 4.14.238Affected
  • 4.19.193 to before 4.19.196Affected
  • 5.4.124 to before 5.4.128Affected
  • 5.10.42 to before 5.10.46Affected
  • 5.12.9 to before 5.12.13Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.