In the Linux kernel, the following vulnerability has been resolved:
mtd: maps: Fix refcount leak in offlashprobe_versatile
offindmatchingnodeandmatch() returns a node pointer with refcount incremented, we should use ofnodeput() on it when not need anymore. Add missing ofnode_put() to avoid refcount leak.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50161.json",
"cna_assigner": "Linux"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50161.json"
[
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "156764573579490388781447048269758468082",
"length": 1120.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3c8de6a838b7e0eb392754ac89dd66e698684342",
"signature_type": "Function",
"id": "CVE-2022-50161-594f7127",
"target": {
"file": "drivers/mtd/maps/physmap_of_versatile.c",
"function": "of_flash_probe_versatile"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"163014821906043649844033228868477839060",
"51786740048380810285937042716786296718",
"217094493294957884045069430406002592826",
"316964883920718139954125537724664174954"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3c8de6a838b7e0eb392754ac89dd66e698684342",
"signature_type": "Line",
"id": "CVE-2022-50161-73dbdfe5",
"target": {
"file": "drivers/mtd/maps/physmap_of_versatile.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "156764573579490388781447048269758468082",
"length": 1120.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9124d51e01232a91da4034768a2a8d1688472179",
"signature_type": "Function",
"id": "CVE-2022-50161-7abf00dc",
"target": {
"file": "drivers/mtd/maps/physmap-versatile.c",
"function": "of_flash_probe_versatile"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"163014821906043649844033228868477839060",
"51786740048380810285937042716786296718",
"217094493294957884045069430406002592826",
"316964883920718139954125537724664174954"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5d5ddd8771fa9cabeb247fba5f6ab60d63f3fbce",
"signature_type": "Line",
"id": "CVE-2022-50161-801e8838",
"target": {
"file": "drivers/mtd/maps/physmap-versatile.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "156764573579490388781447048269758468082",
"length": 1120.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@52ae2b14f76ef2d490337ddc0037bc37125be7b8",
"signature_type": "Function",
"id": "CVE-2022-50161-80e96204",
"target": {
"file": "drivers/mtd/maps/physmap-versatile.c",
"function": "of_flash_probe_versatile"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"163014821906043649844033228868477839060",
"51786740048380810285937042716786296718",
"217094493294957884045069430406002592826",
"316964883920718139954125537724664174954"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9124d51e01232a91da4034768a2a8d1688472179",
"signature_type": "Line",
"id": "CVE-2022-50161-848a3922",
"target": {
"file": "drivers/mtd/maps/physmap-versatile.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "156764573579490388781447048269758468082",
"length": 1120.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4d67c8f74d804b20febf716ec96e9a475457ec60",
"signature_type": "Function",
"id": "CVE-2022-50161-94d1d7a6",
"target": {
"file": "drivers/mtd/maps/physmap-versatile.c",
"function": "of_flash_probe_versatile"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"163014821906043649844033228868477839060",
"51786740048380810285937042716786296718",
"217094493294957884045069430406002592826",
"316964883920718139954125537724664174954"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@33ec82a6d2b119938f26e5c8040ed5d92378eb54",
"signature_type": "Line",
"id": "CVE-2022-50161-9f5932f2",
"target": {
"file": "drivers/mtd/maps/physmap-versatile.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"163014821906043649844033228868477839060",
"51786740048380810285937042716786296718",
"217094493294957884045069430406002592826",
"316964883920718139954125537724664174954"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@52ae2b14f76ef2d490337ddc0037bc37125be7b8",
"signature_type": "Line",
"id": "CVE-2022-50161-bac612f6",
"target": {
"file": "drivers/mtd/maps/physmap-versatile.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"163014821906043649844033228868477839060",
"51786740048380810285937042716786296718",
"217094493294957884045069430406002592826",
"316964883920718139954125537724664174954"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4d67c8f74d804b20febf716ec96e9a475457ec60",
"signature_type": "Line",
"id": "CVE-2022-50161-bf90e73d",
"target": {
"file": "drivers/mtd/maps/physmap-versatile.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "156764573579490388781447048269758468082",
"length": 1120.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5d5ddd8771fa9cabeb247fba5f6ab60d63f3fbce",
"signature_type": "Function",
"id": "CVE-2022-50161-d35cc3d6",
"target": {
"file": "drivers/mtd/maps/physmap-versatile.c",
"function": "of_flash_probe_versatile"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "156764573579490388781447048269758468082",
"length": 1120.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f516fbb63873ee23cba5b7c3d239677c30f13df8",
"signature_type": "Function",
"id": "CVE-2022-50161-d49ef419",
"target": {
"file": "drivers/mtd/maps/physmap-versatile.c",
"function": "of_flash_probe_versatile"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "156764573579490388781447048269758468082",
"length": 1120.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@79e57889aa0d92a6d769bad808fb105e7b6ea495",
"signature_type": "Function",
"id": "CVE-2022-50161-d992340a",
"target": {
"file": "drivers/mtd/maps/physmap_of_versatile.c",
"function": "of_flash_probe_versatile"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"163014821906043649844033228868477839060",
"51786740048380810285937042716786296718",
"217094493294957884045069430406002592826",
"316964883920718139954125537724664174954"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@79e57889aa0d92a6d769bad808fb105e7b6ea495",
"signature_type": "Line",
"id": "CVE-2022-50161-e6bc5885",
"target": {
"file": "drivers/mtd/maps/physmap_of_versatile.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "156764573579490388781447048269758468082",
"length": 1120.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@33ec82a6d2b119938f26e5c8040ed5d92378eb54",
"signature_type": "Function",
"id": "CVE-2022-50161-f041d13e",
"target": {
"file": "drivers/mtd/maps/physmap-versatile.c",
"function": "of_flash_probe_versatile"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"163014821906043649844033228868477839060",
"51786740048380810285937042716786296718",
"217094493294957884045069430406002592826",
"316964883920718139954125537724664174954"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f516fbb63873ee23cba5b7c3d239677c30f13df8",
"signature_type": "Line",
"id": "CVE-2022-50161-f3e7e2ba",
"target": {
"file": "drivers/mtd/maps/physmap-versatile.c"
}
}
]