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)
[
{
"digest": {
"length": 934.0,
"function_hash": "316101783723947147963435893084213461627"
},
"target": {
"function": "amdgpu_atif_call",
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ce8a00a00e36f61f5a1e47734332420b68784c43",
"id": "CVE-2024-53060-272ebb83"
},
{
"digest": {
"length": 934.0,
"function_hash": "316101783723947147963435893084213461627"
},
"target": {
"function": "amdgpu_atif_call",
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1a9f55ed5b512f510ccd21ad527d532e60550e80",
"id": "CVE-2024-53060-3178bcf2"
},
{
"digest": {
"length": 934.0,
"function_hash": "316101783723947147963435893084213461627"
},
"target": {
"function": "amdgpu_atif_call",
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@27fc29b5376998c126c85cf9b15d9dfc2afc9cbe",
"id": "CVE-2024-53060-3dcf47f1"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"64739647217816601714146246554923673812",
"74025728295475823817698037063334704483",
"281667206466404338406298670876501947482",
"298788055728053384708495946311843673448"
]
},
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1a9f55ed5b512f510ccd21ad527d532e60550e80",
"id": "CVE-2024-53060-4a140363"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"64739647217816601714146246554923673812",
"74025728295475823817698037063334704483",
"281667206466404338406298670876501947482",
"298788055728053384708495946311843673448"
]
},
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2ac7f253deada4d449559b65a1c1cd0a6f6f19b7",
"id": "CVE-2024-53060-56b71fd7"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"64739647217816601714146246554923673812",
"74025728295475823817698037063334704483",
"281667206466404338406298670876501947482",
"298788055728053384708495946311843673448"
]
},
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a6dd15981c03f2cdc9a351a278f09b5479d53d2e",
"id": "CVE-2024-53060-665209a5"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"64739647217816601714146246554923673812",
"74025728295475823817698037063334704483",
"281667206466404338406298670876501947482",
"298788055728053384708495946311843673448"
]
},
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b9d9881237afeb52eddd70077b7174bf17e2fa30",
"id": "CVE-2024-53060-86699051"
},
{
"digest": {
"length": 934.0,
"function_hash": "316101783723947147963435893084213461627"
},
"target": {
"function": "amdgpu_atif_call",
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a6dd15981c03f2cdc9a351a278f09b5479d53d2e",
"id": "CVE-2024-53060-95bc3dde"
},
{
"digest": {
"length": 934.0,
"function_hash": "316101783723947147963435893084213461627"
},
"target": {
"function": "amdgpu_atif_call",
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2ac7f253deada4d449559b65a1c1cd0a6f6f19b7",
"id": "CVE-2024-53060-a7ea3e28"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"64739647217816601714146246554923673812",
"74025728295475823817698037063334704483",
"281667206466404338406298670876501947482",
"298788055728053384708495946311843673448"
]
},
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a613a392417532ca5aaf3deac6e3277aa7aaef2b",
"id": "CVE-2024-53060-bcd0e015"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"64739647217816601714146246554923673812",
"74025728295475823817698037063334704483",
"281667206466404338406298670876501947482",
"298788055728053384708495946311843673448"
]
},
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ce8a00a00e36f61f5a1e47734332420b68784c43",
"id": "CVE-2024-53060-c128f909"
},
{
"digest": {
"length": 934.0,
"function_hash": "316101783723947147963435893084213461627"
},
"target": {
"function": "amdgpu_atif_call",
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b9d9881237afeb52eddd70077b7174bf17e2fa30",
"id": "CVE-2024-53060-c33ee771"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"64739647217816601714146246554923673812",
"74025728295475823817698037063334704483",
"281667206466404338406298670876501947482",
"298788055728053384708495946311843673448"
]
},
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8d7a28eca7553d35d4ce192fa1f390f2357df41b",
"id": "CVE-2024-53060-defbc017"
},
{
"digest": {
"length": 934.0,
"function_hash": "316101783723947147963435893084213461627"
},
"target": {
"function": "amdgpu_atif_call",
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a613a392417532ca5aaf3deac6e3277aa7aaef2b",
"id": "CVE-2024-53060-e9f2880f"
},
{
"digest": {
"length": 934.0,
"function_hash": "316101783723947147963435893084213461627"
},
"target": {
"function": "amdgpu_atif_call",
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8d7a28eca7553d35d4ce192fa1f390f2357df41b",
"id": "CVE-2024-53060-fb88b215"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"64739647217816601714146246554923673812",
"74025728295475823817698037063334704483",
"281667206466404338406298670876501947482",
"298788055728053384708495946311843673448"
]
},
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@27fc29b5376998c126c85cf9b15d9dfc2afc9cbe",
"id": "CVE-2024-53060-fe2f8379"
}
]