drm/amd/display: fix shift-out-of-bounds in CalculateVMAndRowBytes
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: fix shift-out-of-bounds in CalculateVMAndRowBytes [WHY] When PTEBufferSizeInRequests is zero, UBSAN reports the following warning because dml_log2 returns an unexpected negative value: shift exponent 4294966273 is too large for 32-bit type 'int' [HOW] In the case PTEBufferSizeInRequests is zero, skip the dml_log2() and assign the result directly.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.176, 5.15.104, 6.1.21, 6.2.8
- CVEs
- CVE-2023-53077
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 15:43 UTC · Revision 1
Source evidence
drm/amd/display: fix shift-out-of-bounds in CalculateVMAndRowBytes
core-osv · Original sourcePublished 2 May 2025, 15:55 UTC
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: fix shift-out-of-bounds in CalculateVMAndRowBytes [WHY] When PTEBufferSizeInRequests is zero, UBSAN reports the following warning because dml_log2 returns an unexpected negative value: shift exponent 4294966273 is too large for 32-bit type 'int' [HOW] In the case PTEBufferSizeInRequests is zero, skip the dml_log2() and assign the result directly.
osv:CVE-2023-53077
Kernel
Fixed versions: 5.10.176, 5.15.104, 6.1.21, 6.2.8
Complete source record
{
"id": "bbdb40fe6291fdb255ee6302f3aaf6d8e048e0647ff69634cc214766133d04a7",
"url": "https://osv.dev/vulnerability/CVE-2023-53077",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "drm/amd/display: fix shift-out-of-bounds in CalculateVMAndRowBytes",
"summary": "In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: fix shift-out-of-bounds in CalculateVMAndRowBytes [WHY] When PTEBufferSizeInRequests is zero, UBSAN reports the following warning because dml_log2 returns an unexpected negative value: shift exponent 4294966273 is too large for 32-bit type 'int' [HOW] In the case PTEBufferSizeInRequests is zero, skip the dml_log2() and assign the result directly.",
"evidence": "osv:CVE-2023-53077",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.176",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.104",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.21",
"evidence": "/affected/1/ranges"
},
{
"value": "6.2.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2023-53077",
"aliases": [
"CVE-2023-53077"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6725a88f88a7e922e91c45bf83d320487810c192"
},
{
"fixed": "7257070be70e19a9138f39009c1a26c83a8a7cfa"
},
{
"fixed": "bec1bea2fa974e63f6059c33edde669c7894d0bc"
},
{
"fixed": "a16394b5d661afec9a264fecac3abd87aea439ea"
},
{
"fixed": "e12b95680821b9880cd9992c0f3555389363604f"
},
{
"fixed": "031f196d1b1b6d5dfcb0533b431e3ab1750e6189"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53077.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.9.0"
},
{
"fixed": "5.10.176"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.104"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.21"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.2.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53077.json"
}
}
],
"modified": "2026-10-28T02:30:30.459679962Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/031f196d1b1b6d5dfcb0533b431e3ab1750e6189",
"https://git.kernel.org/stable/c/7257070be70e19a9138f39009c1a26c83a8a7cfa",
"https://git.kernel.org/stable/c/a16394b5d661afec9a264fecac3abd87aea439ea",
"https://git.kernel.org/stable/c/bec1bea2fa974e63f6059c33edde669c7894d0bc",
"https://git.kernel.org/stable/c/e12b95680821b9880cd9992c0f3555389363604f",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53077.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-53077",
"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/2023/53xxx/CVE-2023-53077.json"
}
},
"related_cves": [
{
"value": "CVE-2023-53077",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 496946,
"published_at": "2025-05-02T15:55:27.613+00:00"
}