In the Linux kernel, the following vulnerability has been resolved:
drm/v3d: Fix null pointer dereference of pointer perfmon
In the unlikely event that pointer perfmon is null the WARN_ON return path occurs after the pointer has already been deferenced. Fix this by only dereferencing perfmon after it has been null checked.
[
{
"deprecated": false,
"id": "CVE-2022-49485-0cbe0df0",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4be045434923e549a50846a066a04b7b6c1d6d33",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/v3d/v3d_perfmon.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"196108096933611292333615248399442114117",
"129025711522807088510798240914560060850",
"270435030662678058375837076182297116809",
"254714353749138810018489006452476032820",
"177635368843516299946136643312820760989",
"13104680426887415927328838977195159242"
]
}
},
{
"deprecated": false,
"id": "CVE-2022-49485-172c9771",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1df8f8901babcc8c8eea2c067179e455b5c828fd",
"signature_version": "v1",
"target": {
"function": "v3d_perfmon_start",
"file": "drivers/gpu/drm/v3d/v3d_perfmon.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "213490635899608581905517257330794230874",
"length": 806.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49485-494fe661",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3b72deb784a7d4ae8519a5c584cd87c4b57aa6c8",
"signature_version": "v1",
"target": {
"function": "v3d_perfmon_start",
"file": "drivers/gpu/drm/v3d/v3d_perfmon.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "213490635899608581905517257330794230874",
"length": 806.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49485-54d6a89f",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ce7a1ecf3f9f1fccaf67295307614511d8e11b13",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/v3d/v3d_perfmon.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"196108096933611292333615248399442114117",
"129025711522807088510798240914560060850",
"270435030662678058375837076182297116809",
"254714353749138810018489006452476032820",
"177635368843516299946136643312820760989",
"13104680426887415927328838977195159242"
]
}
},
{
"deprecated": false,
"id": "CVE-2022-49485-76f93465",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3b72deb784a7d4ae8519a5c584cd87c4b57aa6c8",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/v3d/v3d_perfmon.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"196108096933611292333615248399442114117",
"129025711522807088510798240914560060850",
"270435030662678058375837076182297116809",
"254714353749138810018489006452476032820",
"177635368843516299946136643312820760989",
"13104680426887415927328838977195159242"
]
}
},
{
"deprecated": false,
"id": "CVE-2022-49485-b260a963",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4be045434923e549a50846a066a04b7b6c1d6d33",
"signature_version": "v1",
"target": {
"function": "v3d_perfmon_start",
"file": "drivers/gpu/drm/v3d/v3d_perfmon.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "213490635899608581905517257330794230874",
"length": 806.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49485-ccf6d7bc",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ce7a1ecf3f9f1fccaf67295307614511d8e11b13",
"signature_version": "v1",
"target": {
"function": "v3d_perfmon_start",
"file": "drivers/gpu/drm/v3d/v3d_perfmon.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "213490635899608581905517257330794230874",
"length": 806.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49485-cea67666",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1df8f8901babcc8c8eea2c067179e455b5c828fd",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/v3d/v3d_perfmon.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"196108096933611292333615248399442114117",
"129025711522807088510798240914560060850",
"270435030662678058375837076182297116809",
"254714353749138810018489006452476032820",
"177635368843516299946136643312820760989",
"13104680426887415927328838977195159242"
]
}
}
]