Read the docs

Out-of-bounds write in Linux kernel virtual console flip buffer

Priority LOW 33Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 6 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.

Summary

The Linux kernel is affected from 2.6.12, with fixes in several stable branches. Keyboard input and replies to escape sequences write into the same virtual console flip buffer without a shared lock, so their writes can interleave and overflow the buffer. A local user with low privileges who can inject key events can write past the end of the buffer, which can crash the system or affect its integrity and confidentiality.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

Description from the CNA

In the Linux kernel, the following vulnerability has been resolved: vt: serialise the producers of the flip buffer Typing on a virtual console while the console replies to an escape sequence can make the kernel write past the end of a buffer. A user who can write to the foreground console can cause this on purpose if they can also inject key events, through /dev/uinput or by writing to the /dev/input/event* node of a keyboard. Input for a tty goes through the flip buffer of its port. A driver inserts the data with tty_insert_flip_*() and then calls tty_flip_buffer_push() to pass it on to the line discipline. The insert functions take no lock: they check that the current struct tty_buffer has room, copy the data to offset ->used, and then advance ->used. So a flip buffer supports only one producer at a time, and a driver that has several must serialise them. Four functions feed the flip buffer of a virtual console: - put_queue(), puts_queue() and fn_send_intr() insert typed characters and breaks for the keyboard handler. They run under kbd_event_lock. - respond_string() inserts the reply when a program writes an escape sequence that requests one, such as a cursor position report. It runs under the console lock. The keyboard handler gets its events from the input layer and feeds the foreground console. Key events that a program writes to /dev/uinput or to an event node reach it in the same way as typed keys. The keyboard handler and respond_string() share no lock, so they can interleave: keyboard handler respond_string() ================ ================ room check passes room check passes memcpy() to offset used used += len memcpy() to offset used used += len /* used > size of the buffer */ The room check subtracts ->used from the size, and both are unsigned. Once ->used exceeds the size, the result wraps, so the check always passes, and each later insert lands further past the buffer. Reproduced as root, with keys from a uinput keyboard and cursor position reports on the same console: KFENCE reported an out-of-bounds write 1,024 bytes past the buffer in under 10 s. Fix this by taking port->lock, with interrupts disabled, around the insert and the push in these four functions. kbd_keycode() already takes port->lock under kbd_event_lock, so this lock ordering is not new.

Why it matters now

EPSS 0.00186 8th percentileScored 2026-12-04
Fix Partial Linux (Linux): 5.15.227, 6.12.120, 6.18.66 +2Red Hat: 6 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
LinuxLinux2.6.12 and later5.15.227, 6.12.120, 6.18.66, 7.3.7, 7.4-rc4Patch availableCNA
  • Linux VendorLinux Affected 2.6.12 and later Fixed in 5.15.227, 6.12.120, 6.18.66, 7.3.7, 7.4-rc4 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*——Linux
  • cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions — — ·Linux

Remediation

Upgrade the Linux kernel to 5.15.227, 6.12.120, 6.18.66, 7.3.7 or 7.4-rc4, depending on the branch in use. Red Hat reports no available plan for Red Hat Enterprise Linux 7, 8, 9 and 10 or Red Hat OpenShift Container Platform 4 and 5.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

  • Fix · CNA Linux (Linux) Fixed in 5.15.227, 6.12.120, 6.18.66, 7.3.7, 7.4-rc4

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 10AffectedNo fix yet
Red Hat Enterprise Linux 7AffectedNo fix yet
Red Hat Enterprise Linux 8AffectedNo fix yet
Red Hat Enterprise Linux 9AffectedNo fix yet
Red Hat OpenShift Container Platform 4AffectedNo fix yet
Red Hat OpenShift Container Platform 5AffectedNo fix yet
Not affected: 1 product
  • Red Hat Enterprise Linux 6

Timeline

  1. 2026-12-03 Threatist record created from CVE-2026-143009
  2. 2026-12-03 Alias added: GHSA-c623-r57m-q7jq
  3. 2026-12-03 Affected versions changed · Red Hat
  4. 2026-12-03 CVSS score added · Red Hat
  5. 2026-12-04 CVSS score added · CNA

References

  • TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
  • TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
  • TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
  • TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
  • TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
  • TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
See all 24154 →

Sources