# CVE-2025-21941: drm/amd/display: Fix null check for pipe\_ctx-\>plane\_state in resource\_build\_scaling\_params

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-04-01 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2025-21941, DEBIAN-CVE-2025-21941
- Record: https://cvemate.com/vulnerability/CVE-2025-21941 · JSON: https://cvemate.com/vulnerability/CVE-2025-21941/json

## Description

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

drm/amd/display: Fix null check for pipe_ctx->plane_state in resource_build_scaling_params

Null pointer dereference issue could occur when pipe_ctx->plane_state
is null. The fix adds a check to ensure 'pipe_ctx->plane_state' is not
null before accessing. This prevents a null pointer dereference.

Found by code review.

(cherry picked from commit 63e6a77ccf239337baa9b1e7787cde9fa0462092)
```

## Signals

- CVSS: 5.5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.229%, percentile 14.592%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 140)

- debian linux (Debian): \< 6.1.133-1 \| \< 6.12.19-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-142.152 \| \< 6.8.0-84.84
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1086.93 \| \< 6.8.0-1039.41
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1086.93~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1039.41~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1086.93+fips1 \| \< 6.8.0-1039.41+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1091.100 \| \< 6.8.0-1038.44
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 45)

- <https://git.kernel.org/stable/c/265422915416468ba91bffa56addbff45e18342a>
- <https://git.kernel.org/stable/c/f435192e00bc4d5d4134356b93212670ec47fa8d>
- <https://git.kernel.org/stable/c/c1e54752dc12e90305eb0475ca908f42f5b369ca>
- <https://git.kernel.org/stable/c/3b3c2be58d5275aa59d8b4810a59f173f2f5bac1>
- <https://git.kernel.org/stable/c/e0345c3478f185ca840daac7f08a1fcd4ebec3e9>
- <https://git.kernel.org/stable/c/3748fad09d89e9a5290e1738fd6872a79f794743>
- <https://git.kernel.org/stable/c/374c9faac5a763a05bc3f68ad9f73dab3c6aec90>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://ubuntu.com/security/CVE-2025-21941>
- <https://www.cve.org/CVERecord?id=CVE-2025-21941>
- <https://git.kernel.org/linus/374c9faac5a763a05bc3f68ad9f73dab3c6aec90>
- <https://ubuntu.com/security/notices/USN-7591-1>
- <https://ubuntu.com/security/notices/USN-7591-2>
- <https://ubuntu.com/security/notices/USN-7591-3>
- <https://ubuntu.com/security/notices/USN-7592-1>
- <https://ubuntu.com/security/notices/USN-7593-1>
- <https://ubuntu.com/security/notices/USN-7591-4>
- <https://ubuntu.com/security/notices/USN-7597-1>
- <https://ubuntu.com/security/notices/USN-7597-2>

---

Data as of 2026-12-05T04:23:42.725Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
