# CVE-2024-57918: drm/amd/display: fix page fault due to max surface definition mismatch

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.28% (percentile 13, 2026-11-26)
- **Published:** 2025-01-19T11:52:38.535Z
- **Modified:** 2026-08-05T11:46:54.415Z

## Who should check

- Anyone running Linux \>= 1b04dcca4fb10dd3834893a60de74edd99f2bfaf, \< 37b8de96ae48c7bb1a17cd5585195c43fcacbe94; \>= 1b04dcca4fb10dd3834893a60de74edd99f2bfaf, \< 7de8d5c90be9ad9f6575e818a674801db2ada794
- Anyone running Linux 6.11

## Description

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

drm/amd/display: fix page fault due to max surface definition mismatch

DC driver is using two different values to define the maximum number of
surfaces: MAX\_SURFACES and MAX\_SURFACE\_NUM. Consolidate MAX\_SURFACES as
the unique definition for surface updates across DC.

It fixes page fault faced by Cosmic users on AMD display versions that
support two overlay planes, since the introduction of cursor overlay
mode.

\[Nov26 21:33\] BUG: unable to handle page fault for address: 0000000051d0f08b
\[  +0.000015\] \#PF: supervisor read access in kernel mode
\[  +0.000006\] \#PF: error\_code(0x0000) - not-present page
\[  +0.000005\] PGD 0 P4D 0
\[  +0.000007\] Oops: Oops: 0000 \[\#1\] PREEMPT SMP NOPTI
\[  +0.000006\] CPU: 4 PID: 71 Comm: kworker/u32:6 Not tainted 6.10.0+ \#300
\[  +0.000006\] Hardware name: Valve Jupiter/Jupiter, BIOS F7A0131 01/30/2024
\[  +0.000007\] Workqueue: events\_unbound commit\_work \[drm\_kms\_helper\]
\[  +0.000040\] RIP: 0010:copy\_stream\_update\_to\_stream.isra.0+0x30d/0x750 \[amdgpu\]
\[  +0.000847\] Code: 8b 10 49 89 94 24 f8 00 00 00 48 8b 50 08 49 89 94 24 00 01 00 00 8b 40 10 41 89 84 24 08 01 00 00 49 8b 45 78 48 85 c0 74 0b \<0f\> b6 00 41 88 84 24 90 64 00 00 49 8b 45 60 48 85 c0 74 3b 48 8b
\[  +0.000010\] RSP: 0018:ffffc203802f79a0 EFLAGS: 00010206
\[  +0.000009\] RAX: 0000000051d0f08b RBX: 0000000000000004 RCX: ffff9f964f0a8070
\[  +0.000004\] RDX: ffff9f9710f90e40 RSI: ffff9f96600c8000 RDI: ffff9f964f000000
\[  +0.000004\] RBP: ffffc203802f79f8 R08: 0000000000000000 R09: 0000000000000000
\[  +0.000005\] R10: 0000000000000000 R11: 0000000000000000 R12: ffff9f96600c8000
\[  +0.000004\] R13: ffff9f9710f90e40 R14: ffff9f964f000000 R15: ffff9f96600c8000
\[  +0.000004\] FS:  0000000000000000(0000) GS:ffff9f9970000000(0000) knlGS:0000000000000000
\[  +0.000005\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  +0.000005\] CR2: 0000000051d0f08b CR3: 00000002e6a20000 CR4: 0000000000350ef0
\[  +0.000005\] Call Trace:
\[  +0.000011\]  \<TASK\>
\[  +0.000010\]  ? \_\_die\_body.cold+0x19/0x27
\[  +0.000012\]  ? page\_fault\_oops+0x15a/0x2d0
\[  +0.000014\]  ? exc\_page\_fault+0x7e/0x180
\[  +0.000009\]  ? asm\_exc\_page\_fault+0x26/0x30
\[  +0.000013\]  ? copy\_stream\_update\_to\_stream.isra.0+0x30d/0x750 \[amdgpu\]
\[  +0.000739\]  ? dc\_commit\_state\_no\_check+0xd6c/0xe70 \[amdgpu\]
\[  +0.000470\]  update\_planes\_and\_stream\_state+0x49b/0x4f0 \[amdgpu\]
\[  +0.000450\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000009\]  ? commit\_minimal\_transition\_state+0x239/0x3d0 \[amdgpu\]
\[  +0.000446\]  update\_planes\_and\_stream\_v2+0x24a/0x590 \[amdgpu\]
\[  +0.000464\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000009\]  ? sort+0x31/0x50
\[  +0.000007\]  ? amdgpu\_dm\_atomic\_commit\_tail+0x159f/0x3a30 \[amdgpu\]
\[  +0.000508\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000009\]  ? amdgpu\_crtc\_get\_scanout\_position+0x28/0x40 \[amdgpu\]
\[  +0.000377\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000009\]  ? drm\_crtc\_vblank\_helper\_get\_vblank\_timestamp\_internal+0x160/0x390 \[drm\]
\[  +0.000058\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000005\]  ? dma\_fence\_default\_wait+0x8c/0x260
\[  +0.000010\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000005\]  ? wait\_for\_completion\_timeout+0x13b/0x170
\[  +0.000006\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000005\]  ? dma\_fence\_wait\_timeout+0x108/0x140
\[  +0.000010\]  ? commit\_tail+0x94/0x130 \[drm\_kms\_helper\]
\[  +0.000024\]  ? process\_one\_work+0x177/0x330
\[  +0.000008\]  ? worker\_thread+0x266/0x3a0
\[  +0.000006\]  ? \_\_pfx\_worker\_thread+0x10/0x10
\[  +0.000004\]  ? kthread+0xd2/0x100
\[  +0.000006\]  ? \_\_pfx\_kthread+0x10/0x10
\[  +0.000006\]  ? ret\_from\_fork+0x34/0x50
\[  +0.000004\]  ? \_\_pfx\_kthread+0x10/0x10
\[  +0.000005\]  ? ret\_from\_fork\_asm+0x1a/0x30
\[  +0.000011\]  \</TASK\>

(cherry picked from commit 1c86c81a86c60f9b15d3e3f43af0363cf56063e7)

## Affected and fixed versions

- Linux: \>= 1b04dcca4fb10dd3834893a60de74edd99f2bfaf, \< 37b8de96ae48c7bb1a17cd5585195c43fcacbe94; \>= 1b04dcca4fb10dd3834893a60de74edd99f2bfaf, \< 7de8d5c90be9ad9f6575e818a674801db2ada794 (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

- Upgrade Linux to 7de8d5c90be9ad9f6575e818a674801db2ada794 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-57918. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-57918.md
Affected: Linux >= 1b04dcca4fb10dd3834893a60de74edd99f2bfaf, < 37b8de96ae48c7bb1a17cd5585195c43fcacbe94; >= 1b04dcca4fb10dd3834893a60de74edd99f2bfaf, < 7de8d5c90be9ad9f6575e818a674801db2ada794; Linux 6.11
Fixed in: Linux 37b8de96ae48c7bb1a17cd5585195c43fcacbe94, Linux 7de8d5c90be9ad9f6575e818a674801db2ada794

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

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

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

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

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

Linux \>= 1b04dcca4fb10dd3834893a60de74edd99f2bfaf, \< 37b8de96ae48c7bb1a17cd5585195c43fcacbe94; \>= 1b04dcca4fb10dd3834893a60de74edd99f2bfaf, \< 7de8d5c90be9ad9f6575e818a674801db2ada794; Linux 6.11.

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

Yes. Fixed in Linux 37b8de96ae48c7bb1a17cd5585195c43fcacbe94, Linux 7de8d5c90be9ad9f6575e818a674801db2ada794. Upgrade Linux to 7de8d5c90be9ad9f6575e818a674801db2ada794 or later.

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

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/37b8de96ae48c7bb1a17cd5585195c43fcacbe94>
- patch: <https://git.kernel.org/stable/c/7de8d5c90be9ad9f6575e818a674801db2ada794>

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

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