Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-26797

published high CVSS 3.1 · 7.8

drm/amd/display: Prevent potential buffer overflow in map_hw_resources

Published
04 Apr 2024, 08:20:26 UTC
Updated
05 Aug 2026, 11:27:19 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux7966f319c66d9468623c6a6a017ecbc0dd79be75 to < 50a6302cf881f67f1410461a68fe9eabd00ff31d · 7966f319c66d9468623c6a6a017ecbc0dd79be75 to < 0f8ca019544a252d1afb468ce840c6dcbac73af4 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.7 (affected) · 0 to < 6.7 (unaffected · semver) · 6.7.9 through 6.7.* (unaffected · semver) · 6.8 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
linux — linux_kernel7966f319c66d to < 50a6302cf881 (affected · custom) · 7966f319c66d to < 0f8ca019544a (affected · custom) · 6.7 (affected) · 0 to < 6.7 (unaffected · custom) · 6.79 through 6.8 (unaffected · custom) · 6.8 and later (unaffected · custom) · Other versions: unknown Version-specific Not stated CISA-ADP
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerable code is reached only through DRM KMS ioctls (`DRM_IOCTL_MODE_ATOMIC`/`SETCRTC`) on `/dev/dri/cardN` via `amdgpu_dm_atomic_check()` → `dc_validate_global_state()` → `dml2_validate()`. No network or remote data path reaches `map_hw_resources()`. AC:L - The attacker controls the display configuration submitted in the atomic commit (number of streams, planes, and modes that force ODM combine 2:1/4:1, driving `DPPPerSurface` and hence `num_pipes`), so the out-of-bounds indices are reached deterministically without depending on any condition outside the attacker's control. PR:L - Only an unprivileged local account with access to the DRM device node is needed — the code path contains no capability check, and any logged-in seat user (or a compositor/kiosk process) can issue the atomic modeset that reaches `map_hw_resources()`. UI:N - The attacker performs the modeset himself via ioctl in a loop; no action by another user or victim is required to trigger the overflow. S:U - The corruption is confined to kernel heap memory in the same security authority as the exploiting process; no VM, IOMMU, or sandbox boundary is crossed. C:H - The loop performs out-of-bounds reads of `disp_cfg_to_stream_id[6..7]` and `disp_cfg_to_plane_id[6..7]`, and the resulting leaked heap contents are copied into the DML-to-DC pipe mapping that drives subsequent pipe lookups, so out-of-bounds kernel data becomes observable and usable — per kernel guidance, an unbounded OOB read plus heap corruption is High. I:H - `dml_pipe_idx_to_stream_id[num_pipes]` and friends are written with unbounded `num_pipes`, placing attacker-influenced 32-bit IDs and `true` bytes past the 6-element arrays and past the end of `struct dml2_dml_to_dc_pipe_mapping` into the surrounding `struct dml2_context` heap allocation — an out-of-bounds write with partially controlled data, which is High. A:H - The out-of-bounds writes corrupt DML scratch state and pipe-mapping data that is subsequently used to index `res_ctx.pipe_ctx[]` and program display hardware, readily producing an oops, display-engine hang, or panic (and detectable as a KASAN slab-out-of-bounds), which is a full availability loss.

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 7.8 high CISA-ADP · adp CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 7966f319c66d9468623c6a6a017ecbc0dd79be75 to < 50a6302cf881f67f1410461a68fe9eabd00ff31d (affected · git)7966f319c66d9468623c6a6a017ecbc0dd79be75 to < 0f8ca019544a252d1afb468ce840c6dcbac73af4 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.7 (affected)0 to < 6.7 (unaffected · semver)6.7.9 through 6.7.* (unaffected · semver)6.8 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna
linux linux_kernel 7966f319c66d to < 50a6302cf881 (affected · custom)7966f319c66d to < 0f8ca019544a (affected · custom)6.7 (affected)0 to < 6.7 (unaffected · custom)6.79 through 6.8 (unaffected · custom)6.8 and later (unaffected · custom)Default: unknown CISA-ADP · adp

Weaknesses

1
  • CWE-120 CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') (CISA-ADP · adp)

References

2

Provider assertions

3

Linux · cna

drm/amd/display: Prevent potential buffer overflow in map_hw_resources

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
f0139be317e26cd1b0ed18d985bade61a2bd17f9c5c54cac82658a895a51a0c9
Ingested
23 Sep 2026, 08:20:34 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected