CVE-2026-139637

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

Published Nov 30, 2026 CVSS 3.1 · 7 High EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The defect causes the Linux kernel to register a UART port without correctly removing it if sysfs file creation fails during the probe phase. As a result the port remains registered while device resources are released, creating a resource leak that could exhaust kernel resources or leave dangling references, as defined by CWE‑404. This flaw can lead to a denial‑of‑service condition if the device is regularly probed and balances are not freed.

Affected Systems

All Linux kernel deployments that include the sh‑sci serial driver and have not been updated to the fix commit. No specific kernel versions are listed, so the vulnerability should be considered present in every kernel build before the remedial changes.

Risk and Exploitability

The CVSS score is 7 and the EPSS score is unavailable, so the exploitation probability cannot be quantified from the data. The KEV catalog does not list this issue, indicating no known active exploit. The likely attack vector is local kernel probing or device management; an attacker with privileged access who can force the driver to load and fail the sysfs setup may trigger the resource leak. Even without a public exploit, recurring failures could degrade system availability over time.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that includes the sh‑sci driver fix (commit 084c328f or newer).
  • If immediate update is infeasible, disable the sh‑sci serial driver or remove its device tree entries to prevent the faulty probe from occurring.
  • Monitor kernel logs for "device_create_file" failures and schedule a reboot or driver reload when such errors are detected to clean up orphaned UART registrations.

Generated by OpenCVE AI on December 1, 2026 at 13:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-404
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
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.
Title serial: sh-sci: Unregister UART on sysfs setup failure
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

No weakness.

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Dec 1, 2026, 5:43 AM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Dec 1, 2026, 6:17 AM