# CVE-2024-50177: drm/amd/display: fix a UBSAN warning in DML2.1

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **CWE:** CWE-190
- **Published:** 2024-11-08T05:23:59.205Z
- **Modified:** 2026-06-17T08:03:47.737Z

## Who should check

- Anyone running Linux \>= 70839da6360500a82e4d5f78499284474cbed7c1, \< 27bc3da5eae57e3af8f5648b4498ffde48781434; \>= 70839da6360500a82e4d5f78499284474cbed7c1, \< eaf3adb8faab611ba57594fa915893fc93a7788c
- Anyone running Linux 6.11

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/amd/display: fix a UBSAN warning in DML2.1

When programming phantom pipe, since cursor\_width is explicity set to 0,
this causes calculation logic to trigger overflow for an unsigned int
triggering the kernel's UBSAN check as below:

\[   40.962845\] UBSAN: shift-out-of-bounds in /tmp/amd.EfpumTkO/amd/amdgpu/../display/dc/dml2/dml21/src/dml2\_core/dml2\_core\_dcn4\_calcs.c:3312:34
\[   40.962849\] shift exponent 4294967170 is too large for 32-bit type 'unsigned int'
\[   40.962852\] CPU: 1 PID: 1670 Comm: gnome-shell Tainted: G        W  OE      6.5.0-41-generic \#41~22.04.2-Ubuntu
\[   40.962854\] Hardware name: Gigabyte Technology Co., Ltd. X670E AORUS PRO X/X670E AORUS PRO X, BIOS F21 01/10/2024
\[   40.962856\] Call Trace:
\[   40.962857\]  \<TASK\>
\[   40.962860\]  dump\_stack\_lvl+0x48/0x70
\[   40.962870\]  dump\_stack+0x10/0x20
\[   40.962872\]  \_\_ubsan\_handle\_shift\_out\_of\_bounds+0x1ac/0x360
\[   40.962878\]  calculate\_cursor\_req\_attributes.cold+0x1b/0x28 \[amdgpu\]
\[   40.963099\]  dml\_core\_mode\_support+0x6b91/0x16bc0 \[amdgpu\]
\[   40.963327\]  ? srso\_alias\_return\_thunk+0x5/0x7f
\[   40.963331\]  ? CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport+0x18b8/0x2790 \[amdgpu\]
\[   40.963534\]  ? srso\_alias\_return\_thunk+0x5/0x7f
\[   40.963536\]  ? dml\_core\_mode\_support+0xb3db/0x16bc0 \[amdgpu\]
\[   40.963730\]  dml2\_core\_calcs\_mode\_support\_ex+0x2c/0x90 \[amdgpu\]
\[   40.963906\]  ? srso\_alias\_return\_thunk+0x5/0x7f
\[   40.963909\]  ? dml2\_core\_calcs\_mode\_support\_ex+0x2c/0x90 \[amdgpu\]
\[   40.964078\]  core\_dcn4\_mode\_support+0x72/0xbf0 \[amdgpu\]
\[   40.964247\]  dml2\_top\_optimization\_perform\_optimization\_phase+0x1d3/0x2a0 \[amdgpu\]
\[   40.964420\]  dml2\_build\_mode\_programming+0x23d/0x750 \[amdgpu\]
\[   40.964587\]  dml21\_validate+0x274/0x770 \[amdgpu\]
\[   40.964761\]  ? srso\_alias\_return\_thunk+0x5/0x7f
\[   40.964763\]  ? resource\_append\_dpp\_pipes\_for\_plane\_composition+0x27c/0x3b0 \[amdgpu\]
\[   40.964942\]  dml2\_validate+0x504/0x750 \[amdgpu\]
\[   40.965117\]  ? dml21\_copy+0x95/0xb0 \[amdgpu\]
\[   40.965291\]  ? srso\_alias\_return\_thunk+0x5/0x7f
\[   40.965295\]  dcn401\_validate\_bandwidth+0x4e/0x70 \[amdgpu\]
\[   40.965491\]  update\_planes\_and\_stream\_state+0x38d/0x5c0 \[amdgpu\]
\[   40.965672\]  update\_planes\_and\_stream\_v3+0x52/0x1e0 \[amdgpu\]
\[   40.965845\]  ? srso\_alias\_return\_thunk+0x5/0x7f
\[   40.965849\]  dc\_update\_planes\_and\_stream+0x71/0xb0 \[amdgpu\]

Fix this by adding a guard for checking cursor width before triggering
the size calculation.

## Affected and fixed versions

- Linux: \>= 70839da6360500a82e4d5f78499284474cbed7c1, \< 27bc3da5eae57e3af8f5648b4498ffde48781434; \>= 70839da6360500a82e4d5f78499284474cbed7c1, \< eaf3adb8faab611ba57594fa915893fc93a7788c (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-50177. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50177.md
Affected: Linux >= 70839da6360500a82e4d5f78499284474cbed7c1, < 27bc3da5eae57e3af8f5648b4498ffde48781434; >= 70839da6360500a82e4d5f78499284474cbed7c1, < eaf3adb8faab611ba57594fa915893fc93a7788c; Linux 6.11
Fixed in: Linux 27bc3da5eae57e3af8f5648b4498ffde48781434

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-50177 being exploited?

There is no confirmed exploitation: CVE-2024-50177 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-50177?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-50177?

Linux \>= 70839da6360500a82e4d5f78499284474cbed7c1, \< 27bc3da5eae57e3af8f5648b4498ffde48781434; \>= 70839da6360500a82e4d5f78499284474cbed7c1, \< eaf3adb8faab611ba57594fa915893fc93a7788c; Linux 6.11.

### Is there a fix for CVE-2024-50177?

Yes. Fixed in Linux 27bc3da5eae57e3af8f5648b4498ffde48781434. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-50177?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/27bc3da5eae57e3af8f5648b4498ffde48781434>
- patch: <https://git.kernel.org/stable/c/eaf3adb8faab611ba57594fa915893fc93a7788c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-50177>

HTML: <https://flawdb.com/CVE-2024-50177> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-50177>
