CVE-2026-80580

fbdev: bound mode sysfs output to the sysfs buffer

Published Aug 26, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

fbdev: bound mode sysfs output to the sysfs buffer

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

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

Analysis

AI-generated

Technical impact

The vulnerability arises in the Linux kernel’s fbdev subsystem where a sysfs output function, mode_string(), uses snprintf without bounds checking. The function can return a length larger than the remaining buffer space, and the caller, show_modes(), accumulates this length without verifying that the running offset remains within the page boundary. As a result, if the modelist is long enough, the output offset may advance past the sysfs buffer causing an out‑of‑bounds write, which can corrupt kernel memory or trigger a kernel panic, thereby providing a denial‑of‑service vector.

Affected Systems

Affected systems are Linux kernel installations that have not yet incorporated the patch introducing scnprintf bounds enforcement. All kernel releases containing the fbdev sysfs mode output feature and lacking the corrective changes are potentially vulnerable, with no specific version range specified.

Risk and Exploitability

Based on the description, the attack vector is likely local user‑level access to the /sys/class/.../modes sysfs entry. An attacker may induce a large mode list to trigger the overflow, leading to kernel memory corruption or a crash. The EPSS score is below 1% (approximately 0.00112), and the vulnerability is not listed in CISA KEV. Nevertheless, the potential for a kernel panic or arbitrary memory write makes it a high‑severity flaw once the vulnerable kernel is in use.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the fix.
  • If a newer kernel is unavailable, manually apply the source‑code changes: replace mode_string() to use scnprintf with a size parameter, add early return when the offset exceeds the buffer, and modify show_modes() to stop accumulating once the buffer is full.
  • As an interim measure, restrict access to the /sys/class/.../modes sysfs entry (e.g., set permissions to deny read access for non‑root users) until the kernel patch is deployed.

Generated by OpenCVE AI on August 28, 2026 at 15:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-119
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: fbdev: bound mode sysfs output to the sysfs buffer mode_string() uses snprintf() which can return a value larger than the remaining buffer space. show_modes() accumulates the return value into i without checking whether i has reached PAGE_SIZE, causing the offset to advance past the sysfs buffer if the modelist is long enough. Add a size parameter to mode_string() and use scnprintf() to return only the bytes actually written. Add an early return when offset already exceeds the buffer. In show_modes(), stop accumulating once the buffer is full.
Title fbdev: bound mode sysfs output to the sysfs buffer
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 16, 2026, 7:26 PM
Reserved
Aug 26, 2026, 2:34 PM
Status
Received
Published
Aug 26, 2026, 3:17 PM
Modified
Oct 16, 2026, 8:18 PM
Severity
Moderate
Public date
Aug 26, 2026, 12:00 AM