mlxsw: spectrum_acl_erp: Fix object nesting warning
In the Linux kernel, the following vulnerability has been resolved: mlxsw: spectrum_acl_erp: Fix object nesting warning ACLs in Spectrum-2 and newer ASICs can reside in the algorithmic TCAM (A-TCAM) or in the ordinary circuit TCAM (C-TCAM). The former can contain more ACLs (i.e., tc filters), but the number of masks in each region (i.e., tc chain) is limited. In order to mitigate the effects of the above limitation, the device allows filters to share a single mask if their masks only differ in up to 8 consecutive bits. For example, dst_ip/25 can be represented using dst_ip/24 with a delta of 1 bit. The C-TCAM does not have a limit on the number of masks being used (and therefore does not support mask aggregation), but can contain a limited number of filters. The driver uses the "objagg" library to perform the mask aggregation by passing it objects that consist of the filter's mask and whether the filter is to be inserted into the A-TCAM or the C-TCAM since filters in different TCAMs cannot share a mask. The set of created objects is dependent on the insertion order of the filters and is not necessarily optimal. Therefore, the driver will periodically ask the library to compute a more optimal set ("hints") by looking at all the existing objects. When the library asks the driver whether two objects can be aggregated the driver only compares the provided masks and ignores the A-TCAM / C-TCAM indication. This is the right thing to do since the goal is to move as many filters as possible to the A-TCAM. The driver also forbids two identical masks from being aggregated since this can only happen if one was intentionally put in the C-TCAM to avoid a conflict in the A-TCAM. The above can result in the following set of hints: H1: {mask X, A-TCAM} -> H2: {mask Y, A-TCAM} // X is Y + delta H3: {mask Y, C-TCAM} -> H4: {mask Z, A-TCAM} // Y is Z + delta After getting the hints from the library the driver will start migrating filters from one region to another while consulting the computed hints and instructing the device to perform a lookup in both regions during the transition. Assuming a filter with mask X is being migrated into the A-TCAM in the new region, the hints lookup will return H1. Since H2 is the parent of H1, the library will try to find the object associated with it and create it if necessary in which case another hints lookup (recursive) will be performed. This hints lookup for {mask Y, A-TCAM} will either return H2 or H3 since the driver passes the library an object comparison function that ignores the A-TCAM / C-TCAM indication. This can eventually lead to nested objects which are not supported by the library [1]. Fix by removing the object comparison function from both the driver and the library as the driver was the only user. That way the lookup will only return exact matches. I do not have a reliable reproducer that can reproduce the issue in a timely manner, but before the fix the issue would reproduce in several minutes and with the fix it does not reproduce in over an hour. Note that the current usefulness of the hints is limited because they include the C-TCAM indication and represent aggregation that cannot actually happen. This will be addressed in net-next. [1] WARNING: CPU: 0 PID: 153 at lib/objagg.c:170 objagg_obj_parent_assign+0xb5/0xd0 Modules linked in: CPU: 0 PID: 153 Comm: kworker/0:18 Not tainted 6.9.0-rc6-custom-g70fbc2c1c38b #42 Hardware name: Mellanox Technologies Ltd. MSN3700C/VMOD0008, BIOS 5.11 10/10/2018 Workqueue: mlxsw_core mlxsw_sp_acl_tcam_vregion_rehash_work RIP: 0010:objagg_obj_parent_assign+0xb5/0xd0 [...] Call Trace: <TASK> __objagg_obj_get+0x2bb/0x580 objagg_obj_get+0xe/0x80 mlxsw_sp_acl_erp_mask_get+0xb5/0xf0 mlxsw_sp_acl_atcam_entry_add+0xe8/0x3c0 mlxsw_sp_acl_tcam_entry_create+0x5e/0xa0 mlxsw_sp_acl_tcam_vchunk_migrate_one+0x16b/0x270 mlxsw_sp_acl_tcam_vregion_rehash_work+0xbe/0x510 process_one_work+0x151/0x370
- Опубликовано
- 20 авг. 2024 г.
- Обновлено
- 5 авг. 2026 г.
- EPSS
- 0,2 % · 12-й процентиль
- CWE
- CWE-401
Войдите, чтобы следить · Вы получите уведомление, если запись попадёт в KEV, получит эксплойт или обновится.
Инструменты для отчёта
Оценка срочности
22
Наблюдать
Пока низкий приоритет.
- CVSS
- 22 / 40 · 5.5 / 10
- CISA KEV
- 0 / 30 · Нет в списке
- EPSS
- 0 / 30 · 0,2 %
Решение CISA SSVC
- Эксплуатация
- нет
- Автоматизируемо
- нет
- Техническое влияние
- частичное
Vulnrichment: входные данные дерева решений CISA.
Оценка CNA и NVD
- NVD
- 5,5
- CNA · Linux
- 7,8
- разница 2,3 балла
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Оценка присваивающего органа и независимая оценка NVD. Разрыв означает, что критичность спорна.
Затронутые системы
| Вендор | Продукт | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
Затронутые версии
Диапазоны версий NVD (для продуктов из каталога). Добавьте продукт в стек с версией, и сопоставление будет по ним.
- linux linux kernel5.1 и новее · до 5.4.282
- linux linux kernel5.5 и новее · до 5.10.224
- linux linux kernel5.11 и новее · до 5.15.165
- linux linux kernel5.16 и новее · до 6.1.103
- linux linux kernel6.2 и новее · до 6.6.44
- linux linux kernel6.7 и новее · до 6.10.3
Версии, заявленные вендором
Диапазоны затронутых версий, заявленные назначающей организацией (Linux). Не зависят от анализа CPE в NVD и обычно опережают его.
Linux Linux
- 5.1затронута
- 9069a3817d82b01b3a55da382c774e3575946130 и новее · до 4dc09f6f260db3c4565a4ec52ba369393598f2fbзатронута · git
- 9069a3817d82b01b3a55da382c774e3575946130 и новее · до 36a9996e020dd5aa325e0ecc55eb2328288ea6bbзатронута · git
- 9069a3817d82b01b3a55da382c774e3575946130 и новее · до 9a5261a984bba4f583d966c550fa72c33ff3714eзатронута · git
- 9069a3817d82b01b3a55da382c774e3575946130 и новее · до 25c6fd9648ad05da493a5d30881896a78a08b624затронута · git
- 9069a3817d82b01b3a55da382c774e3575946130 и новее · до 0e59c2d22853266704e127915653598f7f104037затронута · git
- 9069a3817d82b01b3a55da382c774e3575946130 и новее · до fb5d4fc578e655d113f09565f6f047e15f7ab578затронута · git
- 9069a3817d82b01b3a55da382c774e3575946130 и новее · до 97d833ceb27dc19f8777d63f90be4a27b5daeedfзатронута · git
- до 5.1не затронута · semver
- 5.4.282 и новее · до 5.4.* включительноне затронута · semver
Затронутые пакеты
Данные OSV и GitHub Advisory: экосистема, пакет и диапазон. Сопоставление SBOM использует эту таблицу.
| Экосистема | Пакет | Затронутый диапазон | Исправление |
|---|---|---|---|
| Debian:12 | linux | до 6.1.106-1 | 6.1.106-1 |
| Debian:13 | linux | до 6.10.3-1 | 6.10.3-1 |
| Red Hat:rhel_eus:9.4::appstream | bpftool-debuginfo | до 0:7.3.0-427.76.1.el9_4 | 0:7.3.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-64k-debug-debuginfo | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-64k-debug-devel | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-64k-debug-devel-matched | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-64k-debuginfo | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-64k-devel | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-64k-devel-matched | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-debug-debuginfo | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-debug-devel | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-debug-devel-matched | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-debuginfo | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-debuginfo-common-aarch64 | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-debuginfo-common-ppc64le | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-debuginfo-common-s390x | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-debuginfo-common-x86_64 | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-devel | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-devel-matched | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-doc | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-rt-debug-debuginfo | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-rt-debuginfo | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-tools-debuginfo | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
| Red Hat:rhel_eus:9.4::appstream | kernel-zfcpdump-debuginfo | до 0:5.14.0-427.76.1.el9_4 | 0:5.14.0-427.76.1.el9_4 |
+56
Тот же продукт
linux: все записиДругие записи с наивысшей оценкой для того же основного продукта.
- CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe KEV89Срочно
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Срочно
- CVE-2016-5195Race condition in mm/gup.c in the Linux kernel 2.x through 4.x before 4.8.3 allows local users to gain privileges by leveraging incorrect haKEV83Срочно
- CVE-2019-13272In the Linux kernel before 5.1.17, ptrace_link in kernel/ptrace.c mishandles the recording of the credentials of a process that wants to creKEV77На этой неделе
- CVE-2013-6282The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the v6k and v7 ARM platforms do not validate certain addKEV77На этой неделе
- CVE-2013-2094The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9 uses an incorrect integer data type, which allows loKEV77На этой неделе
Исправление
На какую версию обновиться
Версии с исправлением по данным вендора, реестров пакетов и Microsoft. Перед обновлением сверьтесь с бюллетенем вендора.
| Продукт / пакет | Исправленная версия | Источник |
|---|---|---|
| Linux Linux | 0e59c2d22853266704e127915653598f7f104037 | Вендор (CNA) |
| Linux Linux | 25c6fd9648ad05da493a5d30881896a78a08b624 | Вендор (CNA) |
| Linux Linux | 36a9996e020dd5aa325e0ecc55eb2328288ea6bb | Вендор (CNA) |
| Linux Linux | 4dc09f6f260db3c4565a4ec52ba369393598f2fb | Вендор (CNA) |
| Linux Linux | 97d833ceb27dc19f8777d63f90be4a27b5daeedf | Вендор (CNA) |
| Linux Linux | 9a5261a984bba4f583d966c550fa72c33ff3714e | Вендор (CNA) |
| Linux Linux | fb5d4fc578e655d113f09565f6f047e15f7ab578 | Вендор (CNA) |
| debian:linux | 6.1.106-1 · Debian:12 | Реестр пакетов (OSV) |
| red hat:bpftool-debuginfo | 0:7.3.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Реестр пакетов (OSV) |
| red hat:kernel-64k-debug-debuginfo | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Реестр пакетов (OSV) |
| red hat:kernel-64k-debug-devel | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Реестр пакетов (OSV) |
| red hat:kernel-64k-debug-devel-matched | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Реестр пакетов (OSV) |
| red hat:kernel-64k-debuginfo | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Реестр пакетов (OSV) |
| red hat:kernel-64k-devel | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Реестр пакетов (OSV) |
| red hat:kernel-64k-devel-matched | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Реестр пакетов (OSV) |
| red hat:kernel-debug-debuginfo | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Реестр пакетов (OSV) |
| red hat:kernel-debug-devel | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Реестр пакетов (OSV) |
| red hat:kernel-debug-devel-matched | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Реестр пакетов (OSV) |
| red hat:kernel-debuginfo | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Реестр пакетов (OSV) |
| red hat:kernel-debuginfo-common-aarch64 | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Реестр пакетов (OSV) |
Статус эксплойта
Публичный эксплойт неизвестен
Публичный эксплойт пока не обнаружен. Это не значит, что вы в безопасности, лишь что порог чуть выше.
Контекст для исследователя
Для пентестеров и исследователей: профиль атаки, расхождение оценок, хронология, коммиты исправлений, авторы, кандидаты в варианты и цепочки, охват bug bounty. Всё выводится из имеющихся данных; без кода эксплойтов.
Хронология
От публикации до сегодня: proof of concept, модуль Metasploit, CISA KEV и запись об исправлении. Даты — как сообщают источники.
Кроме публикации датированных событий нет.
Ежедневная оценка FIRST EPSS; записываются только изменения от 0,01 (ступенчатый график).
Ссылки на патчи и коммиты
Коммиты, PR и diff среди источников. Отправная точка для patch-diff и поиска вариантов; это исправления, не эксплойты.
Среди источников нет ссылок на коммит или PR.
Авторы
Все исследователиНашедшие, сообщившие и аналитики, названные в записи CNA. Нажмите имя, чтобы увидеть другие записи исследователя.
В записи CNA нет авторов.
Кандидаты в варианты
Тот же продукт, тот же класс уязвимости, в пределах 18 месяцев. Если патч не закрыл первопричину, родственная ошибка здесь.
Ночной расчёт связей ничего не нашёл.
Кандидаты в цепочки
Обход аутентификации и уязвимость, требующая привилегий, в одном продукте и близко по времени: вместе они могут дать путь без аутентификации.
—
Охват bug bounty
Известной публичной программы нет.
Источник: bounty-targets-data (публичные списки HackerOne, Bugcrowd, Intigriti, YesWeHack).
Технические детали
Условия атаки
- Может быть вызвана пользователем с локальным доступом к системе.
- Достаточно учётной записи с низкими привилегиями.
- Действия пользователя не требуются.
- Особые условия не требуются; воспроизводится стабильно.
В случае успеха
- Конфиденциальность
- нет
- Целостность
- нет
- Доступность
- высокое · работа сервиса может быть нарушена
- Вектор атаки
- Локальный
- Сложность атаки
- Низкая
- Требуемые привилегии
- Низкие
- Взаимодействие с пользователем
- Не требуется
- Область действия
- Не изменяется
- Влияние на конфиденциальность
- Нет
- Влияние на целостность
- Нет
- Влияние на доступность
- Высокое
Класс уязвимости (CWE)
CWE-401 · Missing Release of Memory after Effective LifetimeВектор CVSS
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Контекст атаки
Шаблоны атак MITRE CAPEC и техники ATT&CK для этого класса уязвимости (CWE). Отправная точка для правил обнаружения и threat hunting.
У MITRE нет сопоставления CAPEC/ATT&CK для этого CWE.
Анализ Noroxi
Анализа Noroxi для этой записи пока нет
Мы не пишем анализ вручную для всех 385 000+ уязвимостей; это было бы нечестно. Для значимых уязвимостей с реальным влиянием наша команда описывает механизм, обнаружение и устранение.
Мы используем этот продукт, нужна помощьЖурнал изменений
- Исправление✗ → ✓
Для отслеживаемых записей эти изменения приходят и как уведомления. →
Источники
- git.kernel.org/stable/c/0e59c2d22853266704e127915653598f7f104037
- git.kernel.org/stable/c/25c6fd9648ad05da493a5d30881896a78a08b624
- git.kernel.org/stable/c/36a9996e020dd5aa325e0ecc55eb2328288ea6bb
- git.kernel.org/stable/c/4dc09f6f260db3c4565a4ec52ba369393598f2fb
- git.kernel.org/stable/c/97d833ceb27dc19f8777d63f90be4a27b5daeedf
- git.kernel.org/stable/c/9a5261a984bba4f583d966c550fa72c33ff3714e
- git.kernel.org/stable/c/fb5d4fc578e655d113f09565f6f047e15f7ab578
- lists.debian.org/debian-lts-announce/2024/10/msg00003.html
- lists.debian.org/debian-lts-announce/2025/01/msg00001.html
Рекомендации вендоров и официальные записи. Ссылки на эксплойты/PoC намеренно исключены.