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)
[
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 3976.0,
"function_hash": "115416946564571185243685183138564292640"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@265422915416468ba91bffa56addbff45e18342a",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/core/dc_resource.c",
"function": "resource_build_scaling_params"
},
"id": "CVE-2025-21941-04cebf2a"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 5954.0,
"function_hash": "258511322843247147730319068720947916686"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e0345c3478f185ca840daac7f08a1fcd4ebec3e9",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/core/dc_resource.c",
"function": "resource_build_scaling_params"
},
"id": "CVE-2025-21941-073bd409"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 5499.0,
"function_hash": "110382201255361030778963266285965576828"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c1e54752dc12e90305eb0475ca908f42f5b369ca",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/core/dc_resource.c",
"function": "resource_build_scaling_params"
},
"id": "CVE-2025-21941-0fa47c92"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 4253.0,
"function_hash": "217836245177175493782909753837843437684"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3b3c2be58d5275aa59d8b4810a59f173f2f5bac1",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/core/dc_resource.c",
"function": "resource_build_scaling_params"
},
"id": "CVE-2025-21941-1d7d9aa4"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 4239.0,
"function_hash": "191795951943155314125253749659934731157"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f435192e00bc4d5d4134356b93212670ec47fa8d",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/core/dc_resource.c",
"function": "resource_build_scaling_params"
},
"id": "CVE-2025-21941-314b4c09"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"276738800591451711961504624174820536828",
"175527746957473018867210565795667674442",
"89865937607818864126534590218041337719",
"275078999566927606496939765177381687644"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@265422915416468ba91bffa56addbff45e18342a",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/core/dc_resource.c"
},
"id": "CVE-2025-21941-4ae467b6"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"305532846657955891865067518801006332840",
"175527746957473018867210565795667674442",
"89865937607818864126534590218041337719",
"275078999566927606496939765177381687644"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3b3c2be58d5275aa59d8b4810a59f173f2f5bac1",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/core/dc_resource.c"
},
"id": "CVE-2025-21941-5066cad4"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"222381156168009015203145820713278856649",
"175527746957473018867210565795667674442",
"89865937607818864126534590218041337719",
"275078999566927606496939765177381687644"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@374c9faac5a763a05bc3f68ad9f73dab3c6aec90",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/core/dc_resource.c"
},
"id": "CVE-2025-21941-62e6ed95"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"276738800591451711961504624174820536828",
"175527746957473018867210565795667674442",
"89865937607818864126534590218041337719",
"275078999566927606496939765177381687644"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c1e54752dc12e90305eb0475ca908f42f5b369ca",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/core/dc_resource.c"
},
"id": "CVE-2025-21941-78239e19"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"222381156168009015203145820713278856649",
"175527746957473018867210565795667674442",
"89865937607818864126534590218041337719",
"275078999566927606496939765177381687644"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3748fad09d89e9a5290e1738fd6872a79f794743",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/core/dc_resource.c"
},
"id": "CVE-2025-21941-8e32726f"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 5954.0,
"function_hash": "258511322843247147730319068720947916686"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3748fad09d89e9a5290e1738fd6872a79f794743",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/core/dc_resource.c",
"function": "resource_build_scaling_params"
},
"id": "CVE-2025-21941-a2bb0491"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"222381156168009015203145820713278856649",
"175527746957473018867210565795667674442",
"89865937607818864126534590218041337719",
"275078999566927606496939765177381687644"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e0345c3478f185ca840daac7f08a1fcd4ebec3e9",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/core/dc_resource.c"
},
"id": "CVE-2025-21941-ae8693ce"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 5954.0,
"function_hash": "258511322843247147730319068720947916686"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@374c9faac5a763a05bc3f68ad9f73dab3c6aec90",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/core/dc_resource.c",
"function": "resource_build_scaling_params"
},
"id": "CVE-2025-21941-e7cc3621"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"276738800591451711961504624174820536828",
"175527746957473018867210565795667674442",
"89865937607818864126534590218041337719",
"275078999566927606496939765177381687644"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f435192e00bc4d5d4134356b93212670ec47fa8d",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/core/dc_resource.c"
},
"id": "CVE-2025-21941-fd76ad45"
}
]