Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139637

published high CVSS 3.1 · 7.0

serial: sh-sci: Unregister UART on sysfs setup failure

Published
30 Nov 2026, 13:36:35 UTC
Updated
01 Dec 2026, 05:43:01 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux5d23188a473da0b2fe6849ccf03578eebfead30e to < ea3964844d40b97d8947d39d52c83acaca8e6967 · 5d23188a473da0b2fe6849ccf03578eebfead30e to < d45fdbc01e0541f4fb28c9644522b98a732e7c4f · 5d23188a473da0b2fe6849ccf03578eebfead30e to < 084c328f680811fe65d013d1b09d7f329e256fa4 · 5d23188a473da0b2fe6849ccf03578eebfead30e to < c5b33c86d86da3ccff8c05e2a28719e3ec933f70 · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.11 (affected) · 0 to < 4.11 (unaffected · semver) · 6.12.120 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux

Description

In the Linux kernel, the following vulnerability has been resolved: serial: sh-sci: Unregister UART on sysfs setup failure sci_probe_single() registers the UART port before sci_probe() creates the RX FIFO tuning attributes. If either device_create_file() call fails, probe returns an error without removing the port from the serial core. Device-managed resources are then released while the port remains registered. Unregister the UART port before returning either sysfs creation error. If the second attribute fails, remove the first attribute before unregistering the port. Keep the existing probe failure policy and leave the successful initialization path unchanged. This issue was identified during our ongoing static-analysis research while reviewing kernel code.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.0 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: 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. AC: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. PR: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. UI: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. S:U - Both the corruption and its effects stay inside the kernel's own security authority; no VM, IOMMU or sandbox boundary is crossed. C: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. I: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. A: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.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 5d23188a473da0b2fe6849ccf03578eebfead30e to < ea3964844d40b97d8947d39d52c83acaca8e6967 (affected · git)5d23188a473da0b2fe6849ccf03578eebfead30e to < d45fdbc01e0541f4fb28c9644522b98a732e7c4f (affected · git)5d23188a473da0b2fe6849ccf03578eebfead30e to < 084c328f680811fe65d013d1b09d7f329e256fa4 (affected · git)5d23188a473da0b2fe6849ccf03578eebfead30e to < c5b33c86d86da3ccff8c05e2a28719e3ec933f70 (affected · git)Default: unaffected Linux · cna
Linux Linux 4.11 (affected)0 to < 4.11 (unaffected · semver)6.12.120 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

1

Linux · cna

serial: sh-sci: Unregister UART on sysfs setup failure

Provenance

Schema
5.2
Searchable
yes
Content hash
a145198f1fd6282be05c980ab114f79341eb39563e5dc9091c69a44668adb0f1
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected