CVE-2026-99486: rust: configfs: fix data offset calculation for subsystem callbacks
In the Linux kernel, the following vulnerability has been resolved:
rust: configfs: fix data offset calculation for subsystem callbacks
getgroupdata() chooses between Group::<Parent>::containerof() and Subsystem::<Parent>::containerof() based on whether this represents the root group of a configfs subsystem. It detects this by checking (this).cgsubsys.isnull(), but linkgroup() in fs/configfs/dir.c unconditionally sets cgsubsys for every configgroup attached anywhere in a registered subsystem, including the subsystem's own sugroup. The only configgroup with a NULL cgsubsys is the configfs root, on which userspace cannot trigger callbacks. The check is therefore always false at runtime, and the Subsystem branch is dead. Subsystem-level callbacks reach the Group branch and may read data at the wrong offset.
Thus change the isroot check to correctly identify whether a group is a root group by comparing this to subsys.sugroup.
[ Andreas: Fix clippy warning on 1.85.0 by moving safety comment. ]
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2