drm: nv04: Fix out of bounds access
In the Linux kernel, the following vulnerability has been resolved: drm: nv04: Fix out of bounds access When Output Resource (dcb->or) value is assigned in fabricate_dcb_output(), there may be out of bounds access to dac_users array in case dcb->or is zero because ffs(dcb->or) is used as index there. The 'or' argument of fabricate_dcb_output() must be interpreted as a number of bit to set, not value. Utilize macros from 'enum nouveau_or' in calls instead of hardcoding. Found by Linux Verification Center (linuxtesting.org) with SVACE.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.19.313, 5.10.216, 5.15.157, 5.4.275, 6.1.88, 6.6.29, 6.8.8
- CVEs
- CVE-2024-27008
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 18:19 UTC · Revision 1
Source evidence
In the Linux kernel, the following vulnerability has been resolved: drm: nv04: Fix out of bounds access When Output Resource (dcb->or) value is assigned in fabricate_dcb_output(), there may be out of bounds access to dac_users array in case dcb->or is zero because ffs(dcb->or) is used as index there. The 'or' argument of fabricate_dcb_output() must be interpreted as a number of bit to set, not value. Utilize macros from 'enum nouveau_or' in calls instead of hardcoding. Found by Linux Verification Center (linuxtesting.org) with SVACE.
osv:CVE-2024-27008
Kernel
Fixed versions: 4.19.313, 5.4.275, 5.10.216, 5.15.157, 6.1.88, 6.6.29, 6.8.8
Complete source record
{
"id": "60af78440d54fa64f0a0bb4a8aa6c155aa1a3b5d2752a3763dfd72829de9555d",
"url": "https://osv.dev/vulnerability/CVE-2024-27008",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "drm: nv04: Fix out of bounds access",
"summary": "In the Linux kernel, the following vulnerability has been resolved: drm: nv04: Fix out of bounds access When Output Resource (dcb->or) value is assigned in fabricate_dcb_output(), there may be out of bounds access to dac_users array in case dcb->or is zero because ffs(dcb->or) is used as index there. The 'or' argument of fabricate_dcb_output() must be interpreted as a number of bit to set, not value. Utilize macros from 'enum nouveau_or' in calls instead of hardcoding. Found by Linux Verification Center (linuxtesting.org) with SVACE.",
"evidence": "osv:CVE-2024-27008",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.19.313",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.275",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.216",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.157",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.88",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.29",
"evidence": "/affected/1/ranges"
},
{
"value": "6.8.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2024-27008",
"aliases": [
"CVE-2024-27008"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "2e5702aff39532662198459726c624d5eadbdd78"
},
{
"fixed": "c2b97f26f081ceec3298151481687071075a25cb"
},
{
"fixed": "5050ae879a828d752b439e3827aac126709da6d1"
},
{
"fixed": "097c7918fcfa1dee233acfd1f3029f00c3bc8062"
},
{
"fixed": "df0991da7db846f7fa4ec6740350f743d3b69b04"
},
{
"fixed": "5fd4b090304e450aa0e7cc9cc2b4873285c6face"
},
{
"fixed": "6690cc2732e2a8d0eaca44dcbac032a4b0148042"
},
{
"fixed": "26212da39ee14a52c76a202c6ae5153a84f579a5"
},
{
"fixed": "cf92bb778eda7830e79452c6917efa8474a30c1e"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27008.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.6.38"
},
{
"fixed": "4.19.313"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.275"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.216"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.157"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.88"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.29"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.8.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27008.json"
}
}
],
"modified": "2026-10-28T02:30:51.515448537Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/097c7918fcfa1dee233acfd1f3029f00c3bc8062",
"https://git.kernel.org/stable/c/26212da39ee14a52c76a202c6ae5153a84f579a5",
"https://git.kernel.org/stable/c/5050ae879a828d752b439e3827aac126709da6d1",
"https://git.kernel.org/stable/c/5fd4b090304e450aa0e7cc9cc2b4873285c6face",
"https://git.kernel.org/stable/c/6690cc2732e2a8d0eaca44dcbac032a4b0148042",
"https://git.kernel.org/stable/c/c2b97f26f081ceec3298151481687071075a25cb",
"https://git.kernel.org/stable/c/cf92bb778eda7830e79452c6917efa8474a30c1e",
"https://git.kernel.org/stable/c/df0991da7db846f7fa4ec6740350f743d3b69b04",
"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html",
"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html",
"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/",
"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/",
"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27008.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-27008",
"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/27xxx/CVE-2024-27008.json"
}
},
"related_cves": [
{
"value": "CVE-2024-27008",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 520078,
"published_at": "2024-05-01T05:29:13.312+00:00"
}