Skip to content
CVE Ledger
  • Newest CVEsPage
  • Recently added to KEVPage
  • Rising exploitation (EPSS)Page
  • Weekly digestPage
  • StatisticsPage
  • WatchlistPage
  • API docsPage
  • MCP serverPage
  • AboutPage
  • Data sourcesPage
  • Data statusPage
  • ChangelogPage
  • How it's builtPage
  • Support the projectPage

14 results

Back

CVE-2022-50568usb: gadget: f_hid: fix f_hidg lifetime vs cdev

Description

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_hid: fix f_hidg lifetime vs cdev The embedded struct cdev does not have its lifetime correctly tied to the enclosing struct f_hidg, so there is a use-after-free if /dev/hidgN is held open while the gadget is deleted. This can readily be replicated with libusbgx's example programs (for conciseness - operating directly via configfs is equivalent): gadget-hid exec 3<> /dev/hidg0 gadget-vid-pid-remove exec 3<&- Pull the existing device up in to struct f_hidg and make use of the cdev_device_{add,del}() helpers. This changes the lifetime of the device object to match struct f_hidg, but note that it is still added and deleted at the same time.

Timeline

  1. ID reserved

    By Linux

  2. Published

  3. · 7 months later

    Record updated

Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.

Scores

No CVSS score yet: neither the CNA, CISA nor NVD has scored this CVE. NVD status: Deferred.

EPSS (exploitation in 30 days)
0.22% · top 87% of all CVEs (16 Nov 2026)
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: Not scored.

Affected products

  • Linux · Linux

    • affected 71adf118946957839a13aa4d1094183e05c6c094 – < 1cd7f156f6389918f760687fbbf133c86da93162
    • affected 71adf118946957839a13aa4d1094183e05c6c094 – < c78c87c4e389b62f8892af7f59857447aa6d9797
    • affected 71adf118946957839a13aa4d1094183e05c6c094 – < 1b6a53e447ec3d81623610c8c7ec5082b47dfdce
    • affected 71adf118946957839a13aa4d1094183e05c6c094 – < d3136b79705c2e3bba9c76adc5628af0215d798e
    • affected 71adf118946957839a13aa4d1094183e05c6c094 – < 9e4b85d815b14bd4db2deea2a54264a23de8b896
    • affected 71adf118946957839a13aa4d1094183e05c6c094 – < 9e08b7f5fa00e9d550851352bd0d1ba74ccffef2
    • affected 71adf118946957839a13aa4d1094183e05c6c094 – < 89ff3dfac604614287ad5aad9370c3f984ea3f4b
  • Linux · Linux

    • affected 2.6.35
    • unaffected < 2.6.35
    • unaffected 4.19.270 – ≤ 4.19.*
    • unaffected 5.4.229 – ≤ 5.4.*
    • unaffected 5.10.163 – ≤ 5.10.*
    • unaffected 5.15.86 – ≤ 5.15.*
    • unaffected 6.0.16 – ≤ 6.0.*
    • unaffected 6.1.2 – ≤ 6.1.*
    • unaffected 6.2 – ≤ *

References

References7

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2022-50568 badge
[![CVE-2022-50568](https://cveledger.app/badge/CVE-2022-50568.svg)](https://cveledger.app/cve/CVE-2022-50568)

Record last updated .