Shellfeed logo Shellfeed

CVE-2026-68279 · UNKNOWN

Summary: drm/dp/mst: fix OOB reads in remote DPCD/I2C sideband reply parsers

Details

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

drm/dp/mst: fix OOB reads in remote DPCD/I2C sideband reply parsers

drm_dp_sideband_parse_remote_dpcd_read() reads num_bytes from the raw
message and then unconditionally does:

memcpy(bytes, &raw->msg[idx], num_bytes);

without checking that idx + num_bytes <= raw->curlen. raw->msg[] is
256 bytes; if a malicious or misbehaving MST hub sets num_bytes larger
than the remaining payload, the memcpy reads past the received data
into whatever follows in raw->msg[].

drm_dp_sideband_parse_remote_i2c_read_ack() has the same flaw (noted
with a /* TODO check */ comment since the code was introduced).

Fix both functions by using a single combined check
(idx + num_bytes > curlen) before each memcpy. Since num_bytes is u8,
it is always >= 0, so this strictly subsumes the simpler idx > curlen
form and no separate step is needed.

[added missing fixes tag]

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [ad7f8a1f9ced7f049f9b66d588723f243a7034cd – 185de1d74e658e2edb723ba76fa61903f77d8a68]
  • Linux Kernel [3.17.0 – 5.10.266] [5.11.0 – 5.15.217] [5.16.0 – 6.1.183] [6.2.0 – 6.6.148] [6.7.0 – 6.12.101] [6.13.0 – 6.18.42] [6.19.0 – 7.1.6]

References