In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: prevent NULL pointer dereference if ATIF is not supported
acpievaluateobject() may return AENOTFOUND (failure), which would result in dereferencing buffer.pointer (obj) while being NULL.
Although this case may be unrealistic for the current code, it is still better to protect against possible bugs.
Bail out also when status is AENOTFOUND.
This fixes 1 FORWARDNULL issue reported by Coverity Report: CID 1600951: Null pointer dereferences (FORWARDNULL)
(cherry picked from commit 91c9e221fe2553edf2db71627d8453f083de87a1)
[
{
"signature_version": "v1",
"digest": {
"function_hash": "316101783723947147963435893084213461627",
"length": 934.0
},
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2024-53060-272ebb83",
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c",
"function": "amdgpu_atif_call"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ce8a00a00e36f61f5a1e47734332420b68784c43"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "316101783723947147963435893084213461627",
"length": 934.0
},
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2024-53060-3178bcf2",
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c",
"function": "amdgpu_atif_call"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1a9f55ed5b512f510ccd21ad527d532e60550e80"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "316101783723947147963435893084213461627",
"length": 934.0
},
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2024-53060-3dcf47f1",
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c",
"function": "amdgpu_atif_call"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@27fc29b5376998c126c85cf9b15d9dfc2afc9cbe"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"64739647217816601714146246554923673812",
"74025728295475823817698037063334704483",
"281667206466404338406298670876501947482",
"298788055728053384708495946311843673448"
]
},
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2024-53060-4a140363",
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1a9f55ed5b512f510ccd21ad527d532e60550e80"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"64739647217816601714146246554923673812",
"74025728295475823817698037063334704483",
"281667206466404338406298670876501947482",
"298788055728053384708495946311843673448"
]
},
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2024-53060-56b71fd7",
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2ac7f253deada4d449559b65a1c1cd0a6f6f19b7"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"64739647217816601714146246554923673812",
"74025728295475823817698037063334704483",
"281667206466404338406298670876501947482",
"298788055728053384708495946311843673448"
]
},
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2024-53060-665209a5",
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a6dd15981c03f2cdc9a351a278f09b5479d53d2e"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"64739647217816601714146246554923673812",
"74025728295475823817698037063334704483",
"281667206466404338406298670876501947482",
"298788055728053384708495946311843673448"
]
},
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2024-53060-86699051",
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b9d9881237afeb52eddd70077b7174bf17e2fa30"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "316101783723947147963435893084213461627",
"length": 934.0
},
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2024-53060-95bc3dde",
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c",
"function": "amdgpu_atif_call"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a6dd15981c03f2cdc9a351a278f09b5479d53d2e"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "316101783723947147963435893084213461627",
"length": 934.0
},
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2024-53060-a7ea3e28",
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c",
"function": "amdgpu_atif_call"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2ac7f253deada4d449559b65a1c1cd0a6f6f19b7"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"64739647217816601714146246554923673812",
"74025728295475823817698037063334704483",
"281667206466404338406298670876501947482",
"298788055728053384708495946311843673448"
]
},
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2024-53060-bcd0e015",
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a613a392417532ca5aaf3deac6e3277aa7aaef2b"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"64739647217816601714146246554923673812",
"74025728295475823817698037063334704483",
"281667206466404338406298670876501947482",
"298788055728053384708495946311843673448"
]
},
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2024-53060-c128f909",
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ce8a00a00e36f61f5a1e47734332420b68784c43"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "316101783723947147963435893084213461627",
"length": 934.0
},
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2024-53060-c33ee771",
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c",
"function": "amdgpu_atif_call"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b9d9881237afeb52eddd70077b7174bf17e2fa30"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"64739647217816601714146246554923673812",
"74025728295475823817698037063334704483",
"281667206466404338406298670876501947482",
"298788055728053384708495946311843673448"
]
},
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2024-53060-defbc017",
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8d7a28eca7553d35d4ce192fa1f390f2357df41b"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "316101783723947147963435893084213461627",
"length": 934.0
},
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2024-53060-e9f2880f",
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c",
"function": "amdgpu_atif_call"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a613a392417532ca5aaf3deac6e3277aa7aaef2b"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "316101783723947147963435893084213461627",
"length": 934.0
},
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2024-53060-fb88b215",
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c",
"function": "amdgpu_atif_call"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8d7a28eca7553d35d4ce192fa1f390f2357df41b"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"64739647217816601714146246554923673812",
"74025728295475823817698037063334704483",
"281667206466404338406298670876501947482",
"298788055728053384708495946311843673448"
]
},
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2024-53060-fe2f8379",
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@27fc29b5376998c126c85cf9b15d9dfc2afc9cbe"
}
]