Skip to main content
Vulnerability Database/CVE-2026-98121

CVE-2026-98121: Linux Kernel Use-After-Free Vulnerability

CVE-2026-98121 is a use-after-free vulnerability in the Linux kernel watchdog driver that causes NULL pointer dereference in power management callbacks. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98121 Overview

CVE-2026-98121 is a NULL pointer dereference vulnerability in the Linux kernel's msc313e watchdog driver. The flaw resides in the driver's power management (PM) callbacks. The msc313e_wdt_probe() function fails to set the driver data for the platform device. Consequently, calls to dev_get_drvdata() within msc313e_wdt_suspend() and msc313e_wdt_resume() return NULL, leading to a NULL pointer dereference when the system transitions through suspend or resume power states.

Critical Impact

Systems using the MStar/SigmaStar MSC313e watchdog driver can experience a kernel crash (denial of service) during suspend or resume operations due to a NULL pointer dereference [CWE-476].

Affected Products

  • Linux kernel versions containing the msc313e watchdog driver prior to the fix commits
  • Platforms using MStar/SigmaStar MSC313e-based SoCs with the watchdog driver enabled
  • Stable Linux kernel branches patched via commits 6495dc16, 744b2504, b02f902f, and e3eceb76

Discovery Timeline

  • 2026-09-25 - CVE-2026-98121 published to NVD
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-98121

Vulnerability Analysis

The vulnerability affects the msc313e watchdog driver located in the Linux kernel watchdog subsystem. The driver provides timer services for MStar/SigmaStar MSC313e SoCs. During probe, the driver allocates and initializes its device-specific structure but never associates that structure with the underlying platform device via platform_set_drvdata().

When the kernel later invokes power management callbacks, the suspend and resume handlers attempt to retrieve the driver's private data using dev_get_drvdata(). Because the driver data pointer was never set, this call returns NULL. Subsequent dereferences of fields within that structure trigger a kernel oops, destabilizing the system.

The impact is confined to availability. Triggering the dereference requires the system to enter or exit a low-power state while the vulnerable driver is bound. No remote attacker interaction is possible without local access to initiate a suspend cycle.

Root Cause

The root cause is a missing call to platform_set_drvdata() inside msc313e_wdt_probe(). Without this call, the kernel has no association between the platform device object and the driver's private context structure. The PM callbacks assume this association exists, producing an unchecked NULL pointer dereference [CWE-476].

Attack Vector

Exploitation requires local privileges sufficient to initiate a system suspend or resume cycle, or occurs naturally on devices that use runtime PM. The vulnerability is not remotely exploitable and does not permit code execution or privilege escalation. The resulting kernel oops produces a denial of service condition on affected hardware.

For technical details, refer to the upstream fixes: Kernel Commit 6495dc16, Kernel Commit 744b2504, Kernel Commit b02f902f, and Kernel Commit e3eceb76.

Detection Methods for CVE-2026-98121

Indicators of Compromise

  • Kernel oops or panic messages referencing msc313e_wdt_suspend or msc313e_wdt_resume in dmesg output
  • NULL pointer dereference traces originating from the watchdog subsystem during ACPI or runtime PM state transitions
  • Unexpected system reboots or hangs correlated with suspend-to-RAM or resume operations on MSC313e-based hardware

Detection Strategies

  • Audit kernel version strings against the fixed stable branches referenced in the upstream commits
  • Collect and parse dmesg and /var/log/kern.log for stack traces containing msc313e_wdt symbols near PM transition events
  • Correlate device suspend/resume events from systemd-journald with kernel fault signatures

Monitoring Recommendations

  • Forward kernel ring buffer logs from embedded Linux fleets using MSC313e SoCs to a centralized log platform
  • Alert on recurrent crash signatures tied to the watchdog driver on identical hardware revisions
  • Track kernel package versions across the fleet to confirm patch deployment status

How to Mitigate CVE-2026-98121

Immediate Actions Required

  • Update affected Linux kernels to a stable release that includes commits 6495dc16, 744b2504, b02f902f, or e3eceb76
  • Inventory devices built on MStar/SigmaStar MSC313e SoCs and prioritize firmware updates for systems that routinely suspend and resume
  • Validate kernel builds post-upgrade to ensure the msc313e watchdog driver is included with the fix applied

Patch Information

The fix sets the platform device driver data in msc313e_wdt_probe() by adding the required platform_set_drvdata() call. This ensures that dev_get_drvdata() returns a valid pointer when invoked from msc313e_wdt_suspend() and msc313e_wdt_resume(). Apply the upstream patches referenced above, available on git.kernel.org, or install vendor kernel packages that incorporate them.

Workarounds

  • Disable the msc313e watchdog driver (CONFIG_MSC313E_WATCHDOG) in the kernel configuration if the hardware watchdog is not required
  • Avoid system suspend and resume cycles on vulnerable devices until the kernel is patched
  • Unbind the driver at runtime using the sysfs unbind interface on hosts where the watchdog is not actively used
bash
# Unbind the msc313e watchdog driver at runtime (replace with actual device name)
echo "<platform-device-id>" | sudo tee /sys/bus/platform/drivers/msc313e-wdt/unbind

# Verify the driver is no longer bound
ls /sys/bus/platform/drivers/msc313e-wdt/

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.