{"id":"CVE-2026-139637","state":"PUBLISHED","title":"serial: sh-sci: Unregister UART on sysfs setup failure","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nserial: sh-sci: Unregister UART on sysfs setup failure\n\nsci_probe_single() registers the UART port before sci_probe() creates\nthe RX FIFO tuning attributes. If either device_create_file() call\nfails, probe returns an error without removing the port from the serial\ncore. Device-managed resources are then released while the port remains\nregistered.\n\nUnregister the UART port before returning either sysfs creation error.\nIf the second attribute fails, remove the first attribute before\nunregistering the port. Keep the existing probe failure policy and leave\nthe successful initialization path unchanged.\n\nThis issue was identified during our ongoing static-analysis research while\nreviewing kernel code.","publishedAt":"2026-11-30T13:36:35.387Z","updatedAt":"2026-11-30T13:36:35.387Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5d23188a473da0b2fe6849ccf03578eebfead30e","status":"affected","lessThan":"ea3964844d40b97d8947d39d52c83acaca8e6967","versionType":"git"},{"version":"5d23188a473da0b2fe6849ccf03578eebfead30e","status":"affected","lessThan":"d45fdbc01e0541f4fb28c9644522b98a732e7c4f","versionType":"git"},{"version":"5d23188a473da0b2fe6849ccf03578eebfead30e","status":"affected","lessThan":"084c328f680811fe65d013d1b09d7f329e256fa4","versionType":"git"},{"version":"5d23188a473da0b2fe6849ccf03578eebfead30e","status":"affected","lessThan":"c5b33c86d86da3ccff8c05e2a28719e3ec933f70","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/serial/sh-sci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.11","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","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/sh-sci.c"]}],"references":["https://git.kernel.org/stable/c/ea3964844d40b97d8947d39d52c83acaca8e6967","https://git.kernel.org/stable/c/d45fdbc01e0541f4fb28c9644522b98a732e7c4f","https://git.kernel.org/stable/c/084c328f680811fe65d013d1b09d7f329e256fa4","https://git.kernel.org/stable/c/c5b33c86d86da3ccff8c05e2a28719e3ec933f70"],"weaknesses":[],"ingestedAt":"2026-11-30T13:54:04.526Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139637.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139637","state":"PUBLISHED","datePublished":"2026-11-30T13:36:35.387Z","dateUpdated":"2026-11-30T13:36:35.387Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.944Z"},"containers":{"cna":{"title":"serial: sh-sci: Unregister UART on sysfs setup failure","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nserial: sh-sci: Unregister UART on sysfs setup failure\n\nsci_probe_single() registers the UART port before sci_probe() creates\nthe RX FIFO tuning attributes. If either device_create_file() call\nfails, probe returns an error without removing the port from the serial\ncore. Device-managed resources are then released while the port remains\nregistered.\n\nUnregister the UART port before returning either sysfs creation error.\nIf the second attribute fails, remove the first attribute before\nunregistering the port. Keep the existing probe failure policy and leave\nthe successful initialization path unchanged.\n\nThis issue was identified during our ongoing static-analysis research while\nreviewing kernel code."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5d23188a473da0b2fe6849ccf03578eebfead30e","status":"affected","lessThan":"ea3964844d40b97d8947d39d52c83acaca8e6967","versionType":"git"},{"version":"5d23188a473da0b2fe6849ccf03578eebfead30e","status":"affected","lessThan":"d45fdbc01e0541f4fb28c9644522b98a732e7c4f","versionType":"git"},{"version":"5d23188a473da0b2fe6849ccf03578eebfead30e","status":"affected","lessThan":"084c328f680811fe65d013d1b09d7f329e256fa4","versionType":"git"},{"version":"5d23188a473da0b2fe6849ccf03578eebfead30e","status":"affected","lessThan":"c5b33c86d86da3ccff8c05e2a28719e3ec933f70","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/serial/sh-sci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.11","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","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/sh-sci.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ea3964844d40b97d8947d39d52c83acaca8e6967"},{"url":"https://git.kernel.org/stable/c/d45fdbc01e0541f4fb28c9644522b98a732e7c4f"},{"url":"https://git.kernel.org/stable/c/084c328f680811fe65d013d1b09d7f329e256fa4"},{"url":"https://git.kernel.org/stable/c/c5b33c86d86da3ccff8c05e2a28719e3ec933f70"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:36:35.387Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}