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.
[
{
"digest": {
"threshold": 0.9,
"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"
]
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@a6ecfb39ba9d7316057cea823b196b734f6b18ca",
"signature_type": "Line",
"id": "CVE-2021-37159-1f8b9577",
"signature_version": "v1",
"target": {
"file": "drivers/net/usb/hso.c"
}
},
{
"digest": {
"function_hash": "176022898666696051040547852257041710459",
"length": 589.0
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@dcb713d53e2eadf42b878c12a471e74dc6ed3145",
"signature_type": "Function",
"id": "CVE-2021-37159-5f7c3d00",
"signature_version": "v1",
"target": {
"function": "hso_free_net_device",
"file": "drivers/net/usb/hso.c"
}
},
{
"digest": {
"function_hash": "99745802872521393366577320030703783758",
"length": 1092.0
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@dcb713d53e2eadf42b878c12a471e74dc6ed3145",
"signature_type": "Function",
"id": "CVE-2021-37159-80013214",
"signature_version": "v1",
"target": {
"function": "hso_free_interface",
"file": "drivers/net/usb/hso.c"
}
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"330101632903822643969667407547902191879",
"255648857025928979592171552219429879268",
"59954146345395301781320588008399275620",
"243073172927184101846734392411808085118",
"226628084595828241646799318265407961175",
"25959810335662977070465672060439386477",
"27722712102995337730003271376598789894",
"262922344131208102021069822953732710113",
"150659791242184847064177917283773176158",
"260519836761473738159330358432540251826",
"195356441410653220430051249357318683450",
"185979955524217777269104444406709250443"
]
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@dcb713d53e2eadf42b878c12a471e74dc6ed3145",
"signature_type": "Line",
"id": "CVE-2021-37159-9a33b6bf",
"signature_version": "v1",
"target": {
"file": "drivers/net/usb/hso.c"
}
},
{
"digest": {
"function_hash": "269144128550805637607770105480626155444",
"length": 1678.0
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@a6ecfb39ba9d7316057cea823b196b734f6b18ca",
"signature_type": "Function",
"id": "CVE-2021-37159-ac1ef717",
"signature_version": "v1",
"target": {
"function": "hso_create_net_device",
"file": "drivers/net/usb/hso.c"
}
}
]