CVE-2025-38205 drm/amd/display: Avoid divide by zero by initializing dummy pitch to 1
A divide-by-zero error in the AMD display driver can cause a system crash, requiring a kernel patch to prevent denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-38205?
CVE-2025-38205 is a medium-severity denial of service vulnerability in Linux kernel, published on 4 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Avoid divide by zero by initializing dummy pitch to 1
[Why] If the dummy values in `populate_dummy_dml_surface_cfg()` aren't updated then they can lead to a divide by zero in downstream callers like CalculateVMAndRowBytes()
[How] Initialize dummy value to a value to avoid divide by zero.
Weakness: CWE-369
Which versions are affected by CVE-2025-38205?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-38205?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2025-38205 being exploited?
There is no known exploitation of CVE-2025-38205 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-38205, DEBIAN-CVE-2025-38205, GHSA-f6pw-2j25-jj48, ROOT-OS-DEBIAN-12-CVE-2025-38205, ROOT-OS-DEBIAN-13-CVE-2025-38205, ROOT-OS-UBUNTU-2204-CVE-2025-38205 and 2 more.