In the Linux kernel, the following vulnerability has been resolved:
rtc: mt6397: check return value after calling platformgetresource()
It will cause null-ptr-deref if platformgetresource() returns NULL, we need check the return value.
[
{
"deprecated": false,
"id": "CVE-2022-49375-19b77ab4",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@82bfea344e8f7e9a0e0b1bf9af27552baa756620",
"signature_version": "v1",
"target": {
"function": "mtk_rtc_probe",
"file": "drivers/rtc/rtc-mt6397.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "11890912332158742097335649135306835069",
"length": 1017.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49375-21112746",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d77f28c1bc9d3043a52069fe42e4a26fbf961ebd",
"signature_version": "v1",
"target": {
"file": "drivers/rtc/rtc-mt6397.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"318227196565822864427668096895515032947",
"75098455661103245229464550353984010679",
"262421010115232107525027676968387338218",
"241139079314756740692677342341306341639"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"id": "CVE-2022-49375-260e1aad",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@865051de2d9eaa50630e055b73921ceaf3c4a7fc",
"signature_version": "v1",
"target": {
"function": "mtk_rtc_probe",
"file": "drivers/rtc/rtc-mt6397.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "11890912332158742097335649135306835069",
"length": 1017.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49375-2a5e650d",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3867f0bbb94773d41e789257abec0d14f37da217",
"signature_version": "v1",
"target": {
"file": "drivers/rtc/rtc-mt6397.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"318227196565822864427668096895515032947",
"75098455661103245229464550353984010679",
"128028363008671689504095087539862282980",
"98962570359416812070186613629918536668"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"id": "CVE-2022-49375-30c386bd",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@865051de2d9eaa50630e055b73921ceaf3c4a7fc",
"signature_version": "v1",
"target": {
"file": "drivers/rtc/rtc-mt6397.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"318227196565822864427668096895515032947",
"75098455661103245229464550353984010679",
"128324684128730555670361374331756453533",
"54652448174645328095161141159141484736"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"id": "CVE-2022-49375-4ba7fa23",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@79fa3f5758d8712df0678df98161f948fc4370e5",
"signature_version": "v1",
"target": {
"function": "mtk_rtc_probe",
"file": "drivers/rtc/rtc-mt6397.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "223360614682870501925387776988544385232",
"length": 1285.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49375-6505cc20",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6ecd4d5c28408df36a1a6f0b1973f633c949ac1f",
"signature_version": "v1",
"target": {
"function": "mtk_rtc_probe",
"file": "drivers/rtc/rtc-mt6397.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "178070229429180643114444008871728694412",
"length": 1150.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49375-6796b1f7",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d3b43eb505bffb8e4cdf6800c15660c001553fe6",
"signature_version": "v1",
"target": {
"file": "drivers/rtc/rtc-mt6397.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"318227196565822864427668096895515032947",
"75098455661103245229464550353984010679",
"128324684128730555670361374331756453533",
"54652448174645328095161141159141484736"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"id": "CVE-2022-49375-82abf475",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d3b43eb505bffb8e4cdf6800c15660c001553fe6",
"signature_version": "v1",
"target": {
"function": "mtk_rtc_probe",
"file": "drivers/rtc/rtc-mt6397.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "11890912332158742097335649135306835069",
"length": 1017.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49375-96f94289",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@79fa3f5758d8712df0678df98161f948fc4370e5",
"signature_version": "v1",
"target": {
"file": "drivers/rtc/rtc-mt6397.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"318227196565822864427668096895515032947",
"75098455661103245229464550353984010679",
"128028363008671689504095087539862282980",
"98962570359416812070186613629918536668"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"id": "CVE-2022-49375-c76e3254",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@da38e86d6cf6dd3bc65c602d998f357145aa1a0b",
"signature_version": "v1",
"target": {
"file": "drivers/rtc/rtc-mt6397.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"318227196565822864427668096895515032947",
"75098455661103245229464550353984010679",
"128324684128730555670361374331756453533",
"54652448174645328095161141159141484736"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"id": "CVE-2022-49375-c92b2010",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@58a729c55ce3a432eb827fdaa24c7909cd3b0a6b",
"signature_version": "v1",
"target": {
"function": "mtk_rtc_probe",
"file": "drivers/rtc/rtc-mt6397.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "11890912332158742097335649135306835069",
"length": 1017.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49375-e01f49c7",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d77f28c1bc9d3043a52069fe42e4a26fbf961ebd",
"signature_version": "v1",
"target": {
"function": "mtk_rtc_probe",
"file": "drivers/rtc/rtc-mt6397.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "292432568324590338794977960266807527255",
"length": 1083.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49375-e0ea9215",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3867f0bbb94773d41e789257abec0d14f37da217",
"signature_version": "v1",
"target": {
"function": "mtk_rtc_probe",
"file": "drivers/rtc/rtc-mt6397.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "107672842285775401349825327902201614600",
"length": 1246.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49375-e62406b5",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@82bfea344e8f7e9a0e0b1bf9af27552baa756620",
"signature_version": "v1",
"target": {
"file": "drivers/rtc/rtc-mt6397.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"318227196565822864427668096895515032947",
"75098455661103245229464550353984010679",
"128324684128730555670361374331756453533",
"54652448174645328095161141159141484736"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"id": "CVE-2022-49375-fa2c9c0b",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@da38e86d6cf6dd3bc65c602d998f357145aa1a0b",
"signature_version": "v1",
"target": {
"function": "mtk_rtc_probe",
"file": "drivers/rtc/rtc-mt6397.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "11890912332158742097335649135306835069",
"length": 1017.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49375-fdac3c42",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6ecd4d5c28408df36a1a6f0b1973f633c949ac1f",
"signature_version": "v1",
"target": {
"file": "drivers/rtc/rtc-mt6397.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"318227196565822864427668096895515032947",
"75098455661103245229464550353984010679",
"262421010115232107525027676968387338218",
"241139079314756740692677342341306341639"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"id": "CVE-2022-49375-fe85d3f8",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@58a729c55ce3a432eb827fdaa24c7909cd3b0a6b",
"signature_version": "v1",
"target": {
"file": "drivers/rtc/rtc-mt6397.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"318227196565822864427668096895515032947",
"75098455661103245229464550353984010679",
"128324684128730555670361374331756453533",
"54652448174645328095161141159141484736"
],
"threshold": 0.9
}
}
]