CVE-2026-80740: drm/log: Fix infinite loop when scale is too large for display

Published Sep 3, 2026
·
Updated

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

drm/log: Fix infinite loop when scale is too large for display

When scale is large enough that scaledfont exceeds the display dimensions, rows or columns become 0. A columns value of 0 causes an infinite loop in drmlogdrawkmsgrecord() because the loop never decrements len.

Check for zero rows/columns in drmlogsetupmodeset() and return an error, cleaning up the already allocated buffer to avoid a leak.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 3, 2026
CVE Published
via MITRE·08:26 AM
Data Sourced
via MITRE·08:26 AM
Description

Frequently Asked Questions

1

What condition triggers the hang?

The issue occurs when the configured scale is large enough that the scaled font exceeds the display dimensions, causing the calculated row or column count to become zero. A zero column count can make drm_log_draw_kmsg_record() loop indefinitely because it does not decrement the remaining length.

2

What happens if the invalid display sizing condition is encountered after the fix?

drm_log_setup_modeset() detects zero rows or columns and returns an error instead of proceeding. It also cleans up the buffer that was already allocated, preventing a memory leak on this error path.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203