# CVE-2024-27008: drm: nv04: Fix out of bounds access

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 23% of CVEs (2026-12-01)
- Published: 2024-05-01T05:29:13.312Z
- Modified: 2026-06-17T07:18:55.540Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 2e5702aff39532662198459726c624d5eadbdd78 before c2b97f26f081ceec3298151481687071075a25cb; from 2e5702aff39532662198459726c624d5eadbdd78 before 5050ae879a828d752b439e3827aac126709da6d1; from 2e5702aff39532662198459726c624d5eadbdd78 before 097c7918fcfa1dee233acfd1f3029f00c3bc8062; from 2e5702aff39532662198459726c624d5eadbdd78 before df0991da7db846f7fa4ec6740350f743d3b69b04; from 2e5702aff39532662198459726c624d5eadbdd78 before 5fd4b090304e450aa0e7cc9cc2b4873285c6face; from 2e5702aff39532662198459726c624d5eadbdd78 before 6690cc2732e2a8d0eaca44dcbac032a4b0148042; from 2e5702aff39532662198459726c624d5eadbdd78 before 26212da39ee14a52c76a202c6ae5153a84f579a5; from 2e5702aff39532662198459726c624d5eadbdd78 before cf92bb778eda7830e79452c6917efa8474a30c1e; 2.6.38 (not affected: before 2.6.38; from 4.19.313 up to 4.19.*; from 5.4.275 up to 5.4.*; from 5.10.216 up to 5.10.*; from 5.15.157 up to 5.15.*; from 6.1.88 up to 6.1.*; from 6.6.29 up to 6.6.*; from 6.8.8 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 2.6.38 before 4.19.313; from 4.20 before 5.4.275; from 5.5 before 5.10.216; from 5.11 before 5.15.157; from 5.16 before 6.1.88; from 6.2 before 6.6.29; from 6.7 before 6.8.8; 6.9
- debian debian_linux: 10.0
- fedoraproject fedora: 38; 39; 40

## References

- <https://git.kernel.org/stable/c/c2b97f26f081ceec3298151481687071075a25cb> (mailing-list, patch)
- <https://git.kernel.org/stable/c/5050ae879a828d752b439e3827aac126709da6d1> (mailing-list, patch)
- <https://git.kernel.org/stable/c/097c7918fcfa1dee233acfd1f3029f00c3bc8062> (mailing-list, patch)
- <https://git.kernel.org/stable/c/df0991da7db846f7fa4ec6740350f743d3b69b04> (mailing-list, patch)
- <https://git.kernel.org/stable/c/5fd4b090304e450aa0e7cc9cc2b4873285c6face> (mailing-list, patch)
- <https://git.kernel.org/stable/c/6690cc2732e2a8d0eaca44dcbac032a4b0148042> (mailing-list, patch)
- <https://git.kernel.org/stable/c/26212da39ee14a52c76a202c6ae5153a84f579a5> (mailing-list, patch)
- <https://git.kernel.org/stable/c/cf92bb778eda7830e79452c6917efa8474a30c1e> (mailing-list, patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2024-27008](https://www.cve.org/CVERecord?id=CVE-2024-27008), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-27008](https://nvd.nist.gov/vuln/detail/CVE-2024-27008), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-27008 · Whole record: https://cve.day/CVE-2024-27008.json · Rebuilt by cve.day 2026-11-25T22:58:39.768Z
