Skip to contentSkip to conversation

CVE-2026-98121: watchdog: msc313e: Fix NULL pointer dereference in PM callbacks

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

watchdog: msc313e: Fix NULL pointer dereference in PM callbacks

msc313e_wdt_probe() doesn't set the driver data for the platform device. As a result, dev_get_drvdata() in msc313e_wdt_suspend() and msc313e_wdt_resume() will return NULL, leading to a NULL pointer dereference afterward.

Set the platform device driver data in msc313e_wdt_probe().

The Linux kernel CVE team has assigned CVE-2026-98121 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.14 with commit e9800b7994642a794afd4894f072541c14277ce8 and fixed in 6.12.111 with commit b02f902fe4b59d65f74a25c4523a75453bd3f808
	Issue introduced in 5.14 with commit e9800b7994642a794afd4894f072541c14277ce8 and fixed in 6.18.53 with commit 744b25040d8206f7925b8ba0be5edf93fa4bf81e
	Issue introduced in 5.14 with commit e9800b7994642a794afd4894f072541c14277ce8 and fixed in 7.2.7 with commit 6495dc16e635356fd2b7535dcbf9b6779de4e753
	Issue introduced in 5.14 with commit e9800b7994642a794afd4894f072541c14277ce8 and fixed in 7.3-rc3 with commit e3eceb76515910746e6268c4e4ac1c07516ebd7b

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98121

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/watchdog/msc313e_wdt.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/b02f902fe4b59d65f74a25c4523a75453bd3f808
	https://git.kernel.org/stable/c/744b25040d8206f7925b8ba0be5edf93fa4bf81e
	https://git.kernel.org/stable/c/6495dc16e635356fd2b7535dcbf9b6779de4e753
	https://git.kernel.org/stable/c/e3eceb76515910746e6268c4e4ac1c07516ebd7b