In the Linux kernel, the following vulnerability has been resolved:
drm/msm/hdmi: check return value after calling platformgetresource_byname()
It will cause null-ptr-deref if platformgetresource_byname() returns NULL, we need check the return value.
Patchwork: https://patchwork.freedesktop.org/patch/482992/
[
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 3464.0,
"function_hash": "290334126795225895811715518930129360841"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d9cb951d11a4ace4de5c50b1178ad211de17079e",
"target": {
"file": "drivers/gpu/drm/msm/hdmi/hdmi.c",
"function": "msm_hdmi_init"
},
"id": "CVE-2022-49495-3e0e0df9"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"151612948857882601285411571676371309944",
"106203686216934865010483538639185098021",
"277317593043934292016499214683334832774",
"250696163368102550937624990533804283609"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d9cb951d11a4ace4de5c50b1178ad211de17079e",
"target": {
"file": "drivers/gpu/drm/msm/hdmi/hdmi.c"
},
"id": "CVE-2022-49495-e0570282"
}
]