Skip to contentSkip to conversation

CVE-2026-80741: drm/log: Fix out-of-bounds read on empty message length

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 3

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

drm/log: Fix out-of-bounds read on empty message length

drm_log_draw_kmsg_record() accesses s[len - 1] to strip the trailing newline, but len is unsigned int. If len is 0, the subtraction wraps to UINT_MAX, causing an out-of-bounds read.

Add an early return when len is 0.

The Linux kernel CVE team has assigned CVE-2026-80741 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.14 with commit 25e2c2a3eff55683bbe77b108db2a7e389246666 and fixed in 6.18.46 with commit 16a2716910ecf7d31bf3c033ee7c506a0b00b2ee
	Issue introduced in 6.14 with commit 25e2c2a3eff55683bbe77b108db2a7e389246666 and fixed in 7.1.10 with commit 16bcea56f4205314ec2aa04a7ec74e5261d253c7
	Issue introduced in 6.14 with commit 25e2c2a3eff55683bbe77b108db2a7e389246666 and fixed in 7.2 with commit 60baa179ed1333535f6e2da4133511db55278ee4

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-80741

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/gpu/drm/clients/drm_log.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/16a2716910ecf7d31bf3c033ee7c506a0b00b2ee
	https://git.kernel.org/stable/c/16bcea56f4205314ec2aa04a7ec74e5261d253c7
	https://git.kernel.org/stable/c/60baa179ed1333535f6e2da4133511db55278ee4