drm: nv04: Fix out of bounds access
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2e5702aff39532662198459726c624d5eadbdd78 · < 6690cc2732e2a8d0eaca44dcbac032a4b0148042| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s drm nv04 code can access the dac_users array out of bounds when dcb->or is zero. The input does not establish how an attacker could trigger this issue or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check whether their version is affected; affected versions are not specified.