{"id":"CVE-2026-90337","state":"PUBLISHED","title":"serial: core: do fallible allocations before the console can be registered","description":"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->tty_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->name allocation has a related failure path that leaves\nstate->uart_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->attr_group during configuration.","publishedAt":"2026-09-17T16:08:49.687Z","updatedAt":"2026-10-30T12:35:15.311Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"266dcff03eed0050b6af11aaf2a61ab837d7ba3f","status":"affected","lessThan":"be61f56c4f0ed1cbf16c5f7b0dec6d6414993dd4","versionType":"git"},{"version":"266dcff03eed0050b6af11aaf2a61ab837d7ba3f","status":"affected","lessThan":"e2ddbfd826836cba1b7a25ee4eb512f7d752b703","versionType":"git"},{"version":"266dcff03eed0050b6af11aaf2a61ab837d7ba3f","status":"affected","lessThan":"8c7c75bfa7b84d6999de2100ce9c09e3779249a0","versionType":"git"},{"version":"266dcff03eed0050b6af11aaf2a61ab837d7ba3f","status":"affected","lessThan":"9260a92ce90e6a95ce2ffdf1441c5216bf3f9552","versionType":"git"},{"version":"266dcff03eed0050b6af11aaf2a61ab837d7ba3f","status":"affected","lessThan":"c2aec15f78b2e6ccd9b94216a901248511355982","versionType":"git"},{"version":"266dcff03eed0050b6af11aaf2a61ab837d7ba3f","status":"affected","lessThan":"1a0e4fbce5d9c1bc179a35a2fd9ed142664299e3","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/serial/serial_core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.17","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/serial/serial_core.c"]}],"references":["https://git.kernel.org/stable/c/be61f56c4f0ed1cbf16c5f7b0dec6d6414993dd4","https://git.kernel.org/stable/c/e2ddbfd826836cba1b7a25ee4eb512f7d752b703","https://git.kernel.org/stable/c/8c7c75bfa7b84d6999de2100ce9c09e3779249a0","https://git.kernel.org/stable/c/9260a92ce90e6a95ce2ffdf1441c5216bf3f9552","https://git.kernel.org/stable/c/c2aec15f78b2e6ccd9b94216a901248511355982","https://git.kernel.org/stable/c/1a0e4fbce5d9c1bc179a35a2fd9ed142664299e3"],"weaknesses":[],"ingestedAt":"2026-10-30T12:54:04.478Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/90xxx/CVE-2026-90337.json","commit":"1f312381e38164a43607eebab851b151dd16861e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-90337","state":"PUBLISHED","datePublished":"2026-09-17T16:08:49.687Z","dateUpdated":"2026-10-30T12:35:15.311Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.804Z"},"containers":{"cna":{"title":"serial: core: do fallible allocations before the console can be registered","descriptions":[{"lang":"en","value":"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->tty_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->name allocation has a related failure path that leaves\nstate->uart_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->attr_group during configuration."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"266dcff03eed0050b6af11aaf2a61ab837d7ba3f","status":"affected","lessThan":"be61f56c4f0ed1cbf16c5f7b0dec6d6414993dd4","versionType":"git"},{"version":"266dcff03eed0050b6af11aaf2a61ab837d7ba3f","status":"affected","lessThan":"e2ddbfd826836cba1b7a25ee4eb512f7d752b703","versionType":"git"},{"version":"266dcff03eed0050b6af11aaf2a61ab837d7ba3f","status":"affected","lessThan":"8c7c75bfa7b84d6999de2100ce9c09e3779249a0","versionType":"git"},{"version":"266dcff03eed0050b6af11aaf2a61ab837d7ba3f","status":"affected","lessThan":"9260a92ce90e6a95ce2ffdf1441c5216bf3f9552","versionType":"git"},{"version":"266dcff03eed0050b6af11aaf2a61ab837d7ba3f","status":"affected","lessThan":"c2aec15f78b2e6ccd9b94216a901248511355982","versionType":"git"},{"version":"266dcff03eed0050b6af11aaf2a61ab837d7ba3f","status":"affected","lessThan":"1a0e4fbce5d9c1bc179a35a2fd9ed142664299e3","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/serial/serial_core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.17","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/serial/serial_core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/be61f56c4f0ed1cbf16c5f7b0dec6d6414993dd4"},{"url":"https://git.kernel.org/stable/c/e2ddbfd826836cba1b7a25ee4eb512f7d752b703"},{"url":"https://git.kernel.org/stable/c/8c7c75bfa7b84d6999de2100ce9c09e3779249a0"},{"url":"https://git.kernel.org/stable/c/9260a92ce90e6a95ce2ffdf1441c5216bf3f9552"},{"url":"https://git.kernel.org/stable/c/c2aec15f78b2e6ccd9b94216a901248511355982"},{"url":"https://git.kernel.org/stable/c/1a0e4fbce5d9c1bc179a35a2fd9ed142664299e3"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:35:15.311Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"6.12.114"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"6.18.57"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"7.2.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}