AZL-115582: CVE-2026-99717 affecting package kernel 6.6.161.1-1
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In q54sj108a2_probe(), check the pointer returned by pmbus_get_debugfs_dir() before passing it to debugfs_create_dir(); handle a NULL or ERR_PTR result when PMBus debugfs directory creation fails.