Описание
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. ]
A flaw was found in the Linux kernel's Rust configfs subsystem. This flaw allows a local user to cause a Denial of Service (DoS) or information disclosure. Due to an incorrect root group validation check, subsystem-level callbacks calculate memory offsets incorrectly. A local user can trigger these callbacks by interacting with the filesystem, causing the kernel to read memory at unintended offsets and leading to system instability.
Отчет
This flaw is assessed as Moderate severity because exploitation requires local access with permissions to manipulate configfs entries, restricting the blast radius to a localized denial of service or limited data exposure. In standard Red Hat Enterprise Linux releases, kernel infrastructure for Rust and its configfs abstractions are not enabled by default, mitigating exposure for typical production environments. Even where active, unprivileged users cannot trigger the faulty subsystem callback logic without explicit filesystem rights.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | ||
| Red Hat Enterprise Linux 9 | kernel | Not affected | ||
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-8 | Not affected | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-9 | Not affected |
Показывать по
Ссылки на источники
Дополнительная информация
Статус:
EPSS
6.1 Medium
CVSS3
Связанные уязвимости
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:...
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
In the Linux kernel, the following vulnerability has been resolved: r ...
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`. [ Andr...
EPSS
6.1 Medium
CVSS3