CVE-2026-80580: fbdev: bound mode sysfs output to the sysfs buffer

Published Aug 26, 2026
·
Updated

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

fbdev: bound mode sysfs output to the sysfs buffer

modestring() uses snprintf() which can return a value larger than the remaining buffer space. showmodes() accumulates the return value into i without checking whether i has reached PAGESIZE, causing the offset to advance past the sysfs buffer if the modelist is long enough.

Add a size parameter to modestring() and use scnprintf() to return only the bytes actually written. Add an early return when offset already exceeds the buffer. In showmodes(), stop accumulating once the buffer is full.

Affected Software

1 affected component
Linux Linux kernel

Event History

Aug 26, 2026
CVE Published
via MITRE·02:37 PM
Data Sourced
via MITRE·02:37 PM
Description
Data Sourced
via NVD·03:17 PM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Linux kernel systems using fbdev are affected when the framebuffer mode list is long enough for the sysfs mode output to exceed the PAGE_SIZE buffer.

2

What condition triggers the vulnerable behavior?

The issue is triggered while generating sysfs mode output if repeated mode strings cause the accumulated output offset to advance past the sysfs buffer. The flaw results from counting snprintf()’s would-have-written length rather than the bytes actually stored.

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