In the Linux kernel, the following vulnerability has been resolved:
mISDN: fix possible memory leak in mISDNregisterdevice()
Afer commit 1fa5ae857bb1 ("driver core: get rid of struct device's busid string array"), the name of device is allocated dynamically, add putdevice() to give up the reference, so that the name can be freed in kobject_cleanup() when the refcount is 0.
Set device class before putdevice() to avoid null release() function WARN message in devicerelease().
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@080aabfb29b2ee9cbb8894a1d039651943d3773e",
"target": {
"function": "mISDN_register_device",
"file": "drivers/isdn/mISDN/core.c"
},
"signature_type": "Function",
"deprecated": false,
"digest": {
"function_hash": "133165242515587111633052056589480972095",
"length": 787.0
},
"id": "CVE-2022-49915-054c2b84",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2ff6b669523d3b3d253a044fa9636a67d0694995",
"target": {
"file": "drivers/isdn/mISDN/core.c"
},
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"156919208602561968867714366961364444912",
"325019254340154921691987744162284817992",
"62093860282013394438792864646823219001",
"224415539121573390607480158281353963535",
"88845396652863562026503244444510154701",
"230591654373487865421997948408557903095",
"16371480679355688565394077219477090250",
"317959077354928366480772125967394196116",
"261958002382759287154286250345060350998",
"123466374026754127636286923945401339669",
"249087554953525426306650283327738180765",
"116910157459426397506126772515898826054",
"201956514211784094019150626519530557856"
],
"threshold": 0.9
},
"id": "CVE-2022-49915-185a1ac5",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@029d5b7688a2f3a86f2a3be5a6ba9cc968c80e41",
"target": {
"function": "mISDN_register_device",
"file": "drivers/isdn/mISDN/core.c"
},
"signature_type": "Function",
"deprecated": false,
"digest": {
"function_hash": "133165242515587111633052056589480972095",
"length": 787.0
},
"id": "CVE-2022-49915-1a7b36db",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a636fc5a7cabd05699b5692ad838c2c7a3abec7b",
"target": {
"file": "drivers/isdn/mISDN/core.c"
},
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"156919208602561968867714366961364444912",
"325019254340154921691987744162284817992",
"62093860282013394438792864646823219001",
"224415539121573390607480158281353963535",
"88845396652863562026503244444510154701",
"230591654373487865421997948408557903095",
"16371480679355688565394077219477090250",
"317959077354928366480772125967394196116",
"261958002382759287154286250345060350998",
"123466374026754127636286923945401339669",
"249087554953525426306650283327738180765",
"116910157459426397506126772515898826054",
"201956514211784094019150626519530557856"
],
"threshold": 0.9
},
"id": "CVE-2022-49915-25abe4e1",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e7d1d4d9ac0dfa40be4c2c8abd0731659869b297",
"target": {
"file": "drivers/isdn/mISDN/core.c"
},
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"156919208602561968867714366961364444912",
"325019254340154921691987744162284817992",
"62093860282013394438792864646823219001",
"224415539121573390607480158281353963535",
"88845396652863562026503244444510154701",
"230591654373487865421997948408557903095",
"16371480679355688565394077219477090250",
"317959077354928366480772125967394196116",
"261958002382759287154286250345060350998",
"123466374026754127636286923945401339669",
"249087554953525426306650283327738180765",
"116910157459426397506126772515898826054",
"201956514211784094019150626519530557856"
],
"threshold": 0.9
},
"id": "CVE-2022-49915-2bb9d452",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a636fc5a7cabd05699b5692ad838c2c7a3abec7b",
"target": {
"function": "mISDN_register_device",
"file": "drivers/isdn/mISDN/core.c"
},
"signature_type": "Function",
"deprecated": false,
"digest": {
"function_hash": "133165242515587111633052056589480972095",
"length": 787.0
},
"id": "CVE-2022-49915-7563cdbd",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e77d213843e67b4373285712699b692f9c743f61",
"target": {
"function": "mISDN_register_device",
"file": "drivers/isdn/mISDN/core.c"
},
"signature_type": "Function",
"deprecated": false,
"digest": {
"function_hash": "133165242515587111633052056589480972095",
"length": 787.0
},
"id": "CVE-2022-49915-91387451",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0d4e91efcaee081e919b3c50e875ecbb84290e41",
"target": {
"function": "mISDN_register_device",
"file": "drivers/isdn/mISDN/core.c"
},
"signature_type": "Function",
"deprecated": false,
"digest": {
"function_hash": "133165242515587111633052056589480972095",
"length": 787.0
},
"id": "CVE-2022-49915-9b9364ef",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e77d213843e67b4373285712699b692f9c743f61",
"target": {
"file": "drivers/isdn/mISDN/core.c"
},
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"156919208602561968867714366961364444912",
"325019254340154921691987744162284817992",
"62093860282013394438792864646823219001",
"224415539121573390607480158281353963535",
"88845396652863562026503244444510154701",
"230591654373487865421997948408557903095",
"16371480679355688565394077219477090250",
"317959077354928366480772125967394196116",
"261958002382759287154286250345060350998",
"123466374026754127636286923945401339669",
"249087554953525426306650283327738180765",
"116910157459426397506126772515898826054",
"201956514211784094019150626519530557856"
],
"threshold": 0.9
},
"id": "CVE-2022-49915-9d03dbc7",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0d4e91efcaee081e919b3c50e875ecbb84290e41",
"target": {
"file": "drivers/isdn/mISDN/core.c"
},
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"156919208602561968867714366961364444912",
"325019254340154921691987744162284817992",
"62093860282013394438792864646823219001",
"224415539121573390607480158281353963535",
"88845396652863562026503244444510154701",
"230591654373487865421997948408557903095",
"16371480679355688565394077219477090250",
"317959077354928366480772125967394196116",
"261958002382759287154286250345060350998",
"123466374026754127636286923945401339669",
"249087554953525426306650283327738180765",
"116910157459426397506126772515898826054",
"201956514211784094019150626519530557856"
],
"threshold": 0.9
},
"id": "CVE-2022-49915-a8c3a66c",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2ff6b669523d3b3d253a044fa9636a67d0694995",
"target": {
"function": "mISDN_register_device",
"file": "drivers/isdn/mISDN/core.c"
},
"signature_type": "Function",
"deprecated": false,
"digest": {
"function_hash": "133165242515587111633052056589480972095",
"length": 787.0
},
"id": "CVE-2022-49915-aeb70bad",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@029d5b7688a2f3a86f2a3be5a6ba9cc968c80e41",
"target": {
"file": "drivers/isdn/mISDN/core.c"
},
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"156919208602561968867714366961364444912",
"325019254340154921691987744162284817992",
"62093860282013394438792864646823219001",
"224415539121573390607480158281353963535",
"88845396652863562026503244444510154701",
"230591654373487865421997948408557903095",
"16371480679355688565394077219477090250",
"317959077354928366480772125967394196116",
"261958002382759287154286250345060350998",
"123466374026754127636286923945401339669",
"249087554953525426306650283327738180765",
"116910157459426397506126772515898826054",
"201956514211784094019150626519530557856"
],
"threshold": 0.9
},
"id": "CVE-2022-49915-cb400247",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e7d1d4d9ac0dfa40be4c2c8abd0731659869b297",
"target": {
"function": "mISDN_register_device",
"file": "drivers/isdn/mISDN/core.c"
},
"signature_type": "Function",
"deprecated": false,
"digest": {
"function_hash": "133165242515587111633052056589480972095",
"length": 787.0
},
"id": "CVE-2022-49915-dd273062",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d1d1aede313eb2b9a84afd60ff6cfb7c33631e0e",
"target": {
"function": "mISDN_register_device",
"file": "drivers/isdn/mISDN/core.c"
},
"signature_type": "Function",
"deprecated": false,
"digest": {
"function_hash": "133165242515587111633052056589480972095",
"length": 787.0
},
"id": "CVE-2022-49915-e666d85d",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d1d1aede313eb2b9a84afd60ff6cfb7c33631e0e",
"target": {
"file": "drivers/isdn/mISDN/core.c"
},
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"156919208602561968867714366961364444912",
"325019254340154921691987744162284817992",
"62093860282013394438792864646823219001",
"224415539121573390607480158281353963535",
"88845396652863562026503244444510154701",
"230591654373487865421997948408557903095",
"16371480679355688565394077219477090250",
"317959077354928366480772125967394196116",
"261958002382759287154286250345060350998",
"123466374026754127636286923945401339669",
"249087554953525426306650283327738180765",
"116910157459426397506126772515898826054",
"201956514211784094019150626519530557856"
],
"threshold": 0.9
},
"id": "CVE-2022-49915-ee27cddd",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@080aabfb29b2ee9cbb8894a1d039651943d3773e",
"target": {
"file": "drivers/isdn/mISDN/core.c"
},
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"156919208602561968867714366961364444912",
"325019254340154921691987744162284817992",
"62093860282013394438792864646823219001",
"224415539121573390607480158281353963535",
"88845396652863562026503244444510154701",
"230591654373487865421997948408557903095",
"16371480679355688565394077219477090250",
"317959077354928366480772125967394196116",
"261958002382759287154286250345060350998",
"123466374026754127636286923945401339669",
"249087554953525426306650283327738180765",
"116910157459426397506126772515898826054",
"201956514211784094019150626519530557856"
],
"threshold": 0.9
},
"id": "CVE-2022-49915-fed388e9",
"signature_version": "v1"
}
]