{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139637","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.944Z","datePublished":"2026-11-30T13:36:35.387Z","dateUpdated":"2026-12-01T05:43:01.126Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:43:01.126Z"},"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."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The freed state is reached locally by opening the leftover /dev/ttySCn character device: uart_port_startup() -> uart_change_pm() -> sci_pm() -> sci_port_enable(), and set_termios -> sci_init_pins(). The trigger is the error return in sci_probe() after device_create_file(rx_fifo_trigger/rx_fifo_timeout) fails; no remote peer supplies any data.\nAC:H - The UAF needs sci_probe() to fail in device_create_file() after uart_add_one_port(). The only realistic cause is an ENOMEM from kernfs_node_cache, which is not SLAB_ACCOUNT, so a memcg limit cannot force it. Probe runs at boot, during coldplug or on a root bind, and -EEXIST cannot happen because the attrs are always removed. The attacker cannot produce this state on demand.\nPR:L - Once the probe has failed, the port stays registered with the serial core. udev's default rule gives /dev/ttySC* group dialout, mode 0660, so an ordinary user in that group can open the tty and issue termios/TIOCMGET ioctls without real root.\nUI:N - No other user has to act: the attacker's own open()/ioctl() on the orphaned /dev/ttySCn reaches the freed clock, cfg and mctrl_gpios objects.\nS:U - Both the corruption and its effects stay inside the kernel's own security authority; no VM, IOMMU or sandbox boundary is crossed.\nC:H - devres has freed sci_port->clks[] (clk_put -> free_clk kfree), sp->cfg (devm plat_sci_port) and sp->gpios. sci_port_enable() reads clk->core and sci_get_mctrl() reads gpios->gpio[] from slab memory that may have been reallocated, so the attacker gets kernel reads through attacker-shaped objects.\nI:H - clk_prepare_enable() on the freed struct clk follows clk->core into core->ops->prepare, and sci_init_pins() calls s->cfg->ops->init_pins from the freed plat_sci_port. Reclaiming either slot with controlled data turns these into indirect calls the attacker steers, i.e. control-flow hijack.\nA:H - Dereferencing the freed clk/cfg/gpios objects crashes the kernel. A console port is also left registered with its reset asserted by the devm action, so serial_console_write can hang in sci_poll_put_char."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/serial/sh-sci.c"],"versions":[{"version":"5d23188a473da0b2fe6849ccf03578eebfead30e","lessThan":"ea3964844d40b97d8947d39d52c83acaca8e6967","status":"affected","versionType":"git"},{"version":"5d23188a473da0b2fe6849ccf03578eebfead30e","lessThan":"d45fdbc01e0541f4fb28c9644522b98a732e7c4f","status":"affected","versionType":"git"},{"version":"5d23188a473da0b2fe6849ccf03578eebfead30e","lessThan":"084c328f680811fe65d013d1b09d7f329e256fa4","status":"affected","versionType":"git"},{"version":"5d23188a473da0b2fe6849ccf03578eebfead30e","lessThan":"c5b33c86d86da3ccff8c05e2a28719e3ec933f70","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/serial/sh-sci.c"],"versions":[{"version":"4.11","status":"affected"},{"version":"0","lessThan":"4.11","status":"unaffected","versionType":"semver"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"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"}]}]}],"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"}],"title":"serial: sh-sci: Unregister UART on sysfs setup failure","x_generator":{"engine":"bippy-1.2.0"}}}}