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
- Yayın
- 20 Ağu 2024
- Güncelleme
- 5 Ağu 2026
- EPSS
- %0,2 · 12. yüzdelik
- CWE
- CWE-401
Takip etmek için giriş yap · Takip ettiğin kayıt KEV’e girer, istismarı çıkar ya da güncellenirse bildirim alırsın.
Rapor araçları
Aksiyon skoru
22
İzleyin
Şimdilik düşük öncelik.
- CVSS
- 22 / 40 · 5.5 / 10
- CISA KEV
- 0 / 30 · Listede değil
- EPSS
- 0 / 30 · %0,2
CISA SSVC kararı
- Sömürü
- yok
- Otomatikleştirilebilir
- hayır
- Teknik etki
- kısmi
Vulnrichment: CISA'nın karar ağacı girdileri.
CNA ile NVD puanı
- NVD
- 5,5
- CNA · Linux
- 7,8
- 2,3 puan fark
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Kaydı açan otoritenin puanı ile NVD’nin bağımsız puanı. İki puan arasındaki fark ciddiyetin tartışmalı olduğunu gösterir.
Etkilenen sistemler
| Üretici | Ürün | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
Etkilenen sürümler
NVD sürüm aralıkları (katalogdaki ürünler için). Stack’ine sürümle eklersen eşleşme bunlarla yapılır.
- linux linux kernel5.1 ve sonrası · 5.4.282 öncesi
- linux linux kernel5.5 ve sonrası · 5.10.224 öncesi
- linux linux kernel5.11 ve sonrası · 5.15.165 öncesi
- linux linux kernel5.16 ve sonrası · 6.1.103 öncesi
- linux linux kernel6.2 ve sonrası · 6.6.44 öncesi
- linux linux kernel6.7 ve sonrası · 6.10.3 öncesi
Üreticinin bildirdiği sürümler
Kaydı açan otorite (Linux) tarafından bildirilen etkilenen sürüm aralıkları. NVD'nin CPE analizinden bağımsızdır ve genellikle ondan önce gelir.
Linux Linux
- 5.1etkilenir
- 9069a3817d82b01b3a55da382c774e3575946130 ve sonrası · 4dc09f6f260db3c4565a4ec52ba369393598f2fb öncesietkilenir · git
- 9069a3817d82b01b3a55da382c774e3575946130 ve sonrası · 36a9996e020dd5aa325e0ecc55eb2328288ea6bb öncesietkilenir · git
- 9069a3817d82b01b3a55da382c774e3575946130 ve sonrası · 9a5261a984bba4f583d966c550fa72c33ff3714e öncesietkilenir · git
- 9069a3817d82b01b3a55da382c774e3575946130 ve sonrası · 25c6fd9648ad05da493a5d30881896a78a08b624 öncesietkilenir · git
- 9069a3817d82b01b3a55da382c774e3575946130 ve sonrası · 0e59c2d22853266704e127915653598f7f104037 öncesietkilenir · git
- 9069a3817d82b01b3a55da382c774e3575946130 ve sonrası · fb5d4fc578e655d113f09565f6f047e15f7ab578 öncesietkilenir · git
- 9069a3817d82b01b3a55da382c774e3575946130 ve sonrası · 97d833ceb27dc19f8777d63f90be4a27b5daeedf öncesietkilenir · git
- 5.1 öncesietkilenmez · semver
- 5.4.282 ve sonrası · 5.4.* dahil öncesietkilenmez · semver
Paket düzeyi etkilenme
OSV ve GitHub Advisory verisi: ekosistem, paket ve aralık. SBOM eşleşmesi bu tabloyu kullanır.
| Ekosistem | Paket | Etkilenen aralık | Düzeltme |
|---|---|---|---|
| Debian:12 | linux | 6.1.106-1 öncesi | 6.1.106-1 |
| Debian:13 | linux | 6.10.3-1 öncesi | 6.10.3-1 |
| Red Hat:rhel_eus:9.4::appstream | bpftool-debuginfo | 0:7.3.0-427.76.1.el9_4 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 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 öncesi | 0:5.14.0-427.76.1.el9_4 |
+56
Aynı üründe
linux: tüm kayıtlarAynı birincil ürünün en yüksek skorlu diğer kayıtları.
- 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 KEV89Hemen
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Hemen
- 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 haKEV83Hemen
- 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 creKEV77Bu hafta
- 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 addKEV77Bu hafta
- 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 loKEV77Bu hafta
Düzeltme
Hangi sürüme geçmeli
Üretici, paket deposu ve Microsoft kayıtlarından derlenen düzeltme sürümleri. Yükseltmeden önce üreticinin notunu doğrulayın.
| Ürün / paket | Düzeltilmiş sürüm | Kaynak |
|---|---|---|
| Linux Linux | 0e59c2d22853266704e127915653598f7f104037 | Üretici (CNA) |
| Linux Linux | 25c6fd9648ad05da493a5d30881896a78a08b624 | Üretici (CNA) |
| Linux Linux | 36a9996e020dd5aa325e0ecc55eb2328288ea6bb | Üretici (CNA) |
| Linux Linux | 4dc09f6f260db3c4565a4ec52ba369393598f2fb | Üretici (CNA) |
| Linux Linux | 97d833ceb27dc19f8777d63f90be4a27b5daeedf | Üretici (CNA) |
| Linux Linux | 9a5261a984bba4f583d966c550fa72c33ff3714e | Üretici (CNA) |
| Linux Linux | fb5d4fc578e655d113f09565f6f047e15f7ab578 | Üretici (CNA) |
| Debian:linux | 6.1.106-1 · Debian:12 | Paket deposu (OSV) |
| Red Hat:bpftool-debuginfo | 0:7.3.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| Red Hat:kernel-64k-debug-debuginfo | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| Red Hat:kernel-64k-debug-devel | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| Red Hat:kernel-64k-debug-devel-matched | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| Red Hat:kernel-64k-debuginfo | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| Red Hat:kernel-64k-devel | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| Red Hat:kernel-64k-devel-matched | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| Red Hat:kernel-debug-debuginfo | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| Red Hat:kernel-debug-devel | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| Red Hat:kernel-debug-devel-matched | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| Red Hat:kernel-debuginfo | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| Red Hat:kernel-debuginfo-common-aarch64 | 0:5.14.0-427.76.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
İstismar durumu
Bilinen kamuya açık istismar yok
Şu an kamuya açık bir istismar görülmedi. Bu, güvende olduğunuz anlamına gelmez; yalnızca eşiğin biraz daha yüksek olduğunu gösterir.
Araştırma bağlamı
Pentester ve araştırmacı için: saldırı profili, puan anlaşmazlığı, zaman çizelgesi, yama commit’leri, kredi, varyant ve zincir adayları, bug bounty kapsamı. Hepsi mevcut veriden türetilir; istismar kodu içermez.
Zaman çizelgesi
Yayından bugüne: kavram kanıtı, Metasploit modülü, CISA KEV ve düzeltme kaydı. Tarihler kaynakların bildirdiği tarihlerdir.
Yayın dışında tarihli olay yok.
FIRST EPSS günlük puanı; yalnızca 0,01 ve üstü değişimler kaydedilir (adım grafiği).
Yama ve commit bağlantıları
Referanslardaki commit, PR ve diff adresleri. Patch-diff ve varyant avı için başlangıç noktası; istismar değil, düzeltmedir.
Referanslarda commit ya da PR bağlantısı yok.
Kredi
Tüm araştırmacılarCNA kaydında adı geçen bulan, bildiren ve analistler. Ada tıkla, aynı araştırmacının diğer kayıtlarını gör.
CNA kaydında kredi yok.
Varyant adayları
Aynı üründe aynı zafiyet sınıfı, 18 ay içinde. Yama kök nedeni kapatmadıysa kardeş hata burada olur.
Gece hesaplanan ilişki yok.
Zincir adayları
Aynı üründe kimlik doğrulama atlatma ile yetki isteyen bir açık kısa aralıkla yayımlanmış: birlikte kimlik doğrulamasız bir yola dönüşebilir.
—
Bug bounty kapsamı
Bilinen herkese açık program yok.
Kaynak: bounty-targets-data (HackerOne, Bugcrowd, Intigriti, YesWeHack herkese açık listeleri).
Teknik detay
Saldırı koşulları
- Sisteme yerel erişimi olan biri tetikleyebilir.
- Düşük yetkili bir hesap yeterli.
- Kullanıcının bir şey yapması gerekmez.
- Özel bir koşul gerekmez; tekrarlanabilir.
Başarılı olursa
- Gizlilik
- yok
- Bütünlük
- yok
- Erişilebilirlik
- yüksek · hizmet durdurulabilir
- Saldırı vektörü
- Yerel
- Karmaşıklık
- Düşük
- Gereken yetki
- Düşük
- Kullanıcı etkileşimi
- Gerekmez
- Kapsam
- Değişmez
- Gizlilik etkisi
- Yok
- Bütünlük etkisi
- Yok
- Erişilebilirlik etkisi
- Yüksek
Zayıflık sınıfı (CWE)
CWE-401 · Missing Release of Memory after Effective LifetimeCVSS vektörü
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Saldırı bağlamı
Bu zafiyet sınıfının (CWE) MITRE CAPEC saldırı desenleri ve ATT&CK teknikleri. Tespit kuralı ve tehdit avı için başlangıç noktası.
Bu CWE için MITRE'de CAPEC/ATT&CK eşlemesi yok.
Noroxi analizi
Bu kayıt için henüz Noroxi analizi yok
385 binden fazla zafiyetin tamamına elle analiz yazmıyoruz; bu dürüst olmazdı. Öne çıkan ve sahada etkisi olan zafiyetler için mekanizma, tespit ve kapatma adımlarını ekibimiz yazıyor.
Bu ürünü kullanıyoruz, yardım isteyinDeğişiklik günlüğü
- Düzeltme✗ → ✓
Takip ettiğiniz kayıtlarda bu değişiklikler bildirim olarak da gelir. →
Referanslar
- 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
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.