hsofreenetdevice in drivers/net/usb/hso.c in the Linux kernel through 5.13.4 calls unregisternetdev without checking for the NETREG_REGISTERED state, leading to a use-after-free and a double free.
{ "vanir_signatures": [ { "digest": { "line_hashes": [ "326706554205368349229392983342502426683", "234510606582292256784267966752486927482", "103534287502568870011812914350686575544", "32458675424064004796704834417105240945", "239393498825172149072704920040009039323", "290643767957417639311493659430467221321", "97148970703183751480725789440726970951", "128901598681601325547552992552201653397", "314156902952009630124764673055334739017", "185498463268583845252875796511646159255", "125051302974699206528802591583927555630", "8139501789811232157528344109126538213", "196682019139038150363177842842715118514", "125558829607324182709306366253634954786", "171415957310522316493037740893903551447", "288764169056401013849741707169783630481", "207472739703452817661142331564683214463", "254137208835480901251907726069596543725", "266989171154324197754860571029953125630", "170341227657305186271952725044297616615", "272524559315743905014920618528698375544", "42888076946074205384817116046464173659", "165214598441089813087668587521719163777", "12624336000086517260607177282646838621", "308228595303685089969733721569337140706", "216263553035501970718496243657262829647", "37978644426090856074357257250795359442", "205069072597297028693370588839831889714", "272518617933819093532754776810738447679", "126929904214987551869022099334461746031", "110077989494485997144708421745799580075", "47772236669149219749629706909344730943", "289773101665486013101274691762631228565", "222334512446493559284199388876957107394", "337799427281635585215138542955973102977", "336857400244910809438907166480571717783", "326659154810712225274627626040112558850", "24536397986413216649408792054184164644" ], "threshold": 0.9 }, "signature_type": "Line", "id": "CVE-2021-37159-1f8b9577", "signature_version": "v1", "target": { "file": "drivers/net/usb/hso.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@a6ecfb39ba9d7316057cea823b196b734f6b18ca", "deprecated": false }, { "digest": { "length": 1678.0, "function_hash": "269144128550805637607770105480626155444" }, "signature_type": "Function", "id": "CVE-2021-37159-ac1ef717", "signature_version": "v1", "target": { "file": "drivers/net/usb/hso.c", "function": "hso_create_net_device" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@a6ecfb39ba9d7316057cea823b196b734f6b18ca", "deprecated": false } ] }