drm/amd/display: Add null check for 'afb' in amdgpu_dm_plane_handle_cursor_update (v2)
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add null check for 'afb' in amdgpu_dm_plane_handle_cursor_update (v2) This commit adds a null check for the 'afb' variable in the amdgpu_dm_plane_handle_cursor_update function. Previously, 'afb' was assumed to be null, but was used later in the code without a null check. This could potentially lead to a null pointer dereference. Changes since v1: - Moved the null check for 'afb' to the line where 'afb' is used. (Alex) Fixes the below: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c:1298 amdgpu_dm_plane_handle_cursor_update() error: we previously assumed 'afb' could be null (see line 1252)
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.113, 6.10.14, 6.11.3, 6.6.55
- CVEs
- CVE-2024-49905
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 03:20 UTC · Revision 1
Source evidence
drm/amd/display: Add null check for 'afb' in amdgpu_dm_plane_handle_cursor_update (v2)
core-osv · Original sourcePublished 21 Oct 2024, 18:01 UTC
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add null check for 'afb' in amdgpu_dm_plane_handle_cursor_update (v2) This commit adds a null check for the 'afb' variable in the amdgpu_dm_plane_handle_cursor_update function. Previously, 'afb' was assumed to be null, but was used later in the code without a null check. This could potentially lead to a null pointer dereference. Changes since v1: - Moved the null check for 'afb' to the line where 'afb' is used. (Alex) Fixes the below: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c:1298 amdgpu_dm_plane_handle_cursor_update() error: we previously assumed 'afb' could be null (see line 1252)
osv:CVE-2024-49905
Kernel
Fixed versions: 6.1.113, 6.6.55, 6.10.14, 6.11.3
Complete source record
{
"id": "1189e8b7c9522728d036f2db99d811ed635be9b44fea450c74018a8d4aa91a71",
"url": "https://osv.dev/vulnerability/CVE-2024-49905",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "drm/amd/display: Add null check for 'afb' in amdgpu_dm_plane_handle_cursor_update (v2)",
"summary": "In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add null check for 'afb' in amdgpu_dm_plane_handle_cursor_update (v2) This commit adds a null check for the 'afb' variable in the amdgpu_dm_plane_handle_cursor_update function. Previously, 'afb' was assumed to be null, but was used later in the code without a null check. This could potentially lead to a null pointer dereference. Changes since v1: - Moved the null check for 'afb' to the line where 'afb' is used. (Alex) Fixes the below: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c:1298 amdgpu_dm_plane_handle_cursor_update() error: we previously assumed 'afb' could be null (see line 1252)",
"evidence": "osv:CVE-2024-49905",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.113",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.55",
"evidence": "/affected/1/ranges"
},
{
"value": "6.10.14",
"evidence": "/affected/1/ranges"
},
{
"value": "6.11.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2024-49905",
"aliases": [
"CVE-2024-49905"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c"
},
{
"fixed": "bd0e24e5e608ccb9fdda300bb974496d6d8cf57d"
},
{
"fixed": "75839e2365b666ff4e1b9047e442cab138eac4f6"
},
{
"fixed": "9132882eaae4d21d2fc5843b3308379a481ebdf0"
},
{
"fixed": "e4e26cbe34d7c1c1db5fb7b3101573c29866439f"
},
{
"fixed": "cd9e9e0852d501f169aa3bb34e4b413d2eb48c37"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49905.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.15.0"
},
{
"fixed": "6.1.113"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.55"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.10.14"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.11.0"
},
{
"fixed": "6.11.3"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49905.json"
}
}
],
"modified": "2026-10-28T02:30:46.551545341Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/75839e2365b666ff4e1b9047e442cab138eac4f6",
"https://git.kernel.org/stable/c/9132882eaae4d21d2fc5843b3308379a481ebdf0",
"https://git.kernel.org/stable/c/bd0e24e5e608ccb9fdda300bb974496d6d8cf57d",
"https://git.kernel.org/stable/c/cd9e9e0852d501f169aa3bb34e4b413d2eb48c37",
"https://git.kernel.org/stable/c/e4e26cbe34d7c1c1db5fb7b3101573c29866439f",
"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49905.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-49905",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49905.json"
}
},
"related_cves": [
{
"value": "CVE-2024-49905",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 514488,
"published_at": "2024-10-21T18:01:36.038+00:00"
}