In the Linux kernel, the following vulnerability has been resolved:
net: dsa: microchip: ksz_common: Fix refcount leak bug
In kszswitchregister(), we should call ofnodeput() for the reference returned by ofgetchildbyname() which has increased the refcount.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49591.json",
"cna_assigner": "Linux"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49591.json"
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@88ec2ff42da3ac93b2437dc52fe25cd4372148e6",
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-49591-064f5f5d",
"digest": {
"threshold": 0.9,
"line_hashes": [
"246035264378274748816609508712067603970",
"74984748077984529950175094052476843587",
"73210838379187462642610484864530122137",
"127710791970752240581559447638737969727",
"240368309099586346432415463798388989980",
"149087285374766116714713838407145358485",
"334608969921625218496214998072617961952",
"15497787798785980754407841734024387734",
"309142734172216333329171666900358865064",
"25086380597096839624643835169740557556",
"137413086412584138295007854238086665107",
"125663070611465837170185902875543404536",
"97601423702324502703365104150378549103",
"309632333503132348368023104306394640654",
"155701932101475724651617727912896111937"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/net/dsa/microchip/ksz_common.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4165e02716518bbbe9c9104b39530d40928bc7ce",
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-49591-10f50bf1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"246035264378274748816609508712067603970",
"74984748077984529950175094052476843587",
"73210838379187462642610484864530122137",
"127710791970752240581559447638737969727",
"240368309099586346432415463798388989980",
"149087285374766116714713838407145358485",
"334608969921625218496214998072617961952",
"15497787798785980754407841734024387734",
"309142734172216333329171666900358865064",
"25086380597096839624643835169740557556",
"137413086412584138295007854238086665107",
"125663070611465837170185902875543404536",
"97601423702324502703365104150378549103",
"309632333503132348368023104306394640654",
"196740618685242380190829217884660192184"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/net/dsa/microchip/ksz_common.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4165e02716518bbbe9c9104b39530d40928bc7ce",
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-49591-267e00df",
"digest": {
"length": 1981.0,
"function_hash": "101992302477660434514599232633724816881"
},
"signature_type": "Function",
"target": {
"file": "drivers/net/dsa/microchip/ksz_common.c",
"function": "ksz_switch_register"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@88ec2ff42da3ac93b2437dc52fe25cd4372148e6",
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-49591-46eec3bd",
"digest": {
"length": 1740.0,
"function_hash": "58044688641348519513025097223941049105"
},
"signature_type": "Function",
"target": {
"file": "drivers/net/dsa/microchip/ksz_common.c",
"function": "ksz_switch_register"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a14bd7475452c51835dd5a0cee4c8fa48dd0b539",
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-49591-9261fe6a",
"digest": {
"length": 2735.0,
"function_hash": "123719990890526392910174959092803808764"
},
"signature_type": "Function",
"target": {
"file": "drivers/net/dsa/microchip/ksz_common.c",
"function": "ksz_switch_register"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a14bd7475452c51835dd5a0cee4c8fa48dd0b539",
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-49591-fe5994e2",
"digest": {
"threshold": 0.9,
"line_hashes": [
"246035264378274748816609508712067603970",
"74984748077984529950175094052476843587",
"73210838379187462642610484864530122137",
"127710791970752240581559447638737969727",
"240368309099586346432415463798388989980",
"149087285374766116714713838407145358485",
"334608969921625218496214998072617961952",
"15497787798785980754407841734024387734",
"309142734172216333329171666900358865064",
"25086380597096839624643835169740557556",
"137413086412584138295007854238086665107",
"125663070611465837170185902875543404536",
"97601423702324502703365104150378549103",
"309632333503132348368023104306394640654",
"196740618685242380190829217884660192184"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/net/dsa/microchip/ksz_common.c"
}
}
]