CVE-2026-99717: hwmon: (pmbus/q54sj108a2) Add missing NULL pointer check

Published Nov 20, 2026
·
Updated

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

hwmon: (pmbus/q54sj108a2) Add missing NULL pointer check

When CONFIGDEBUGFS is enabled and per-client PMBus debugfs directory creation fails during pmbusdoprobe(), q54sj108a2probe() passes the NULL pointer returned by pmbusgetdebugfsdir() to debugfscreatedir() without validation, creating its debugfs directory at the debugfs root instead of under the client directory.

If pmbusinitdebugfs() fails to create the client directory, data->debugfs is left as NULL or an ERRPTR, which pmbusgetdebugfsdir() converts to NULL. Passing a NULL parent to debugfscreatedir() places q54sj108a2dir in the root of the debugfs filesystem and populates it with attribute files whose private data pointers reference psu->debugfsentries. Because this root-level directory is outside the client debugfs hierarchy, PMBus core cleanup does not remove it on device unbind, leaking the debugfs entries and causing a use-after-free of the devm-allocated struct q54sj108a2data if the orphaned files are accessed via q54sj108a2debugfsread() or q54sj108a2debugfswrite() after device removal.

Fix the problem by adding the missing NULL pointer check.

Affected Software

3 affected componentsFixes available
linux/kernel>=5.11.0<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.118
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5
  4. Compensating control

    In q54sj108a2_probe(), add a NULL-pointer check for the directory returned by pmbus_get_debugfs_dir() before passing it to debugfs_create_dir().

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the Linux kernel q54sj108a2 PMBus hardware-monitor driver are exposed only when CONFIG_DEBUG_FS is enabled and creation of the per-client PMBus debugfs directory fails during device probing.

2

What must happen for the use-after-free to be triggered?

The failed debugfs-directory creation must cause the driver to create an orphaned directory at the debugfs root. After the associated device is unbound and its devm-allocated driver data is freed, an attacker or local user would need to access the orphaned debugfs files through the driver's debugfs read or write handlers.

3

How can I tell whether a device may already be affected?

Look for a q54sj108a2_dir directory at the root of the debugfs filesystem rather than within the relevant PMBus client debugfs hierarchy. Its presence after the associated device has been removed indicates orphaned debugfs entries may remain.

4

Is the default configuration affected?

The vulnerable path requires CONFIG_DEBUG_FS to be enabled. The provided information does not establish whether that option is enabled by default in a particular kernel distribution or deployment.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203