Перейти к содержимому
Noroxi
CVE-2024-43880· NVD / CVE Program· CNA Linux

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

СредняяCVSS 5.5 · v3.1—Эксплойта нет Есть исправление
Опубликовано
20 авг. 2024 г.
Обновлено
5 авг. 2026 г.
EPSS
0,2 % · 12-й процентиль
Следить за этой CVE

Войдите, чтобы следить · Вы получите уведомление, если запись попадёт в KEV, получит эксплойт или обновится.

Инструменты для отчёта

JSON

Оценка срочности

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. Разрыв означает, что критичность спорна.

Затронутые системы

ВендорПродукт
linuxlinux 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:12linuxдо 6.1.106-16.1.106-1
Debian:13linuxдо 6.10.3-16.10.3-1
Red Hat:rhel_eus:9.4::appstreambpftool-debuginfoдо 0:7.3.0-427.76.1.el9_40:7.3.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-64k-debug-debuginfoдо 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-64k-debug-develдо 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-64k-debug-devel-matchedдо 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-64k-debuginfoдо 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-64k-develдо 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-64k-devel-matchedдо 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-debug-debuginfoдо 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-debug-develдо 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-debug-devel-matchedдо 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-debuginfoдо 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-debuginfo-common-aarch64до 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-debuginfo-common-ppc64leдо 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-debuginfo-common-s390xдо 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-debuginfo-common-x86_64до 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-develдо 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-devel-matchedдо 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-docдо 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-rt-debug-debuginfoдо 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-rt-debuginfoдо 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-tools-debuginfoдо 0:5.14.0-427.76.1.el9_40:5.14.0-427.76.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-zfcpdump-debuginfoдо 0:5.14.0-427.76.1.el9_40: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 KEV
    89Срочно
  • CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV
    85Срочно
  • 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 haKEV
    83Срочно
  • 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 creKEV
    77На этой неделе
  • 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 addKEV
    77На этой неделе
  • 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 loKEV
    77На этой неделе

Исправление

На какую версию обновиться

Версии с исправлением по данным вендора, реестров пакетов и Microsoft. Перед обновлением сверьтесь с бюллетенем вендора.

Продукт / пакетИсправленная версияИсточник
Linux Linux0e59c2d22853266704e127915653598f7f104037Вендор (CNA)
Linux Linux25c6fd9648ad05da493a5d30881896a78a08b624Вендор (CNA)
Linux Linux36a9996e020dd5aa325e0ecc55eb2328288ea6bbВендор (CNA)
Linux Linux4dc09f6f260db3c4565a4ec52ba369393598f2fbВендор (CNA)
Linux Linux97d833ceb27dc19f8777d63f90be4a27b5daeedfВендор (CNA)
Linux Linux9a5261a984bba4f583d966c550fa72c33ff3714eВендор (CNA)
Linux Linuxfb5d4fc578e655d113f09565f6f047e15f7ab578Вендор (CNA)
debian:linux6.1.106-1 · Debian:12Реестр пакетов (OSV)
red hat:bpftool-debuginfo0:7.3.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamРеестр пакетов (OSV)
red hat:kernel-64k-debug-debuginfo0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamРеестр пакетов (OSV)
red hat:kernel-64k-debug-devel0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamРеестр пакетов (OSV)
red hat:kernel-64k-debug-devel-matched0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamРеестр пакетов (OSV)
red hat:kernel-64k-debuginfo0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamРеестр пакетов (OSV)
red hat:kernel-64k-devel0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamРеестр пакетов (OSV)
red hat:kernel-64k-devel-matched0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamРеестр пакетов (OSV)
red hat:kernel-debug-debuginfo0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamРеестр пакетов (OSV)
red hat:kernel-debug-devel0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamРеестр пакетов (OSV)
red hat:kernel-debug-devel-matched0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamРеестр пакетов (OSV)
red hat:kernel-debuginfo0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamРеестр пакетов (OSV)
red hat:kernel-debuginfo-common-aarch640:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamРеестр пакетов (OSV)

Статус эксплойта

Публичный эксплойт неизвестен

Публичный эксплойт пока не обнаружен. Это не значит, что вы в безопасности, лишь что порог чуть выше.

Контекст для исследователя

Для пентестеров и исследователей: профиль атаки, расхождение оценок, хронология, коммиты исправлений, авторы, кандидаты в варианты и цепочки, охват bug bounty. Всё выводится из имеющихся данных; без кода эксплойтов.

Хронология

От публикации до сегодня: proof of concept, модуль Metasploit, CISA KEV и запись об исправлении. Даты — как сообщают источники.

Кроме публикации датированных событий нет.

EPSS за 120 дней

Ежедневная оценка FIRST EPSS; записываются только изменения от 0,01 (ступенчатый график).

Ссылки на патчи и коммиты

Коммиты, PR и diff среди источников. Отправная точка для patch-diff и поиска вариантов; это исправления, не эксплойты.

Среди источников нет ссылок на коммит или PR.

Нашедшие, сообщившие и аналитики, названные в записи CNA. Нажмите имя, чтобы увидеть другие записи исследователя.

В записи CNA нет авторов.

Кандидаты в варианты

Тот же продукт, тот же класс уязвимости, в пределах 18 месяцев. Если патч не закрыл первопричину, родственная ошибка здесь.

Ночной расчёт связей ничего не нашёл.

Кандидаты в цепочки

Обход аутентификации и уязвимость, требующая привилегий, в одном продукте и близко по времени: вместе они могут дать путь без аутентификации.

—

Охват bug bounty

Известной публичной программы нет.

Источник: bounty-targets-data (публичные списки HackerOne, Bugcrowd, Intigriti, YesWeHack).

Технические детали

Условия атаки

  • Может быть вызвана пользователем с локальным доступом к системе.
  • Достаточно учётной записи с низкими привилегиями.
  • Действия пользователя не требуются.
  • Особые условия не требуются; воспроизводится стабильно.

В случае успеха

Конфиденциальность
нет
Целостность
нет
Доступность
высокое · работа сервиса может быть нарушена
Вектор атаки
Локальный
Сложность атаки
Низкая
Требуемые привилегии
Низкие
Взаимодействие с пользователем
Не требуется
Область действия
Не изменяется
Влияние на конфиденциальность
Нет
Влияние на целостность
Нет
Влияние на доступность
Высокое

Вектор 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+ уязвимостей; это было бы нечестно. Для значимых уязвимостей с реальным влиянием наша команда описывает механизм, обнаружение и устранение.

Мы используем этот продукт, нужна помощь

Журнал изменений

  1. Исправление✗ → ✓

Для отслеживаемых записей эти изменения приходят и как уведомления. →

Источники

Все записи