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.
Published: 2026-08-26
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service and kernel memory corruption
Action: Apply Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Thu, 27 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-120
References
Metrics threat_severity

None

threat_severity

Moderate


Thu, 27 Aug 2026 06:15:00 +0000

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'}


Wed, 26 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Wed, 26 Aug 2026 14:45:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-27T05:02:01.683Z

Reserved: 2026-08-26T14:34:25.769Z

Link: CVE-2026-80580

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-26T15:17:14.103

Modified: 2026-08-27T06:17:44.300

Link: CVE-2026-80580

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-26T00:00:00Z

Links: CVE-2026-80580 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T15:15:05Z

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')