{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"
            },
            {
              "fixed": "880df0d36c48b5f05903179cef2a93a9d8200f01"
            },
            {
              "fixed": "4aeaf5dcd8572b594a49729b5fe1236bf1f1aed7"
            },
            {
              "fixed": "34aa97b7a23d05be25a040c5e0d74a4a153dac29"
            },
            {
              "fixed": "75003fbe02202236df8b960bd2d915bbb6c4ef21"
            },
            {
              "fixed": "5d1d814408c1c8e797031eac8ddd40de1a9e8e93"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.12"
            },
            {
              "fixed": "5.15.227"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.12.120"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.66"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143009.json"
  },
  "details": "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 -\u003eused, and then advance -\u003eused. 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 \u003e size of the buffer */\n\nThe room check subtracts -\u003eused from the size, and both are unsigned.\nOnce -\u003eused 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-\u003elock, with interrupts disabled, around the\ninsert and the push in these four functions. kbd_keycode() already takes\nport-\u003elock under kbd_event_lock, so this lock ordering is not new.",
  "id": "CVE-2026-143009",
  "modified": "2026-12-03T10:46:12.057165996Z",
  "published": "2026-12-03T09:17:43.522Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/34aa97b7a23d05be25a040c5e0d74a4a153dac29"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4aeaf5dcd8572b594a49729b5fe1236bf1f1aed7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5d1d814408c1c8e797031eac8ddd40de1a9e8e93"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/75003fbe02202236df8b960bd2d915bbb6c4ef21"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/880df0d36c48b5f05903179cef2a93a9d8200f01"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143009.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143009"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "vt: serialise the producers of the flip buffer"
}