CVE-2024-43904

drm/amd/display: Add null checks for 'stream' and 'plane' before dereferencing

State
Published
Severity
Not scored
Published
Aug 26, 2024
Updated
May 11, 2026
Reserved
Aug 17, 2024

Read the record on cve.org

Description

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

drm/amd/display: Add null checks for 'stream' and 'plane' before dereferencing

This commit adds null checks for the 'stream' and 'plane' variables in the dcn30_apply_idle_power_optimizations function. These variables were previously assumed to be null at line 922, but they were used later in the code without checking if they were null. This could potentially lead to a null pointer dereference, which would cause a crash.

The null checks ensure that 'stream' and 'plane' are not null before they are used, preventing potential crashes.

Fixes the below static smatch checker: drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn30/dcn30_hwseq.c:938 dcn30_apply_idle_power_optimizations() error: we previously assumed 'stream' could be null (see line 922) drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn30/dcn30_hwseq.c:940 dcn30_apply_idle_power_optimizations() error: we previously assumed 'plane' could be null (see line 922)

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c to before fcf9d6a9f30ea414b6b84a6e901cebd44e146847Affected
  • 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c to before 5e84eda48ffb2363437db44bbd0235594f8a58f9Affected
  • 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c to before 10c20d79d59cadfe572480d98cec271a89ffb024Affected
  • 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c to before 16a8a2a839d19c4cf7253642b493ffb8eee1d857Affected
  • 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c to before 15c2990e0f0108b9c3752d7072a97d45d4283aeaAffected
LinuxLinux
  • 4.15Affected
  • before 4.15Not affected
  • 5.15.181 through 5.15.*Not affected
  • 6.1.116 through 6.1.*Not affected
  • 6.6.60 through 6.6.*Not affected
  • 6.10.5 through 6.10.*Not affected
  • 6.11 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.