{"id":"CVE-2026-97480","summary":"tty: serial: 8250: protect against NULL uart-\u003eport.dev in register","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ntty: serial: 8250: protect against NULL uart-\u003eport.dev in register\n\nserial8250_register_8250_port() conditionally copies uart-\u003eport.dev\nfrom up-\u003eport.dev only when up-\u003eport.dev is non-NULL:\n\n\tif (up-\u003eport.dev) {\n\t\tuart-\u003eport.dev = up-\u003eport.dev;\n\t\t...\n\t}\n\nSo if both the existing uart slot and up have a NULL -\u003edev,\nuart-\u003eport.dev remains NULL. The very next ACPI companion check\nthen dereferences it unconditionally:\n\n\tif (!has_acpi_companion(uart-\u003eport.dev)) {\n\nhas_acpi_companion() reads dev-\u003efwnode without a NULL guard\n(include/linux/acpi.h), so this NULL-derefs the kernel for the\nremaining no-dev case rather than just skipping the\nmctrl_gpio_init() initialisation as intended.\n\nsmatch flags the inconsistency:\n\n  drivers/tty/serial/8250/8250_core.c:767\n  serial8250_register_8250_port() error: 'uart-\u003eport.dev' could be\n  null (see line 719)\n\nGuard the call with a NULL check so register continues to work\nfor callers that legitimately have no parent device (legacy\nnon-OF/non-ACPI registrations).\n\nNo functional change for callers that pass a non-NULL -\u003edev.","modified":"2026-11-01T02:33:18.905305806Z","published":"2026-09-24T16:04:22.893Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97480.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/5cbab666721d974bfe033a12045d808936deaefd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/68059b6e9f7292714286e2b0f5185ed2a43fccc5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/941c9f84c9b6310f7aaa1c8c785dcc634ee33050"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9c78f89cf2fbae18b14c78bf172ca15d832aff15"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f728f7f38a6eca16923c72fc6826445810d2b41f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97480.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97480"},{"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":"4a96895f74c9633b51427fd080ab70fa62b65bc4"},{"fixed":"f728f7f38a6eca16923c72fc6826445810d2b41f"},{"fixed":"68059b6e9f7292714286e2b0f5185ed2a43fccc5"},{"fixed":"9c78f89cf2fbae18b14c78bf172ca15d832aff15"},{"fixed":"5cbab666721d974bfe033a12045d808936deaefd"},{"fixed":"941c9f84c9b6310f7aaa1c8c785dcc634ee33050"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-97480.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.3.0"},{"fixed":"6.1.191"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.160"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.114"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.53"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-97480.json"}}],"schema_version":"1.9.2"}