Bug 2513396 (CVE-2026-68277) - CVE-2026-68277 kernel: drm/dp/mst: fix OOB reads on 2-byte fields in sideband reply parsers
Summary: CVE-2026-68277 kernel: drm/dp/mst: fix OOB reads on 2-byte fields in sideband...
Keywords:
Status: NEW
Alias: CVE-2026-68277
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-10 12:35 UTC by OSIDB Bzimport
Modified: 2026-08-12 09:42 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-10 12:35:04 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/dp/mst: fix OOB reads on 2-byte fields in sideband reply parsers

Three sideband reply parsers read 16-bit fields as:

  val = (raw->msg[idx] << 8) | (raw->msg[idx+1]);

and check bounds only after the fact. When idx == raw->curlen,
raw->msg[idx+1] reads one byte past the received message data into
the following struct fields (curchunk_len, curchunk_idx, curlen).

Affected functions:
 - drm_dp_sideband_parse_enum_path_resources_ack()
   full_payload_bw_number and avail_payload_bw_number fields
 - drm_dp_sideband_parse_allocate_payload_ack()
   allocated_pbn field
 - drm_dp_sideband_parse_query_payload_ack()
   allocated_pbn field

Fix by using a single combined check (idx + 2 > curlen) before each
2-byte read. Since the check is strictly tighter than idx > curlen,
no separate step is needed.

[added fixes tag]

Comment 1 Mauro Matteo Cascella 2026-08-11 20:53:58 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026081025-CVE-2026-68277-f1cf@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.