CVE-2023-54198

tty: fix out-of-bounds access in tty_driver_lookup_tty()

7.8 high EPSS 0.17%

Published 30 Dec 2025 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2023-54198

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-54198 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

tty: fix out-of-bounds access in tty_driver_lookup_tty()

When specifying an invalid console= device like console=tty3270, tty_driver_lookup_tty() returns the tty struct without checking whether index is a valid number.

To reproduce:

qemu-system-x86_64 -enable-kvm -nographic -serial mon:stdio \ -kernel ../linux-build-x86/arch/x86/boot/bzImage \ -append "console=ttyS0 console=tty3270"

This crashes with:

[ 0.770599] BUG: kernel NULL pointer dereference, address: 00000000000000ef [ 0.771265] #PF: supervisor read access in kernel mode [ 0.771773] #PF: error_code(0x0000) - not-present page [ 0.772609] Oops: 0000 [#1] PREEMPT SMP PTI [ 0.774878] RIP: 0010:tty_open+0x268/0x6f0 [ 0.784013] chrdev_open+0xbd/0x230 [ 0.784444] ? cdev_device_add+0x80/0x80 [ 0.784920] do_dentry_open+0x1e0/0x410 [ 0.785389] path_openat+0xca9/0x1050 [ 0.785813] do_filp_open+0xaa/0x150 [ 0.786240] file_open_name+0x133/0x1b0 [ 0.786746] filp_open+0x27/0x50 [ 0.787244] console_on_rootfs+0x14/0x4d [ 0.787800] kernel_init_freeable+0x1e4/0x20d [ 0.788383] ? rest_init+0xc0/0xc0 [ 0.788881] kernel_init+0x11/0x120 [ 0.789356] ret_from_fork+0x22/0x30

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.20% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 15 Oct 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 99f1fe189daf8e99a847e420567e49dd7ee2aae7, before 3df6f492f500a16c231f07ccc6f6ed1302caddf9
affected from 99f1fe189daf8e99a847e420567e49dd7ee2aae7, before b79109d6470aaae7062998353e3a19449055829d
affected from 99f1fe189daf8e99a847e420567e49dd7ee2aae7, before 953a4a352a0c185460ae1449e4c6e6658e55fdfc
affected from 99f1fe189daf8e99a847e420567e49dd7ee2aae7, before 84ea44dc3e4ecb2632586238014bf6722aa5843b
affected from 99f1fe189daf8e99a847e420567e49dd7ee2aae7, before f9d9d25ad1f0d060eaf297a2f7f03b5855a45561
affected from 99f1fe189daf8e99a847e420567e49dd7ee2aae7, before 765566110eb0da3cf60198b0165ecceeaafa6444
affected from 99f1fe189daf8e99a847e420567e49dd7ee2aae7, before fcfeaa570f7a5c2d5f4f14931909531ff18b7fde
affected from 99f1fe189daf8e99a847e420567e49dd7ee2aae7, before db4df8e9d79e7d37732c1a1b560958e8dadfefa1
Other versions: unaffected
Linux
affected 2.6.28
unaffected before 2.6.28
unaffected from 4.14.308 up to and including 4.14.*
unaffected from 4.19.276 up to and including 4.19.*
unaffected from 5.4.235 up to and including 5.4.*
unaffected from 5.10.173 up to and including 5.10.*
unaffected from 5.15.100 up to and including 5.15.*
unaffected from 6.1.18 up to and including 6.1.*
unaffected from 6.2.5 up to and including 6.2.*
unaffected 6.3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-54198 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54198

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2023-54198
trivy image --scanners vuln IMAGE | grep CVE-2023-54198

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2023-54198 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.