{"api_version":"1","generated_at":"2026-12-04T01:35:55+00:00","cve":"CVE-2026-143009","urls":{"html":"https://cve.report/CVE-2026-143009","api":"https://cve.report/api/cve/CVE-2026-143009.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143009","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143009"},"summary":{"title":"vt: serialise the producers of the flip buffer","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:17:27","updated_at":"2026-12-03 10:17:27"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/75003fbe02202236df8b960bd2d915bbb6c4ef21","name":"https://git.kernel.org/stable/c/75003fbe02202236df8b960bd2d915bbb6c4ef21","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/880df0d36c48b5f05903179cef2a93a9d8200f01","name":"https://git.kernel.org/stable/c/880df0d36c48b5f05903179cef2a93a9d8200f01","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5d1d814408c1c8e797031eac8ddd40de1a9e8e93","name":"https://git.kernel.org/stable/c/5d1d814408c1c8e797031eac8ddd40de1a9e8e93","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4aeaf5dcd8572b594a49729b5fe1236bf1f1aed7","name":"https://git.kernel.org/stable/c/4aeaf5dcd8572b594a49729b5fe1236bf1f1aed7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/34aa97b7a23d05be25a040c5e0d74a4a153dac29","name":"https://git.kernel.org/stable/c/34aa97b7a23d05be25a040c5e0d74a4a153dac29","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143009","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143009","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 880df0d36c48b5f05903179cef2a93a9d8200f01 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 4aeaf5dcd8572b594a49729b5fe1236bf1f1aed7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 34aa97b7a23d05be25a040c5e0d74a4a153dac29 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 75003fbe02202236df8b960bd2d915bbb6c4ef21 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 5d1d814408c1c8e797031eac8ddd40de1a9e8e93 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.12","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.12 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.227 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc4 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"143009","cve":"CVE-2026-143009","epss":"0.002090000","percentile":"0.116610000","score_date":"2026-12-03","updated_at":"2026-12-04 00:14:18"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/tty/vt/keyboard.c","drivers/tty/vt/vt.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"880df0d36c48b5f05903179cef2a93a9d8200f01","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"4aeaf5dcd8572b594a49729b5fe1236bf1f1aed7","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"34aa97b7a23d05be25a040c5e0d74a4a153dac29","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"75003fbe02202236df8b960bd2d915bbb6c4ef21","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"5d1d814408c1c8e797031eac8ddd40de1a9e8e93","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/tty/vt/keyboard.c","drivers/tty/vt/vt.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.12"},{"lessThan":"2.6.12","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.227","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc4","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.227","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc4","versionStartIncluding":"2.6.12","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:17:43.522Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143009","datePublished":"2026-12-03T09:17:43.522Z","dateReserved":"2026-12-03T03:10:28.342Z","dateUpdated":"2026-12-03T09:17:43.522Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:17:27","lastModifiedDate":"2026-12-03 10:17:27","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143009","Ordinal":"1","Title":"vt: serialise the producers of the flip buffer","CVE":"CVE-2026-143009","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143009","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"vt: serialise the producers of the flip buffer"}]}}}