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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-08-26T14:37:37.917Z
- Modified: 2026-11-30T12:18:05.390Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 0991aaea7fe5443da8b279a49507dc86c7255ba5; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 873a1aa15c313263f2e18b38cf525623cc4fabf6; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before d15d51fb26e830af58f3f21964f1c09c239077ea; 2.6.12 (not affected: before 2.6.12; from 6.18.66 up to 6.18.*; from 7.1.10 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/0991aaea7fe5443da8b279a49507dc86c7255ba5>
- <https://git.kernel.org/stable/c/873a1aa15c313263f2e18b38cf525623cc4fabf6>
- <https://git.kernel.org/stable/c/d15d51fb26e830af58f3f21964f1c09c239077ea>

## Sources

- CVE List: [CVE-2026-80580](https://www.cve.org/CVERecord?id=CVE-2026-80580), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-80580](https://nvd.nist.gov/vuln/detail/CVE-2026-80580), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-80580 · Whole record: https://cve.day/CVE-2026-80580.json · Rebuilt by cve.day 2026-11-30T12:32:13.449Z
