In the Linux kernel, the following vulnerability has been resolved:
memory: samsung: exynos5422-dmc: Fix refcount leak in ofgetdram_timings
ofparsephandle() returns a node pointer with refcount incremented, we should use ofnodeput() on it when not need anymore. This function doesn't call ofnodeput() in some error paths. To unify the structure, Add put_node label and goto it on errors.
[
{
"id": "CVE-2022-49676-5e31b9ca",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bb2a481778c60f912c363e271ae46b55ff8132db",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"function_hash": "59017304188437075231531762028382341414",
"length": 1612.0
},
"target": {
"function": "of_get_dram_timings",
"file": "drivers/memory/samsung/exynos5422-dmc.c"
}
},
{
"id": "CVE-2022-49676-733eb142",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bb2a481778c60f912c363e271ae46b55ff8132db",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"97358402720384308409140370625212232383",
"104209207246705380449101860280685267670",
"119770552552366195448350122432244821874",
"60379615224691295302235368471332343456",
"269790724169066461115902627589898978682",
"243244791491172554658412234344208903621",
"304396724744032384412133615767808901552",
"221366922523414012524183956083690129262",
"224808148652983931489846195823974356494",
"163222800418878174645396449419562326480",
"66698596043678337006467097903899964048",
"37197685006278500575178913224528368914",
"221006087995339731575357372661351853548",
"210702394329824825511171674238575827385",
"324574680651369923371650279185428548135",
"228450646779345689609148136498028565991",
"304385758127155749288223054372828986245",
"189034726754582820674704091817855298736",
"66886414366391125843919496048096179405",
"131747728990289018283851188257380414771",
"45561574615434323472825177528593893208",
"81432434169232450664075015718574795927",
"6966203744033417031366608358398127580",
"143327259810046837477095443339137250748",
"293426011037950528703860759828462888684",
"171788748139056106706781264894286551601",
"81634130264418775530631243687230951119",
"290174029932664639887183923746251809935",
"332209389646383989003769639941853116421",
"246856847434315090238292460636416213513",
"23970636606507665764916812538115686736",
"295865739744889095349674697188177660629",
"327615118187698218513508107573145491841"
]
},
"target": {
"file": "drivers/memory/samsung/exynos5422-dmc.c"
}
},
{
"id": "CVE-2022-49676-a8700d0c",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1332661e09304b7b8e84e5edc11811ba08d12abe",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"function_hash": "59017304188437075231531762028382341414",
"length": 1612.0
},
"target": {
"function": "of_get_dram_timings",
"file": "drivers/memory/samsung/exynos5422-dmc.c"
}
},
{
"id": "CVE-2022-49676-b0a1cc58",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cde4480b5ab06195b9164184b0c02ced71e601b4",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"function_hash": "59017304188437075231531762028382341414",
"length": 1612.0
},
"target": {
"function": "of_get_dram_timings",
"file": "drivers/memory/samsung/exynos5422-dmc.c"
}
},
{
"id": "CVE-2022-49676-c4c3242a",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@889aad2203e09eed2071ca8985c25e9d6aea5735",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"function_hash": "59017304188437075231531762028382341414",
"length": 1612.0
},
"target": {
"function": "of_get_dram_timings",
"file": "drivers/memory/samsung/exynos5422-dmc.c"
}
},
{
"id": "CVE-2022-49676-c945fdbf",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1332661e09304b7b8e84e5edc11811ba08d12abe",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"97358402720384308409140370625212232383",
"104209207246705380449101860280685267670",
"119770552552366195448350122432244821874",
"60379615224691295302235368471332343456",
"269790724169066461115902627589898978682",
"243244791491172554658412234344208903621",
"304396724744032384412133615767808901552",
"221366922523414012524183956083690129262",
"224808148652983931489846195823974356494",
"163222800418878174645396449419562326480",
"66698596043678337006467097903899964048",
"37197685006278500575178913224528368914",
"221006087995339731575357372661351853548",
"210702394329824825511171674238575827385",
"324574680651369923371650279185428548135",
"228450646779345689609148136498028565991",
"304385758127155749288223054372828986245",
"189034726754582820674704091817855298736",
"66886414366391125843919496048096179405",
"131747728990289018283851188257380414771",
"45561574615434323472825177528593893208",
"81432434169232450664075015718574795927",
"6966203744033417031366608358398127580",
"143327259810046837477095443339137250748",
"293426011037950528703860759828462888684",
"171788748139056106706781264894286551601",
"81634130264418775530631243687230951119",
"290174029932664639887183923746251809935",
"332209389646383989003769639941853116421",
"246856847434315090238292460636416213513",
"23970636606507665764916812538115686736",
"295865739744889095349674697188177660629",
"327615118187698218513508107573145491841"
]
},
"target": {
"file": "drivers/memory/samsung/exynos5422-dmc.c"
}
},
{
"id": "CVE-2022-49676-dba76d2e",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@889aad2203e09eed2071ca8985c25e9d6aea5735",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"97358402720384308409140370625212232383",
"104209207246705380449101860280685267670",
"119770552552366195448350122432244821874",
"60379615224691295302235368471332343456",
"269790724169066461115902627589898978682",
"243244791491172554658412234344208903621",
"304396724744032384412133615767808901552",
"221366922523414012524183956083690129262",
"224808148652983931489846195823974356494",
"163222800418878174645396449419562326480",
"66698596043678337006467097903899964048",
"37197685006278500575178913224528368914",
"221006087995339731575357372661351853548",
"210702394329824825511171674238575827385",
"324574680651369923371650279185428548135",
"228450646779345689609148136498028565991",
"304385758127155749288223054372828986245",
"189034726754582820674704091817855298736",
"66886414366391125843919496048096179405",
"131747728990289018283851188257380414771",
"45561574615434323472825177528593893208",
"81432434169232450664075015718574795927",
"6966203744033417031366608358398127580",
"143327259810046837477095443339137250748",
"293426011037950528703860759828462888684",
"171788748139056106706781264894286551601",
"81634130264418775530631243687230951119",
"290174029932664639887183923746251809935",
"332209389646383989003769639941853116421",
"246856847434315090238292460636416213513",
"23970636606507665764916812538115686736",
"295865739744889095349674697188177660629",
"327615118187698218513508107573145491841"
]
},
"target": {
"file": "drivers/memory/samsung/exynos5422-dmc.c"
}
},
{
"id": "CVE-2022-49676-eb34753a",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cde4480b5ab06195b9164184b0c02ced71e601b4",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"97358402720384308409140370625212232383",
"104209207246705380449101860280685267670",
"119770552552366195448350122432244821874",
"60379615224691295302235368471332343456",
"269790724169066461115902627589898978682",
"243244791491172554658412234344208903621",
"304396724744032384412133615767808901552",
"221366922523414012524183956083690129262",
"224808148652983931489846195823974356494",
"163222800418878174645396449419562326480",
"66698596043678337006467097903899964048",
"37197685006278500575178913224528368914",
"221006087995339731575357372661351853548",
"210702394329824825511171674238575827385",
"324574680651369923371650279185428548135",
"228450646779345689609148136498028565991",
"304385758127155749288223054372828986245",
"189034726754582820674704091817855298736",
"66886414366391125843919496048096179405",
"131747728990289018283851188257380414771",
"45561574615434323472825177528593893208",
"81432434169232450664075015718574795927",
"6966203744033417031366608358398127580",
"143327259810046837477095443339137250748",
"293426011037950528703860759828462888684",
"171788748139056106706781264894286551601",
"81634130264418775530631243687230951119",
"290174029932664639887183923746251809935",
"332209389646383989003769639941853116421",
"246856847434315090238292460636416213513",
"23970636606507665764916812538115686736",
"295865739744889095349674697188177660629",
"327615118187698218513508107573145491841"
]
},
"target": {
"file": "drivers/memory/samsung/exynos5422-dmc.c"
}
}
]