{"id":"CVE-2026-90337","summary":"serial: core: do fallible allocations before the console can be registered","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nserial: core: do fallible allocations before the console can be registered\n\nserial_core_add_one_port() allocates uport-\u003etty_groups after\nuart_configure_port(), which may register the console. If the allocation\nfails, the driver unwinds the port while its console remains registered.\nThe earlier uport-\u003ename allocation has a related failure path that leaves\nstate-\u003euart_port linked to a port being freed.\n\nFailslab reproduced a NULL dereference in PL011 console output and a KASAN\nuse-after-free in i.MX console output after failed binds.\n\nAllocate the name and tty_groups before linking the port and configuring\nit. Reserve space for the optional driver attribute group because\nconfig_port() may populate uport-\u003eattr_group during configuration.","modified":"2026-11-01T02:31:05.259344420Z","published":"2026-09-17T16:08:49.687Z","related":["openSUSE-SU-2026:11880-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/90xxx/CVE-2026-90337.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1a0e4fbce5d9c1bc179a35a2fd9ed142664299e3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8c7c75bfa7b84d6999de2100ce9c09e3779249a0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9260a92ce90e6a95ce2ffdf1441c5216bf3f9552"},{"type":"WEB","url":"https://git.kernel.org/stable/c/be61f56c4f0ed1cbf16c5f7b0dec6d6414993dd4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c2aec15f78b2e6ccd9b94216a901248511355982"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e2ddbfd826836cba1b7a25ee4eb512f7d752b703"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/90xxx/CVE-2026-90337.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90337"},{"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":"266dcff03eed0050b6af11aaf2a61ab837d7ba3f"},{"fixed":"be61f56c4f0ed1cbf16c5f7b0dec6d6414993dd4"},{"fixed":"e2ddbfd826836cba1b7a25ee4eb512f7d752b703"},{"fixed":"8c7c75bfa7b84d6999de2100ce9c09e3779249a0"},{"fixed":"9260a92ce90e6a95ce2ffdf1441c5216bf3f9552"},{"fixed":"c2aec15f78b2e6ccd9b94216a901248511355982"},{"fixed":"1a0e4fbce5d9c1bc179a35a2fd9ed142664299e3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-90337.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.17.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.57"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-90337.json"}}],"schema_version":"1.9.2"}