CVE-2024-42118
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2024-42118 affects the Linux kernel's AMD display driver (drm/amd/display). The vulnerability was discovered when the resourcestreamtostreamidx function was found to return -1 when not found, which is not a valid array index number. This issue was disclosed on July 30, 2024 (NVD, Ubuntu).

Technical details

The vulnerability exists in the AMD display driver's resource handling code where the resourcestreamtostreamidx function could return a negative array index (-1) when a stream is not found. This could potentially lead to an array overflow condition and negative returns issues as reported by Coverity static analysis tool (Kernel Commit).

Impact

The vulnerability could potentially lead to array overflow conditions in the AMD display driver, which might result in memory corruption or system instability. The issue affects various Linux distributions including Ubuntu 22.04 LTS and 20.04 LTS (Ubuntu).

Mitigation and workarounds

The issue has been fixed in Linux kernel version 6.8.0 and backported to various distribution kernels. Ubuntu has released patches for affected versions: Ubuntu 24.04 LTS (noble) with linux 6.8.0-48.48, Ubuntu 22.04 LTS (jammy) with linux-hwe 6.8.0-48.48~22.04.1, and other kernel variants (Ubuntu). The fix involves modifying the resourcestreamtostreamidx function to return 0 instead of -1 when a stream is not found (Kernel Commit).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59030HIGH7.5
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-59029MEDIUM5.3
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-devel
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-trace
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management