rust: configfs: fix data offset calculation for subsystem callbacks
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| LinuxLinux | — | Not listed |
| LinuxKernel |
≥ 6.16.0, < 6.18.61→ 6.18.61 ≥ 6.19.0, < 7.3.2→ 7.3.2 |
6.18.61 7.3.2 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- BellSoft Alpaquita BELL-CVE-2026-99486 linux-lts Fix available
- Debian DEBIAN-CVE-2026-99486 linux Fix available
- Ubuntu UBUNTU-CVE-2026-99486 linux-vmware, linux-starfive-6.5, linux-starfive-6.2 +118 more No fixed version in this record
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
- advisory github.com
- advisory nvd.nist.gov
- package git.kernel.org
- REDHAT Red Hat
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web github.com