net: usb: fix possible use-after-free in smsc75xx_bind (Linux Linux)

CVE-2021-47239
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.23 % · percentile 14 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 200dbfcad8011e50c3cec269ed7b980836eeb1fa < 7cc8b2e05fcea6edd022d26e82091d781af8fd9b ; affected 22c840596af0c09068b6cf948616e6496e59e07f < 64160d1741a3de5204d1a822e058e0b4cc526504 ; affected 9e6b8c1ff9d997e1fa16cbd2d60739adf6dc1bbc < c4e3be2e7742863e454ce31faf8fd0109c00050b ; affected 9e6a3eccb28779710cbbafc4f4258d92509c6d07 < 2fc8300c9cfa5167fcb5b1a2a07db6f53e82f59b ; affected b95fb96e6339e34694dd578fb6bde3575b01af17 < 4252bf6c2b245f47011098113d405ffad6ad5d5b ; affected 635ac38b36255d3cfb8312cf7c471334f4d537e0 < 570a52cf3e01d19f7fd1a251dfc52b0cd86c13cb
Linux · Linuxaffected 4.4.271 < 4.4.274 ; affected 4.9.271 < 4.9.274 ; affected 4.14.235 < 4.14.238 ; affected 4.19.193 < 4.19.196 ; affected 5.4.124 < 5.4.128 ; affected 5.10.42 < 5.10.46

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD