In the Linux kernel, the following vulnerability has been resolved:
rapidio: fix possible name leaks when rioadddevice() fails
Patch series "rapidio: fix three possible memory leaks".
This patchset fixes three name leaks in error handling. - patch #1 fixes two name leaks while rioadddevice() fails. - patch #2 fixes a name leak while rioregistermport() fails.
This patch (of 2):
If rioadddevice() returns error, the name allocated by devsetname() need be freed. It should use putdevice() to give up the reference in the error path, so that the name can be freed in kobjectcleanup(), and the 'rdev' can be freed in rioreleasedev().
[
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80fad2e53eaed2b3a2ff596575f65669e13ceda5",
"id": "CVE-2022-50343-02621850",
"signature_version": "v1",
"target": {
"function": "rio_mport_add_riodev",
"file": "drivers/rapidio/devices/rio_mport_cdev.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "5940898714522428188883102685528984094",
"length": 3171.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ec3f04f74f50d0b6bac04d795c93c2b852753a7a",
"id": "CVE-2022-50343-140ccf54",
"signature_version": "v1",
"target": {
"file": "drivers/rapidio/devices/rio_mport_cdev.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"127061564093136872448106529538048520103",
"54976069001896931678519502707042765773",
"217257558192895725306517670080677895304",
"103825880948412748875715008278079191776",
"117710837705540278877730374335534313211"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c482cb0deb57924335103fe592c379a076d867f8",
"id": "CVE-2022-50343-16bf836d",
"signature_version": "v1",
"target": {
"function": "rio_mport_add_riodev",
"file": "drivers/rapidio/devices/rio_mport_cdev.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "5940898714522428188883102685528984094",
"length": 3171.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80fad2e53eaed2b3a2ff596575f65669e13ceda5",
"id": "CVE-2022-50343-1bdfbfa9",
"signature_version": "v1",
"target": {
"function": "rio_setup_device",
"file": "drivers/rapidio/rio-scan.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "253517325101558237881750497204160949158",
"length": 3493.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c413f65011ff8caffabcde0e1c3ceede48a48d6f",
"id": "CVE-2022-50343-20a25623",
"signature_version": "v1",
"target": {
"function": "rio_setup_device",
"file": "drivers/rapidio/rio-scan.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "90509823816439919816760772155749932689",
"length": 3461.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f9574cd48679926e2a569e1957a5a1bcc8a719ac",
"id": "CVE-2022-50343-2940fbf9",
"signature_version": "v1",
"target": {
"function": "rio_mport_add_riodev",
"file": "drivers/rapidio/devices/rio_mport_cdev.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "152610111935604585193523961803894555007",
"length": 3143.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3b4676f274a6b5d001176f15d0542100bbf4b59a",
"id": "CVE-2022-50343-2ff0faa8",
"signature_version": "v1",
"target": {
"file": "drivers/rapidio/rio-scan.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"15608798996052376276296972991299663467",
"100059290166199098765672372869833848085",
"16207266103761846447370253951002565867",
"328611205970363074710063184845752779640",
"232200401792301678721923898264585528058"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@88fa351b20ca300693a206ccd3c4b0e0647944d8",
"id": "CVE-2022-50343-31779fa0",
"signature_version": "v1",
"target": {
"file": "drivers/rapidio/devices/rio_mport_cdev.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"127061564093136872448106529538048520103",
"54976069001896931678519502707042765773",
"217257558192895725306517670080677895304",
"103825880948412748875715008278079191776",
"117710837705540278877730374335534313211"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8",
"id": "CVE-2022-50343-3250b2ae",
"signature_version": "v1",
"target": {
"file": "drivers/rapidio/rio-scan.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"15608798996052376276296972991299663467",
"100059290166199098765672372869833848085",
"16207266103761846447370253951002565867",
"328611205970363074710063184845752779640",
"232200401792301678721923898264585528058"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8",
"id": "CVE-2022-50343-340a0eeb",
"signature_version": "v1",
"target": {
"function": "rio_mport_add_riodev",
"file": "drivers/rapidio/devices/rio_mport_cdev.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "5940898714522428188883102685528984094",
"length": 3171.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3b4676f274a6b5d001176f15d0542100bbf4b59a",
"id": "CVE-2022-50343-3a05cefe",
"signature_version": "v1",
"target": {
"function": "rio_mport_add_riodev",
"file": "drivers/rapidio/devices/rio_mport_cdev.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "5940898714522428188883102685528984094",
"length": 3171.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3b4676f274a6b5d001176f15d0542100bbf4b59a",
"id": "CVE-2022-50343-3ee9c43c",
"signature_version": "v1",
"target": {
"file": "drivers/rapidio/devices/rio_mport_cdev.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"127061564093136872448106529538048520103",
"54976069001896931678519502707042765773",
"217257558192895725306517670080677895304",
"103825880948412748875715008278079191776",
"117710837705540278877730374335534313211"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ec3f04f74f50d0b6bac04d795c93c2b852753a7a",
"id": "CVE-2022-50343-52e57df0",
"signature_version": "v1",
"target": {
"function": "rio_setup_device",
"file": "drivers/rapidio/rio-scan.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "90509823816439919816760772155749932689",
"length": 3461.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c482cb0deb57924335103fe592c379a076d867f8",
"id": "CVE-2022-50343-533fcebc",
"signature_version": "v1",
"target": {
"file": "drivers/rapidio/devices/rio_mport_cdev.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"127061564093136872448106529538048520103",
"54976069001896931678519502707042765773",
"217257558192895725306517670080677895304",
"103825880948412748875715008278079191776",
"117710837705540278877730374335534313211"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c413f65011ff8caffabcde0e1c3ceede48a48d6f",
"id": "CVE-2022-50343-5644b006",
"signature_version": "v1",
"target": {
"file": "drivers/rapidio/rio-scan.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"15608798996052376276296972991299663467",
"100059290166199098765672372869833848085",
"16207266103761846447370253951002565867",
"328611205970363074710063184845752779640",
"232200401792301678721923898264585528058"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80fad2e53eaed2b3a2ff596575f65669e13ceda5",
"id": "CVE-2022-50343-58dac579",
"signature_version": "v1",
"target": {
"file": "drivers/rapidio/devices/rio_mport_cdev.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"127061564093136872448106529538048520103",
"54976069001896931678519502707042765773",
"217257558192895725306517670080677895304",
"103825880948412748875715008278079191776",
"117710837705540278877730374335534313211"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c413f65011ff8caffabcde0e1c3ceede48a48d6f",
"id": "CVE-2022-50343-5aa425bb",
"signature_version": "v1",
"target": {
"function": "rio_mport_add_riodev",
"file": "drivers/rapidio/devices/rio_mport_cdev.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "152610111935604585193523961803894555007",
"length": 3143.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c482cb0deb57924335103fe592c379a076d867f8",
"id": "CVE-2022-50343-6202d7a5",
"signature_version": "v1",
"target": {
"function": "rio_setup_device",
"file": "drivers/rapidio/rio-scan.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "20233945729527716298358753946075885621",
"length": 3512.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ec3f04f74f50d0b6bac04d795c93c2b852753a7a",
"id": "CVE-2022-50343-6b7770d7",
"signature_version": "v1",
"target": {
"function": "rio_mport_add_riodev",
"file": "drivers/rapidio/devices/rio_mport_cdev.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "152610111935604585193523961803894555007",
"length": 3143.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80fad2e53eaed2b3a2ff596575f65669e13ceda5",
"id": "CVE-2022-50343-7d9ad52b",
"signature_version": "v1",
"target": {
"file": "drivers/rapidio/rio-scan.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"15608798996052376276296972991299663467",
"100059290166199098765672372869833848085",
"16207266103761846447370253951002565867",
"328611205970363074710063184845752779640",
"232200401792301678721923898264585528058"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f9574cd48679926e2a569e1957a5a1bcc8a719ac",
"id": "CVE-2022-50343-8865e5e8",
"signature_version": "v1",
"target": {
"file": "drivers/rapidio/rio-scan.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"15608798996052376276296972991299663467",
"100059290166199098765672372869833848085",
"16207266103761846447370253951002565867",
"328611205970363074710063184845752779640",
"232200401792301678721923898264585528058"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ec3f04f74f50d0b6bac04d795c93c2b852753a7a",
"id": "CVE-2022-50343-909ed771",
"signature_version": "v1",
"target": {
"file": "drivers/rapidio/rio-scan.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"15608798996052376276296972991299663467",
"100059290166199098765672372869833848085",
"16207266103761846447370253951002565867",
"328611205970363074710063184845752779640",
"232200401792301678721923898264585528058"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@88fa351b20ca300693a206ccd3c4b0e0647944d8",
"id": "CVE-2022-50343-93449b2a",
"signature_version": "v1",
"target": {
"file": "drivers/rapidio/rio-scan.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"15608798996052376276296972991299663467",
"100059290166199098765672372869833848085",
"16207266103761846447370253951002565867",
"328611205970363074710063184845752779640",
"232200401792301678721923898264585528058"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@88fa351b20ca300693a206ccd3c4b0e0647944d8",
"id": "CVE-2022-50343-9c0c1237",
"signature_version": "v1",
"target": {
"function": "rio_mport_add_riodev",
"file": "drivers/rapidio/devices/rio_mport_cdev.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "152610111935604585193523961803894555007",
"length": 3143.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@85fbf58b15c09d3a6a03098c1e42ebfe9002f39d",
"id": "CVE-2022-50343-9c2e148f",
"signature_version": "v1",
"target": {
"file": "drivers/rapidio/devices/rio_mport_cdev.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"127061564093136872448106529538048520103",
"54976069001896931678519502707042765773",
"217257558192895725306517670080677895304",
"103825880948412748875715008278079191776",
"117710837705540278877730374335534313211"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8",
"id": "CVE-2022-50343-a74f64e5",
"signature_version": "v1",
"target": {
"function": "rio_setup_device",
"file": "drivers/rapidio/rio-scan.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "253517325101558237881750497204160949158",
"length": 3493.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f9574cd48679926e2a569e1957a5a1bcc8a719ac",
"id": "CVE-2022-50343-b1ddf20e",
"signature_version": "v1",
"target": {
"function": "rio_setup_device",
"file": "drivers/rapidio/rio-scan.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "90509823816439919816760772155749932689",
"length": 3461.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c482cb0deb57924335103fe592c379a076d867f8",
"id": "CVE-2022-50343-b5c30709",
"signature_version": "v1",
"target": {
"file": "drivers/rapidio/rio-scan.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"15608798996052376276296972991299663467",
"100059290166199098765672372869833848085",
"16207266103761846447370253951002565867",
"328611205970363074710063184845752779640",
"232200401792301678721923898264585528058"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3b4676f274a6b5d001176f15d0542100bbf4b59a",
"id": "CVE-2022-50343-c22b9bb1",
"signature_version": "v1",
"target": {
"function": "rio_setup_device",
"file": "drivers/rapidio/rio-scan.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "20233945729527716298358753946075885621",
"length": 3512.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f9574cd48679926e2a569e1957a5a1bcc8a719ac",
"id": "CVE-2022-50343-c2e6fc21",
"signature_version": "v1",
"target": {
"file": "drivers/rapidio/devices/rio_mport_cdev.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"127061564093136872448106529538048520103",
"54976069001896931678519502707042765773",
"217257558192895725306517670080677895304",
"103825880948412748875715008278079191776",
"117710837705540278877730374335534313211"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@85fbf58b15c09d3a6a03098c1e42ebfe9002f39d",
"id": "CVE-2022-50343-ecbc6360",
"signature_version": "v1",
"target": {
"function": "rio_mport_add_riodev",
"file": "drivers/rapidio/devices/rio_mport_cdev.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "152610111935604585193523961803894555007",
"length": 3143.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@85fbf58b15c09d3a6a03098c1e42ebfe9002f39d",
"id": "CVE-2022-50343-ece85662",
"signature_version": "v1",
"target": {
"function": "rio_setup_device",
"file": "drivers/rapidio/rio-scan.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "90509823816439919816760772155749932689",
"length": 3461.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@85fbf58b15c09d3a6a03098c1e42ebfe9002f39d",
"id": "CVE-2022-50343-ed61d85b",
"signature_version": "v1",
"target": {
"file": "drivers/rapidio/rio-scan.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"15608798996052376276296972991299663467",
"100059290166199098765672372869833848085",
"16207266103761846447370253951002565867",
"328611205970363074710063184845752779640",
"232200401792301678721923898264585528058"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8",
"id": "CVE-2022-50343-f537c518",
"signature_version": "v1",
"target": {
"file": "drivers/rapidio/devices/rio_mport_cdev.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"127061564093136872448106529538048520103",
"54976069001896931678519502707042765773",
"217257558192895725306517670080677895304",
"103825880948412748875715008278079191776",
"117710837705540278877730374335534313211"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@88fa351b20ca300693a206ccd3c4b0e0647944d8",
"id": "CVE-2022-50343-fe48294a",
"signature_version": "v1",
"target": {
"function": "rio_setup_device",
"file": "drivers/rapidio/rio-scan.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "90509823816439919816760772155749932689",
"length": 3461.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c413f65011ff8caffabcde0e1c3ceede48a48d6f",
"id": "CVE-2022-50343-fe9d1fae",
"signature_version": "v1",
"target": {
"file": "drivers/rapidio/devices/rio_mport_cdev.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"127061564093136872448106529538048520103",
"54976069001896931678519502707042765773",
"217257558192895725306517670080677895304",
"103825880948412748875715008278079191776",
"117710837705540278877730374335534313211"
],
"threshold": 0.9
}
}
]