CVE-2025-21941

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-21941
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21941.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21941
Downstream
Related
Published
2025-04-01T15:41:06.489Z
Modified
2025-11-27T02:32:54.761657Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
drm/amd/display: Fix null check for pipe_ctx->plane_state in resource_build_scaling_params
Details

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

drm/amd/display: Fix null check for pipectx->planestate in resourcebuildscaling_params

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

Found by code review.

(cherry picked from commit 63e6a77ccf239337baa9b1e7787cde9fa0462092)

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/blob/cc431b3424123d84bcd7afd4de150b33f117a8ef/cves/2025/21xxx/CVE-2025-21941.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3be5262e353b8ab97c528bfc7d0dd3c820e4ba27
Fixed
265422915416468ba91bffa56addbff45e18342a
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3be5262e353b8ab97c528bfc7d0dd3c820e4ba27
Fixed
f435192e00bc4d5d4134356b93212670ec47fa8d
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3be5262e353b8ab97c528bfc7d0dd3c820e4ba27
Fixed
c1e54752dc12e90305eb0475ca908f42f5b369ca
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3be5262e353b8ab97c528bfc7d0dd3c820e4ba27
Fixed
3b3c2be58d5275aa59d8b4810a59f173f2f5bac1
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3be5262e353b8ab97c528bfc7d0dd3c820e4ba27
Fixed
e0345c3478f185ca840daac7f08a1fcd4ebec3e9
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3be5262e353b8ab97c528bfc7d0dd3c820e4ba27
Fixed
3748fad09d89e9a5290e1738fd6872a79f794743
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3be5262e353b8ab97c528bfc7d0dd3c820e4ba27
Fixed
374c9faac5a763a05bc3f68ad9f73dab3c6aec90

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
5.10.236
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.180
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.131
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.83
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.19
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.7