CVE-2026-99486
rust: configfs: fix data offset calculation for subsystem callbacks
- CVSS
- —
- EPSS
- 0.17% (p6)
- Published
- 2026-11-19
- Age
- 15d old
- Modified
- 2026-11-20
- Product
- Linux Linux
Description
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::<Parent>::container_of()` and `Subsystem::<Parent>::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. ]
Fixed in
6.18.61 · 7.3.2 · b91e8d8c2ed97b49a2fd6c2c9516586a8f2aa3c0 · dc1744584b2b9cd8a04e1b824f72bfec0e3c3374 · e84c9b64df615e658e47561b835c1364dc48f0c0
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Linux | Kernel | >=6.16.0, <6.18.61 | 6.18.61 |
| Linux | Kernel | >=6.19.0, <7.3.2 | 7.3.2 |
| vendor | Linux | >=446cafc295bfc0e89da94a482fe8290bd8b429fb, <b91e8d8c2ed97b49a2fd6c2c9516586a8f2aa3c0 | b91e8d8c2ed97b49a2fd6c2c9516586a8f2aa3c0 |
| vendor | Linux | >=446cafc295bfc0e89da94a482fe8290bd8b429fb, <dc1744584b2b9cd8a04e1b824f72bfec0e3c3374 | dc1744584b2b9cd8a04e1b824f72bfec0e3c3374 |
| vendor | Linux | >=446cafc295bfc0e89da94a482fe8290bd8b429fb, <e84c9b64df615e658e47561b835c1364dc48f0c0 | e84c9b64df615e658e47561b835c1364dc48f0c0 |
Sources
- NVD · first seen 15d ago · NVD terms of use
- OSV · first seen 14d ago · CC-BY 4.0
- CVE List · first seen 15d ago · CVE Terms of Use
References
- https://git.kernel.org/stable/c/dc1744584b2b9cd8a04e1b824f72bfec0e3c3374 other
- https://git.kernel.org/stable/c/b91e8d8c2ed97b49a2fd6c2c9516586a8f2aa3c0 other
- https://git.kernel.org/stable/c/e84c9b64df615e658e47561b835c1364dc48f0c0 other
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99486.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-99486 advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git package