CVE-2026-143009

Not scored yetLast modified Dec 3, 2026

Description

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143010In the Linux kernel, the following vulnerability has been resolved: dm-thin: fix data corruption if discard races with regular I/O In the CVE-2026-143011In the Linux kernel, the following vulnerability has been resolved: dm-raid: fix use-after-free in raid_dtr() raid_dtr() currently flushesCVE-2026-143012In the Linux kernel, the following vulnerability has been resolved: dm-raid: bound array_position before indexing failed_devices super_iniCVE-2026-143013In the Linux kernel, the following vulnerability has been resolved: dm-integrity: don't recalculate with HMAC because of a dirty bitmap CoCVE-2026-143014In the Linux kernel, the following vulnerability has been resolved: dm-crypt: defer async write submission to write thread With no_write_wCVE-2026-143015In the Linux kernel, the following vulnerability has been resolved: dm-crypt: reject integrity_key_size with non-authenc AEAD ciphers WhenCVE-2026-143016In the Linux kernel, the following vulnerability has been resolved: dm-cache: fix NULL pointer dereference on open failure When __begin_trCVE-2026-143017In the Linux kernel, the following vulnerability has been resolved: dm zoned: do not reclaim a random zone into another random zone dmz_reCVE-2026-143018In the Linux kernel, the following vulnerability has been resolved: dm zoned: back off when reclaim cannot make progress When a reclaim paCVE-2026-143019In the Linux kernel, the following vulnerability has been resolved: dm snapshot: fix discard writing into the next COW chunk zero_exceptioCVE-2026-143020In the Linux kernel, the following vulnerability has been resolved: dm snapshot: split discards on chunk boundaries dm-snapshot did not seCVE-2026-143021In the Linux kernel, the following vulnerability has been resolved: dm snapshot: fix discard_granularity unit in snapshot_io_hints snapsho
CVE-2026-143009: Unscored | Vulnix