# CVE-2024-57919: drm/amd/display: fix divide error in DM plane scale calcs

> 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-369
- **Published:** 2025-01-19T11:52:39.192Z
- **Modified:** 2026-06-17T08:14:14.050Z

## Who should check

- Anyone running Linux \>= 1b04dcca4fb10dd3834893a60de74edd99f2bfaf, \< c2eaa73bd542b0168a0519e4a1c6e94bc121ec3d; \>= 1b04dcca4fb10dd3834893a60de74edd99f2bfaf, \< 5225fd2a26211d012533acf98a6ad3f983885817
- Anyone running Linux 6.11

## Description

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

drm/amd/display: fix divide error in DM plane scale calcs

dm\_get\_plane\_scale doesn't take into account plane scaled size equal to
zero, leading to a kernel oops due to division by zero. Fix by setting
out-scale size as zero when the dst size is zero, similar to what is
done by drm\_calc\_scale(). This issue started with the introduction of
cursor ovelay mode that uses this function to assess cursor mode changes
via dm\_crtc\_get\_cursor\_mode() before checking plane state.

\[Dec17 17:14\] Oops: divide error: 0000 \[\#1\] PREEMPT SMP NOPTI
\[  +0.000018\] CPU: 5 PID: 1660 Comm: surface-DP-1 Not tainted 6.10.0+ \#231
\[  +0.000007\] Hardware name: Valve Jupiter/Jupiter, BIOS F7A0131 01/30/2024
\[  +0.000004\] RIP: 0010:dm\_get\_plane\_scale+0x3f/0x60 \[amdgpu\]
\[  +0.000553\] Code: 44 0f b7 41 3a 44 0f b7 49 3e 83 e0 0f 48 0f a3 c2 73 21 69 41 28 e8 03 00 00 31 d2 41 f7 f1 31 d2 89 06 69 41 2c e8 03 00 00 \<41\> f7 f0 89 07 e9 d7 d8 7e e9 44 89 c8 45 89 c1 41 89 c0 eb d4 66
\[  +0.000005\] RSP: 0018:ffffa8df0de6b8a0 EFLAGS: 00010246
\[  +0.000006\] RAX: 00000000000003e8 RBX: ffff9ac65c1f6e00 RCX: ffff9ac65d055500
\[  +0.000003\] RDX: 0000000000000000 RSI: ffffa8df0de6b8b0 RDI: ffffa8df0de6b8b4
\[  +0.000004\] RBP: ffff9ac64e7a5800 R08: 0000000000000000 R09: 0000000000000a00
\[  +0.000003\] R10: 00000000000000ff R11: 0000000000000054 R12: ffff9ac6d0700010
\[  +0.000003\] R13: ffff9ac65d054f00 R14: ffff9ac65d055500 R15: ffff9ac64e7a60a0
\[  +0.000004\] FS:  00007f869ea00640(0000) GS:ffff9ac970080000(0000) knlGS:0000000000000000
\[  +0.000004\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  +0.000003\] CR2: 000055ca701becd0 CR3: 000000010e7f2000 CR4: 0000000000350ef0
\[  +0.000004\] Call Trace:
\[  +0.000007\]  \<TASK\>
\[  +0.000006\]  ? \_\_die\_body.cold+0x19/0x27
\[  +0.000009\]  ? die+0x2e/0x50
\[  +0.000007\]  ? do\_trap+0xca/0x110
\[  +0.000007\]  ? do\_error\_trap+0x6a/0x90
\[  +0.000006\]  ? dm\_get\_plane\_scale+0x3f/0x60 \[amdgpu\]
\[  +0.000504\]  ? exc\_divide\_error+0x38/0x50
\[  +0.000005\]  ? dm\_get\_plane\_scale+0x3f/0x60 \[amdgpu\]
\[  +0.000488\]  ? asm\_exc\_divide\_error+0x1a/0x20
\[  +0.000011\]  ? dm\_get\_plane\_scale+0x3f/0x60 \[amdgpu\]
\[  +0.000593\]  dm\_crtc\_get\_cursor\_mode+0x33f/0x430 \[amdgpu\]
\[  +0.000562\]  amdgpu\_dm\_atomic\_check+0x2ef/0x1770 \[amdgpu\]
\[  +0.000501\]  drm\_atomic\_check\_only+0x5e1/0xa30 \[drm\]
\[  +0.000047\]  drm\_mode\_atomic\_ioctl+0x832/0xcb0 \[drm\]
\[  +0.000050\]  ? \_\_pfx\_drm\_mode\_atomic\_ioctl+0x10/0x10 \[drm\]
\[  +0.000047\]  drm\_ioctl\_kernel+0xb3/0x100 \[drm\]
\[  +0.000062\]  drm\_ioctl+0x27a/0x4f0 \[drm\]
\[  +0.000049\]  ? \_\_pfx\_drm\_mode\_atomic\_ioctl+0x10/0x10 \[drm\]
\[  +0.000055\]  amdgpu\_drm\_ioctl+0x4e/0x90 \[amdgpu\]
\[  +0.000360\]  \_\_x64\_sys\_ioctl+0x97/0xd0
\[  +0.000010\]  do\_syscall\_64+0x82/0x190
\[  +0.000008\]  ? \_\_pfx\_drm\_mode\_createblob\_ioctl+0x10/0x10 \[drm\]
\[  +0.000044\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000006\]  ? drm\_ioctl\_kernel+0xb3/0x100 \[drm\]
\[  +0.000040\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000005\]  ? \_\_check\_object\_size+0x50/0x220
\[  +0.000007\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000005\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000005\]  ? drm\_ioctl+0x2a4/0x4f0 \[drm\]
\[  +0.000039\]  ? \_\_pfx\_drm\_mode\_createblob\_ioctl+0x10/0x10 \[drm\]
\[  +0.000043\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000005\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000005\]  ? \_\_pm\_runtime\_suspend+0x69/0xc0
\[  +0.000006\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000005\]  ? amdgpu\_drm\_ioctl+0x71/0x90 \[amdgpu\]
\[  +0.000366\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000006\]  ? syscall\_exit\_to\_user\_mode+0x77/0x210
\[  +0.000007\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000005\]  ? do\_syscall\_64+0x8e/0x190
\[  +0.000006\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000006\]  ? do\_syscall\_64+0x8e/0x190
\[  +0.000006\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000007\]  entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
\[  +0.000008\] RIP: 0033:0x55bb7cd962bc
\[  +0.000007\] Code: 4c 89 6c 24 18 4c 89 64 24 20 4c 89 74 24 28 0f 57 c0 0f 11 44 24 30 89 c7 48 8d 54 24 08 b8 10 00 00 00 be bc 64
---truncated---

## Affected and fixed versions

- Linux: \>= 1b04dcca4fb10dd3834893a60de74edd99f2bfaf, \< c2eaa73bd542b0168a0519e4a1c6e94bc121ec3d; \>= 1b04dcca4fb10dd3834893a60de74edd99f2bfaf, \< 5225fd2a26211d012533acf98a6ad3f983885817 (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

- Upgrade Linux to 5225fd2a26211d012533acf98a6ad3f983885817 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-57919.md
Affected: Linux >= 1b04dcca4fb10dd3834893a60de74edd99f2bfaf, < c2eaa73bd542b0168a0519e4a1c6e94bc121ec3d; >= 1b04dcca4fb10dd3834893a60de74edd99f2bfaf, < 5225fd2a26211d012533acf98a6ad3f983885817; Linux 6.11
Fixed in: Linux 5225fd2a26211d012533acf98a6ad3f983885817

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-57919 being exploited?

There is no confirmed exploitation: CVE-2024-57919 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-57919?

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

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

Linux \>= 1b04dcca4fb10dd3834893a60de74edd99f2bfaf, \< c2eaa73bd542b0168a0519e4a1c6e94bc121ec3d; \>= 1b04dcca4fb10dd3834893a60de74edd99f2bfaf, \< 5225fd2a26211d012533acf98a6ad3f983885817; Linux 6.11.

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

Yes. Fixed in Linux 5225fd2a26211d012533acf98a6ad3f983885817. Upgrade Linux to 5225fd2a26211d012533acf98a6ad3f983885817 or later.

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

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/c2eaa73bd542b0168a0519e4a1c6e94bc121ec3d>
- patch: <https://git.kernel.org/stable/c/5225fd2a26211d012533acf98a6ad3f983885817>

## 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-57919>

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