{"id":"CVE-2023-54198","aliases":["CVE-2023-54198"],"related":[],"kind":"vulnerability","state":"published","title":"tty: fix out-of-bounds access in tty_driver_lookup_tty()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntty: fix out-of-bounds access in tty_driver_lookup_tty()\n\nWhen specifying an invalid console= device like console=tty3270,\ntty_driver_lookup_tty() returns the tty struct without checking\nwhether index is a valid number.\n\nTo reproduce:\n\nqemu-system-x86_64 -enable-kvm -nographic -serial mon:stdio \\\n-kernel ../linux-build-x86/arch/x86/boot/bzImage \\\n-append \"console=ttyS0 console=tty3270\"\n\nThis crashes with:\n\n[    0.770599] BUG: kernel NULL pointer dereference, address: 00000000000000ef\n[    0.771265] #PF: supervisor read access in kernel mode\n[    0.771773] #PF: error_code(0x0000) - not-present page\n[    0.772609] Oops: 0000 [#1] PREEMPT SMP PTI\n[    0.774878] RIP: 0010:tty_open+0x268/0x6f0\n[    0.784013]  chrdev_open+0xbd/0x230\n[    0.784444]  ? cdev_device_add+0x80/0x80\n[    0.784920]  do_dentry_open+0x1e0/0x410\n[    0.785389]  path_openat+0xca9/0x1050\n[    0.785813]  do_filp_open+0xaa/0x150\n[    0.786240]  file_open_name+0x133/0x1b0\n[    0.786746]  filp_open+0x27/0x50\n[    0.787244]  console_on_rootfs+0x14/0x4d\n[    0.787800]  kernel_init_freeable+0x1e4/0x20d\n[    0.788383]  ? rest_init+0xc0/0xc0\n[    0.788881]  kernel_init+0x11/0x120\n[    0.789356]  ret_from_fork+0x22/0x30","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntty: fix out-of-bounds access in tty_driver_lookup_tty()\n\nWhen specifying an invalid console= device like console=tty3270,\ntty_driver_lookup_tty() returns the tty struct without checking\nwhether index is a valid number.\n\nTo reproduce:\n\nqemu-system-x86_64 -enable-kvm -nographic -serial mon:stdio \\\n-kernel ../linux-build-x86/arch/x86/boot/bzImage \\\n-append \"console=ttyS0 console=tty3270\"\n\nThis crashes with:\n\n[    0.770599] BUG: kernel NULL pointer dereference, address: 00000000000000ef\n[    0.771265] #PF: supervisor read access in kernel mode\n[    0.771773] #PF: error_code(0x0000) - not-present page\n[    0.772609] Oops: 0000 [#1] PREEMPT SMP PTI\n[    0.774878] RIP: 0010:tty_open+0x268/0x6f0\n[    0.784013]  chrdev_open+0xbd/0x230\n[    0.784444]  ? cdev_device_add+0x80/0x80\n[    0.784920]  do_dentry_open+0x1e0/0x410\n[    0.785389]  path_openat+0xca9/0x1050\n[    0.785813]  do_filp_open+0xaa/0x150\n[    0.786240]  file_open_name+0x133/0x1b0\n[    0.786746]  filp_open+0x27/0x50\n[    0.787244]  console_on_rootfs+0x14/0x4d\n[    0.787800]  kernel_init_freeable+0x1e4/0x20d\n[    0.788383]  ? rest_init+0xc0/0xc0\n[    0.788881]  kernel_init+0x11/0x120\n[    0.789356]  ret_from_fork+0x22/0x30","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ntty: corregir acceso fuera de límites en tty_driver_lookup_tty()\n\nAl especificar un dispositivo console= inválido como console=tty3270,\ntty_driver_lookup_tty() devuelve la estructura tty sin verificar\nsi el índice es un número válido.\n\nPara reproducir:\n\nqemu-system-x86_64 -enable-kvm -nographic -serial mon:stdio \\\n-kernel .. / linux-build-x86/arch/x86/boot/bzImage \\\n-append ’console=ttyS0 console=tty3270’\n\nEsto falla con:\n\n[    0.770599] BUG: kernel NULL pointer dereference, address: 00000000000000ef\n[    0.771265] #PF: supervisor read access in kernel mode\n[    0.771773] #PF: error_code(0x0000) - not-present page\n[    0.772609] Oops: 0000 [#1] PREEMPT SMP PTI\n[    0.774878] RIP: 0010:tty_open+0x268/0x6f0\n[    0.784013]  chrdev_open+0xbd/0x230\n[    0.784444]  ? cdev_device_add+0x80/0x80\n[    0.784920]  do_dentry_open+0x1e0/0x410\n[    0.785389]  path_openat+0xca9/0x1050\n[    0.785813]  do_filp_open+0xaa/0x150\n[    0.786240]  file_open_name+0x133/0x1b0\n[    0.786746]  filp_open+0x27/0x50\n[    0.787244]  console_on_rootfs+0x14/0x4d\n[    0.787800]  kernel_init_freeable+0x1e4/0x20d\n[    0.788383]  ? rest_init+0xc0/0xc0\n[    0.788881]  kernel_init+0x11/0x120\n[    0.789356]  ret_from_fork+0x22/0x30","source":"nvd"}],"published":"2025-12-30T12:09:04.229Z","modified":"2026-10-28T19:10:00.193Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"99f1fe189daf8e99a847e420567e49dd7ee2aae7","fixed":"3df6f492f500a16c231f07ccc6f6ed1302caddf9","status":"affected"},{"type":"git","introduced":"99f1fe189daf8e99a847e420567e49dd7ee2aae7","fixed":"b79109d6470aaae7062998353e3a19449055829d","status":"affected"},{"type":"git","introduced":"99f1fe189daf8e99a847e420567e49dd7ee2aae7","fixed":"953a4a352a0c185460ae1449e4c6e6658e55fdfc","status":"affected"},{"type":"git","introduced":"99f1fe189daf8e99a847e420567e49dd7ee2aae7","fixed":"84ea44dc3e4ecb2632586238014bf6722aa5843b","status":"affected"},{"type":"git","introduced":"99f1fe189daf8e99a847e420567e49dd7ee2aae7","fixed":"f9d9d25ad1f0d060eaf297a2f7f03b5855a45561","status":"affected"},{"type":"git","introduced":"99f1fe189daf8e99a847e420567e49dd7ee2aae7","fixed":"765566110eb0da3cf60198b0165ecceeaafa6444","status":"affected"},{"type":"git","introduced":"99f1fe189daf8e99a847e420567e49dd7ee2aae7","fixed":"fcfeaa570f7a5c2d5f4f14931909531ff18b7fde","status":"affected"},{"type":"git","introduced":"99f1fe189daf8e99a847e420567e49dd7ee2aae7","fixed":"db4df8e9d79e7d37732c1a1b560958e8dadfefa1","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.28","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.28","status":"unaffected"},{"type":"semver","introduced":"4.14.308","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.276","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.235","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.173","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.100","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.18","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.5","lastAffected":"6.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/3df6f492f500a16c231f07ccc6f6ed1302caddf9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b79109d6470aaae7062998353e3a19449055829d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/953a4a352a0c185460ae1449e4c6e6658e55fdfc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/84ea44dc3e4ecb2632586238014bf6722aa5843b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f9d9d25ad1f0d060eaf297a2f7f03b5855a45561","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/765566110eb0da3cf60198b0165ecceeaafa6444","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fcfeaa570f7a5c2d5f4f14931909531ff18b7fde","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/db4df8e9d79e7d37732c1a1b560958e8dadfefa1","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:38:58.741Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-54198","url":"https://www.cve.org/CVERecord?id=CVE-2023-54198","licence":"CVE Terms of Use","modified":"2026-10-15T21:41:41.131Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-54198","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54198","licence":"Public domain","modified":"2026-10-28T19:10:00.193Z"}],"updatedAt":"2026-11-25T22:58:35.216Z","epss":{"score":0.00166,"percentile":0.06198,"date":"2026-12-01T12:00:22.000Z"}}