In the Linux kernel, the following vulnerability has been resolved:
MIPS: SGI-IP27: Fix platform-device leak in bridgeplatformcreate()
In error case in bridgeplatformcreate after calling platformdeviceadd()/platformdeviceadddata()/ platformdeviceaddresources(), release the failed 'pdev' or it will be leak, call platformdeviceput() to fix this problem.
Besides, 'pdev' is divided into 'pdevwd' and 'pdevbd', use platformdeviceunregister() to release sgi_w1 resources when xtalk-bridge registration fails.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50281.json",
"cna_assigner": "Linux"
}[
{
"target": {
"file": "arch/mips/sgi-ip27/ip27-xtalk.c",
"function": "bridge_platform_create"
},
"digest": {
"length": 1844.0,
"function_hash": "176087448912769092589989666879616191089"
},
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50281-345e2434",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d7ac29e60d0ff71e9e414af595b8c92800f7fa90"
},
{
"target": {
"file": "arch/mips/sgi-ip27/ip27-xtalk.c"
},
"digest": {
"line_hashes": [
"14499621879694480118070111515447819383",
"55305006708414540315865486082019891438",
"198825663395755692019592771330873150091",
"86342308349326411436912259726852654962",
"293352839312912190032552484833991535663",
"139469824679811835636848314307911646929",
"123411275623802814715289812454455796907",
"168389649162067065013998900877982333048",
"200749374454606543069350942917066042037",
"156342323159109918072516723950546187580",
"200632281264250437956070072927325219605",
"166828557747148428529481708295828120570",
"169065210747731373303832839475618143822",
"65522705188385048822569146315612214762",
"125321435227900236371402301087480267362",
"227632112322547488873196421357332851844",
"128837166324332541014902215924144861497",
"269651821457288919242595703592270089386",
"243197288836011386165178131068229760843",
"273099250740222874288400607495418644940",
"288984769930219536923066695776576462322",
"246973144501735882045925629085153979237",
"149470373216062760207498299330175044671",
"55716060676059879672190364453904748227",
"51689283607794604398969213303209240782",
"31198614568861235809980116625136782929",
"75479710092998253753667895422592323433",
"120231907169904674723944540030069084499",
"336938506399421606976706319647609672518",
"72840462242315659578739445157568257207",
"20704061999422746131633788834345195218",
"247876961632567341117319024578510380699",
"41860320944725036787678008192729342481",
"187306492529004751641518334170255895839",
"30241871906792657135815366861495633044",
"9448471311336797395068152380511470151",
"92329021855956044595685766879023245191",
"26792583571976483684884236549548147524",
"183169224312962100422769764788970263461"
],
"threshold": 0.9
},
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50281-3c23fdba",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@11bec9cba4de06b3c0e9e4041453c2caaa1cbec1"
},
{
"target": {
"file": "arch/mips/sgi-ip27/ip27-xtalk.c",
"function": "bridge_platform_create"
},
"digest": {
"length": 1844.0,
"function_hash": "176087448912769092589989666879616191089"
},
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50281-43044c34",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@93296e7ab774230b7c36541dead10b6da39b650f"
},
{
"target": {
"file": "arch/mips/sgi-ip27/ip27-xtalk.c"
},
"digest": {
"line_hashes": [
"14499621879694480118070111515447819383",
"55305006708414540315865486082019891438",
"198825663395755692019592771330873150091",
"86342308349326411436912259726852654962",
"293352839312912190032552484833991535663",
"139469824679811835636848314307911646929",
"123411275623802814715289812454455796907",
"168389649162067065013998900877982333048",
"200749374454606543069350942917066042037",
"156342323159109918072516723950546187580",
"200632281264250437956070072927325219605",
"166828557747148428529481708295828120570",
"169065210747731373303832839475618143822",
"65522705188385048822569146315612214762",
"125321435227900236371402301087480267362",
"227632112322547488873196421357332851844",
"128837166324332541014902215924144861497",
"269651821457288919242595703592270089386",
"243197288836011386165178131068229760843",
"273099250740222874288400607495418644940",
"288984769930219536923066695776576462322",
"246973144501735882045925629085153979237",
"149470373216062760207498299330175044671",
"55716060676059879672190364453904748227",
"51689283607794604398969213303209240782",
"31198614568861235809980116625136782929",
"75479710092998253753667895422592323433",
"120231907169904674723944540030069084499",
"336938506399421606976706319647609672518",
"72840462242315659578739445157568257207",
"20704061999422746131633788834345195218",
"247876961632567341117319024578510380699",
"41860320944725036787678008192729342481",
"187306492529004751641518334170255895839",
"30241871906792657135815366861495633044",
"9448471311336797395068152380511470151",
"92329021855956044595685766879023245191",
"26792583571976483684884236549548147524",
"183169224312962100422769764788970263461"
],
"threshold": 0.9
},
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50281-58923f9d",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d7ac29e60d0ff71e9e414af595b8c92800f7fa90"
},
{
"target": {
"file": "arch/mips/sgi-ip27/ip27-xtalk.c"
},
"digest": {
"line_hashes": [
"14499621879694480118070111515447819383",
"55305006708414540315865486082019891438",
"198825663395755692019592771330873150091",
"86342308349326411436912259726852654962",
"293352839312912190032552484833991535663",
"139469824679811835636848314307911646929",
"123411275623802814715289812454455796907",
"168389649162067065013998900877982333048",
"200749374454606543069350942917066042037",
"156342323159109918072516723950546187580",
"200632281264250437956070072927325219605",
"166828557747148428529481708295828120570",
"169065210747731373303832839475618143822",
"65522705188385048822569146315612214762",
"125321435227900236371402301087480267362",
"227632112322547488873196421357332851844",
"128837166324332541014902215924144861497",
"269651821457288919242595703592270089386",
"243197288836011386165178131068229760843",
"273099250740222874288400607495418644940",
"288984769930219536923066695776576462322",
"246973144501735882045925629085153979237",
"149470373216062760207498299330175044671",
"55716060676059879672190364453904748227",
"51689283607794604398969213303209240782",
"31198614568861235809980116625136782929",
"75479710092998253753667895422592323433",
"120231907169904674723944540030069084499",
"336938506399421606976706319647609672518",
"72840462242315659578739445157568257207",
"20704061999422746131633788834345195218",
"247876961632567341117319024578510380699",
"41860320944725036787678008192729342481",
"187306492529004751641518334170255895839",
"30241871906792657135815366861495633044",
"9448471311336797395068152380511470151",
"92329021855956044595685766879023245191",
"26792583571976483684884236549548147524",
"183169224312962100422769764788970263461"
],
"threshold": 0.9
},
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50281-6480c6fb",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@da2aecef866b476438d02c662507a0e4e818da9d"
},
{
"target": {
"file": "arch/mips/sgi-ip27/ip27-xtalk.c"
},
"digest": {
"line_hashes": [
"14499621879694480118070111515447819383",
"55305006708414540315865486082019891438",
"198825663395755692019592771330873150091",
"86342308349326411436912259726852654962",
"293352839312912190032552484833991535663",
"139469824679811835636848314307911646929",
"123411275623802814715289812454455796907",
"168389649162067065013998900877982333048",
"200749374454606543069350942917066042037",
"156342323159109918072516723950546187580",
"200632281264250437956070072927325219605",
"166828557747148428529481708295828120570",
"169065210747731373303832839475618143822",
"65522705188385048822569146315612214762",
"125321435227900236371402301087480267362",
"227632112322547488873196421357332851844",
"128837166324332541014902215924144861497",
"269651821457288919242595703592270089386",
"243197288836011386165178131068229760843",
"273099250740222874288400607495418644940",
"288984769930219536923066695776576462322",
"246973144501735882045925629085153979237",
"149470373216062760207498299330175044671",
"55716060676059879672190364453904748227",
"51689283607794604398969213303209240782",
"31198614568861235809980116625136782929",
"75479710092998253753667895422592323433",
"120231907169904674723944540030069084499",
"336938506399421606976706319647609672518",
"72840462242315659578739445157568257207",
"20704061999422746131633788834345195218",
"247876961632567341117319024578510380699",
"41860320944725036787678008192729342481",
"187306492529004751641518334170255895839",
"30241871906792657135815366861495633044",
"9448471311336797395068152380511470151",
"92329021855956044595685766879023245191",
"26792583571976483684884236549548147524",
"183169224312962100422769764788970263461"
],
"threshold": 0.9
},
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50281-7dcd0178",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@48025893b3e31b917ad654d28d23fff66681cac4"
},
{
"target": {
"file": "arch/mips/sgi-ip27/ip27-xtalk.c",
"function": "bridge_platform_create"
},
"digest": {
"length": 1844.0,
"function_hash": "176087448912769092589989666879616191089"
},
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50281-87ca3f50",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@11bec9cba4de06b3c0e9e4041453c2caaa1cbec1"
},
{
"target": {
"file": "arch/mips/sgi-ip27/ip27-xtalk.c",
"function": "bridge_platform_create"
},
"digest": {
"length": 1844.0,
"function_hash": "176087448912769092589989666879616191089"
},
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50281-9c6b864f",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@48025893b3e31b917ad654d28d23fff66681cac4"
},
{
"target": {
"file": "arch/mips/sgi-ip27/ip27-xtalk.c"
},
"digest": {
"line_hashes": [
"14499621879694480118070111515447819383",
"55305006708414540315865486082019891438",
"198825663395755692019592771330873150091",
"86342308349326411436912259726852654962",
"293352839312912190032552484833991535663",
"139469824679811835636848314307911646929",
"123411275623802814715289812454455796907",
"168389649162067065013998900877982333048",
"200749374454606543069350942917066042037",
"156342323159109918072516723950546187580",
"200632281264250437956070072927325219605",
"166828557747148428529481708295828120570",
"169065210747731373303832839475618143822",
"65522705188385048822569146315612214762",
"125321435227900236371402301087480267362",
"227632112322547488873196421357332851844",
"128837166324332541014902215924144861497",
"269651821457288919242595703592270089386",
"243197288836011386165178131068229760843",
"273099250740222874288400607495418644940",
"288984769930219536923066695776576462322",
"246973144501735882045925629085153979237",
"149470373216062760207498299330175044671",
"55716060676059879672190364453904748227",
"51689283607794604398969213303209240782",
"31198614568861235809980116625136782929",
"75479710092998253753667895422592323433",
"120231907169904674723944540030069084499",
"336938506399421606976706319647609672518",
"72840462242315659578739445157568257207",
"20704061999422746131633788834345195218",
"247876961632567341117319024578510380699",
"41860320944725036787678008192729342481",
"187306492529004751641518334170255895839",
"30241871906792657135815366861495633044",
"9448471311336797395068152380511470151",
"92329021855956044595685766879023245191",
"26792583571976483684884236549548147524",
"183169224312962100422769764788970263461"
],
"threshold": 0.9
},
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50281-cbdd5b77",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@93296e7ab774230b7c36541dead10b6da39b650f"
},
{
"target": {
"file": "arch/mips/sgi-ip27/ip27-xtalk.c",
"function": "bridge_platform_create"
},
"digest": {
"length": 1844.0,
"function_hash": "176087448912769092589989666879616191089"
},
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50281-f15a1516",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@da2aecef866b476438d02c662507a0e4e818da9d"
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50281.json"