Skip to content
Medium 6.1

rust: configfs: fix data offset calculation for subsystem callbacks

CVE-2026-99486 First seen on SecPulse

Affected packages

PackageAffected → Fixed
LinuxLinux —
LinuxKernel
≥ 6.16.0, < 6.18.61→ 6.18.61
≥ 6.19.0, < 7.3.2→ 7.3.2

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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

rust: configfs: fix data offset calculation for subsystem callbacks

get_group_data() chooses between Group::::container_of() and
Subsystem::::container_of() based on whether this represents
the root group of a configfs subsystem. It detects this by checking
(*this).cg_subsys.is_null(), but link_group() in fs/configfs/dir.c
unconditionally sets cg_subsys for every config_group attached anywhere
in a registered subsystem, including the subsystem's own su_group. The
only config_group with a NULL cg_subsys 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 is_root check to correctly identify whether a group is a
root group by comparing this to subsys.su_group.

[ Andreas: Fix clippy warning on 1.85.0 by moving safety comment. ]

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details