SecurityContext

CVE-2024-26797: Linux Kernel - Buffer Overflow

  • Cve: CVE-2024-26797
  • Name: Linux Kernel - Buffer Overflow
  • Description: In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Prevent potential buffer overflow in map_hw_resources Adds a check in the map_hw_resources function to prevent a potential buffer overflow. The function was accessing arrays using an index that could potentially be greater than the size of the arrays, leading to a buffer overflow. Adds a check to ensure that the index is within the bounds of the arrays. If the index is out of bounds, an error message is printed and break it will continue execution with just ignoring extra data early to prevent the buffer overflow. Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml2_wrapper.c:79 map_hw_resources() error: buffer overflow 'dml2->v20.scratch.dml_to_dc_pipe_mapping.disp_cfg_to_stream_id' 6 <= 7 drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml2_wrapper.c:81 map_hw_resources() error: buffer overflow 'dml2->v20.scratch.dml_to_dc_pipe_mapping.disp_cfg_to_plane_id' 6 <= 7
  • Impact: Local attackers can cause memory corruption or system instability by exploiting the buffer overflow.
  • Remediation: Update to the latest Linux kernel version where the fix has been applied.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: data_tampering, denial_of_service
  • Requirement type: logged_in
  • Requirements: Attacker needs local access with code execution capabilities
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00249
  • Epss percentile: 0.16216
  • Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  • Published at: 2024-04-04T09:15:08Z
  • Age in days: 964
  • Modified at: 2026-06-17T07:18:22Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-26797
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-120Buffer Copy without Checking Size of Input

References

UrlSourceTags
https://git.kernel.org/stable/c/0f8ca019544a252d1afb468ce840c6dcbac73af4nvdPatch
https://git.kernel.org/stable/c/50a6302cf881f67f1410461a68fe9eabd00ff31dnvdPatch

Products

ProductAffectedPlatform boundSourcesUrl
linux:linux_kernel= 6.8 rc1; = 6.8 rc2; = 6.8 rc3; = 6.8 rc4; = 6.8 rc5; = 6.8 rc6; >= 6.7, < 6.7.9nonvd/v1/products/linux/linux_kernel

Projects

RepositoryLink kindsIndexedUrl
torvalds/linuxcna_commit, commityes/v1/repositories/torvalds/linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Exposed hosts: 10038339
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports