{"id":"CVE-2026-139638","summary":"serial: 8250_mxpcie: take the line settings from the new termios","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nserial: 8250_mxpcie: take the line settings from the new termios\n\nmxpcie8250_set_termios() reads the line settings out of\nport-\u003estate-\u003eport.tty, which is only set once the port has been opened.\n\nuart_set_options() builds a termios of its own and calls -\u003eset_termios()\nwith no tty behind it, so using such a board as the console\n(console=ttyS\u003cn\u003e) dereferences a NULL tty during console setup, as does\nattaching kgdboc to it and resuming a suspended console from\nuart_resume_port().\n\nRead the settings from the termios the serial core passes in instead.\nIt holds the same values on the normal path - uart_change_line_settings()\npasses &tty-\u003etermios - and it is what serial8250_do_set_termios() right\nabove already uses.","modified":"2026-12-01T21:02:34.578461392Z","published":"2026-11-30T13:36:35.912Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139638.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/54768ab86bb7ff7c315567bd5be8803fe2d69ae4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dda3502cf1838f806b90405a127ec2e66c885c9d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139638.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139638"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"55edf8511f4728a79757ab64ae9126e2ea59e310"},{"fixed":"54768ab86bb7ff7c315567bd5be8803fe2d69ae4"},{"fixed":"dda3502cf1838f806b90405a127ec2e66c885c9d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139638.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.3.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139638.json"}}],"schema_version":"1.9.2"}