{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143009","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.342Z","datePublished":"2026-12-03T09:17:43.522Z","dateUpdated":"2026-12-04T03:27:03.350Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-04T03:27:03.350Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nvt: serialise the producers of the flip buffer\n\nTyping on a virtual console while the console replies to an escape\nsequence can make the kernel write past the end of a buffer. A user who\ncan write to the foreground console can cause this on purpose if they\ncan also inject key events, through /dev/uinput or by writing to the\n/dev/input/event* node of a keyboard.\n\nInput for a tty goes through the flip buffer of its port. A driver\ninserts the data with tty_insert_flip_*() and then calls\ntty_flip_buffer_push() to pass it on to the line discipline. The insert\nfunctions take no lock: they check that the current struct tty_buffer\nhas room, copy the data to offset ->used, and then advance ->used. So a\nflip buffer supports only one producer at a time, and a driver that has\nseveral must serialise them.\n\nFour functions feed the flip buffer of a virtual console:\n\n- put_queue(), puts_queue() and fn_send_intr() insert typed characters\n  and breaks for the keyboard handler. They run under kbd_event_lock.\n- respond_string() inserts the reply when a program writes an escape\n  sequence that requests one, such as a cursor position report. It runs\n  under the console lock.\n\nThe keyboard handler gets its events from the input layer and feeds the\nforeground console. Key events that a program writes to /dev/uinput or\nto an event node reach it in the same way as typed keys.\n\nThe keyboard handler and respond_string() share no lock, so they can\ninterleave:\n\n    keyboard handler                respond_string()\n    ================                ================\n    room check passes\n                                    room check passes\n    memcpy() to offset used\n    used += len\n                                    memcpy() to offset used\n                                    used += len\n                                      /* used > size of the buffer */\n\nThe room check subtracts ->used from the size, and both are unsigned.\nOnce ->used exceeds the size, the result wraps, so the check always\npasses, and each later insert lands further past the buffer.\n\nReproduced as root, with keys from a uinput keyboard and cursor position\nreports on the same console: KFENCE reported an out-of-bounds write\n1,024 bytes past the buffer in under 10 s.\n\nFix this by taking port->lock, with interrupts disabled, around the\ninsert and the push in these four functions. kbd_keycode() already takes\nport->lock under kbd_event_lock, so this lock ordering is not new."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - CSI 6 n written to the foreground VT reaches cursor_report and respond_string through tty_write, n_tty_write, con_write, do_con_write, do_con_trol and csi_ECMA, racing put_queue from kbd_event on EV_KEY for vc_cons[fg_console]. The flip-buffer bytes are that reply and key events from the keyboard, input_repeat_key, or uinput_inject_events.\nAC:L - The console user drives both producers on one vc->port: a loop of ESC [ 6 n writes and EV_KEY events from a held key (input_repeat_key value 2) or from uinput. put_queue and respond_string share no lock, so both pass __tty_buffer_request_room; once tty_buffer.used exceeds the buffer the unsigned left subtraction wraps and later inserts keep going. The reporter hit this in under 10 seconds.\nPR:L - con_write and kbd_keycode call no capable() check. A user whose controlling terminal is the foreground VT can write the CSI on that tty, and can fire the keyboard side by holding a key so input_repeat_key calls kbd_event, or by writing /dev/uinput when that node is openable.\nUI:N - That user writes the cursor-report query and generates the key or key-repeat events from the same session. No other party has to mount media, open a file, or answer a prompt.\nS:U - The store runs past the kmalloc tty_buffer of the host VT port, allocated in tty_buffer_alloc, into neighboring kernel heap. The effect stays in the kernel the local caller already entered.\nC:H - tty_flip_buffer_push copies tty_buffer.used into commit, and flush_to_ldisc passes commit-read bytes from char_buf_ptr to the line discipline. When both producers add their lengths but memcpy only covers one, the gap is adjacent heap that read() on the VT returns; repeating the race extends that read.\nI:H - tty_insert_flip_string memcpy's at offset used and then adds the length. After the unsigned room check in __tty_buffer_request_room wraps, each later put_queue or respond_string writes further past the tty_buffer from tty_buffer_alloc; KFENCE recorded a store 1024 bytes past it, enough to overwrite adjacent kernel objects.\nA:H - The store past that kmalloc tty_buffer, and receive_buf's copy of the oversized commit, touch memory outside the object. KFENCE reported the write 1024 bytes past the buffer, which oopses the host."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/vt/keyboard.c","drivers/tty/vt/vt.c"],"versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"880df0d36c48b5f05903179cef2a93a9d8200f01","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"4aeaf5dcd8572b594a49729b5fe1236bf1f1aed7","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"34aa97b7a23d05be25a040c5e0d74a4a153dac29","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"75003fbe02202236df8b960bd2d915bbb6c4ef21","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"5d1d814408c1c8e797031eac8ddd40de1a9e8e93","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/vt/keyboard.c","drivers/tty/vt/vt.c"],"versions":[{"version":"2.6.12","status":"affected"},{"version":"0","lessThan":"2.6.12","status":"unaffected","versionType":"semver"},{"version":"5.15.227","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc4","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.4-rc4"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/880df0d36c48b5f05903179cef2a93a9d8200f01"},{"url":"https://git.kernel.org/stable/c/4aeaf5dcd8572b594a49729b5fe1236bf1f1aed7"},{"url":"https://git.kernel.org/stable/c/34aa97b7a23d05be25a040c5e0d74a4a153dac29"},{"url":"https://git.kernel.org/stable/c/75003fbe02202236df8b960bd2d915bbb6c4ef21"},{"url":"https://git.kernel.org/stable/c/5d1d814408c1c8e797031eac8ddd40de1a9e8e93"}],"title":"vt: serialise the producers of the flip buffer","x_generator":{"engine":"bippy-1.2.0"}}}}