net/sched: flower: Fix chain template offload
In the Linux kernel, the following vulnerability has been resolved: net/sched: flower: Fix chain template offload When a qdisc is deleted from a net device the stack instructs the underlying driver to remove its flow offload callback from the associated filter block using the 'FLOW_BLOCK_UNBIND' command. The stack then continues to replay the removal of the filters in the block for this driver by iterating over the chains in the block and invoking the 'reoffload' operation of the classifier being used. In turn, the classifier in its 'reoffload' operation prepares and emits a 'FLOW_CLS_DESTROY' command for each filter. However, the stack does not do the same for chain templates and the underlying driver never receives a 'FLOW_CLS_TMPLT_DESTROY' command when a qdisc is deleted. This results in a memory leak [1] which can be reproduced using [2]. Fix by introducing a 'tmplt_reoffload' operation and have the stack invoke it with the appropriate arguments as part of the replay. Implement the operation in the sole classifier that supports chain templates (flower) by emitting the 'FLOW_CLS_TMPLT_{CREATE,DESTROY}' command based on whether a flow offload callback is being bound to a filter block or being unbound from one. As far as I can tell, the issue happens since cited commit which reordered tcf_block_offload_unbind() before tcf_block_flush_all_chains() in __tcf_block_put(). The order cannot be reversed as the filter block is expected to be freed after flushing all the chains. [1] unreferenced object 0xffff888107e28800 (size 2048): comm "tc", pid 1079, jiffies 4294958525 (age 3074.287s) hex dump (first 32 bytes): b1 a6 7c 11 81 88 ff ff e0 5b b3 10 81 88 ff ff ..|......[...... 01 00 00 00 00 00 00 00 e0 aa b0 84 ff ff ff ff ................ backtrace: [<ffffffff81c06a68>] __kmem_cache_alloc_node+0x1e8/0x320 [<ffffffff81ab374e>] __kmalloc+0x4e/0x90 [<ffffffff832aec6d>] mlxsw_sp_acl_ruleset_get+0x34d/0x7a0 [<ffffffff832bc195>] mlxsw_sp_flower_tmplt_create+0x145/0x180 [<ffffffff832b2e1a>] mlxsw_sp_flow_block_cb+0x1ea/0x280 [<ffffffff83a10613>] tc_setup_cb_call+0x183/0x340 [<ffffffff83a9f85a>] fl_tmplt_create+0x3da/0x4c0 [<ffffffff83a22435>] tc_ctl_chain+0xa15/0x1170 [<ffffffff838a863c>] rtnetlink_rcv_msg+0x3cc/0xed0 [<ffffffff83ac87f0>] netlink_rcv_skb+0x170/0x440 [<ffffffff83ac6270>] netlink_unicast+0x540/0x820 [<ffffffff83ac6e28>] netlink_sendmsg+0x8d8/0xda0 [<ffffffff83793def>] ____sys_sendmsg+0x30f/0xa80 [<ffffffff8379d29a>] ___sys_sendmsg+0x13a/0x1e0 [<ffffffff8379d50c>] __sys_sendmsg+0x11c/0x1f0 [<ffffffff843b9ce0>] do_syscall_64+0x40/0xe0 unreferenced object 0xffff88816d2c0400 (size 1024): comm "tc", pid 1079, jiffies 4294958525 (age 3074.287s) hex dump (first 32 bytes): 40 00 00 00 00 00 00 00 57 f6 38 be 00 00 00 00 @.......W.8..... 10 04 2c 6d 81 88 ff ff 10 04 2c 6d 81 88 ff ff ..,m......,m.... backtrace: [<ffffffff81c06a68>] __kmem_cache_alloc_node+0x1e8/0x320 [<ffffffff81ab36c1>] __kmalloc_node+0x51/0x90 [<ffffffff81a8ed96>] kvmalloc_node+0xa6/0x1f0 [<ffffffff82827d03>] bucket_table_alloc.isra.0+0x83/0x460 [<ffffffff82828d2b>] rhashtable_init+0x43b/0x7c0 [<ffffffff832aed48>] mlxsw_sp_acl_ruleset_get+0x428/0x7a0 [<ffffffff832bc195>] mlxsw_sp_flower_tmplt_create+0x145/0x180 [<ffffffff832b2e1a>] mlxsw_sp_flow_block_cb+0x1ea/0x280 [<ffffffff83a10613>] tc_setup_cb_call+0x183/0x340 [<ffffffff83a9f85a>] fl_tmplt_create+0x3da/0x4c0 [<ffffffff83a22435>] tc_ctl_chain+0xa15/0x1170 [<ffffffff838a863c>] rtnetlink_rcv_msg+0x3cc/0xed0 [<ffffffff83ac87f0>] netlink_rcv_skb+0x170/0x440 [<ffffffff83ac6270>] netlink_unicast+0x540/0x820 [<ffffffff83ac6e28>] netlink_sendmsg+0x8d8/0xda0 [<ffffffff83793def>] ____sys_sendmsg+0x30f/0xa80 [2] # tc qdisc add dev swp1 clsact # tc chain add dev swp1 ingress proto ip chain 1 flower dst_ip 0.0.0.0/32 # tc qdisc del dev ---truncated---
- Yayın
- 2 Nis 2024
- Güncelleme
- 17 Haz 2026
- EPSS
- %0,2 · 14. yüzdelik
- CWE
- CWE-787
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
28
İzleyin
Şimdilik düşük öncelik.
- CVSS
- 28 / 40 · 7.1 / 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.
Noroxi analizi
Bu kayıt için henüz Noroxi analizi yok
Veritabanındaki yüz binlerce 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 isteyinEtkilenen 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ı · 6.6.15 öncesi
- linux linux kernel6.7 ve sonrası · 6.7.3 öncesi
- linux linux kernel6.8
Ü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
- bbf73830cd48cff1599811d4f69c7cfd49c7b869 ve sonrası · 9ed46144cff3598a5cf79955630e795ff9af5b97 öncesietkilenir · git
- bbf73830cd48cff1599811d4f69c7cfd49c7b869 ve sonrası · c04709b2cc99ae31c346f79f0211752d7b74df01 öncesietkilenir · git
- bbf73830cd48cff1599811d4f69c7cfd49c7b869 ve sonrası · 32f2a0afa95fae0d1ceec2ff06e0e816939964b8 öncesietkilenir · git
- 5.1 öncesietkilenmez · semver
- 6.6.15 ve sonrası · 6.6.* dahil öncesietkilenmez · semver
- 6.7.3 ve sonrası · 6.7.* dahil öncesietkilenmez · semver
- 6.8 ve sonrasıetkilenmez · original_commit_for_fix
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 |
|---|---|---|---|
| AlmaLinux:8 | bpftool | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-abi-stablelists | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-core | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-cross-headers | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-debug | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-debug-core | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-debug-devel | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-debug-modules | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-debug-modules-extra | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-devel | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-doc | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-headers | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-modules | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-modules-extra | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-tools | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-tools-libs | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-tools-libs-devel | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-zfcpdump | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-zfcpdump-core | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-zfcpdump-devel | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-zfcpdump-modules | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-zfcpdump-modules-extra | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | perf | 4.18.0-553.16.1.el8_10 öncesi | 4.18.0-553.16.1.el8_10 |
+96
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 | 32f2a0afa95fae0d1ceec2ff06e0e816939964b8 | Üretici (CNA) |
| Linux Linux | 9ed46144cff3598a5cf79955630e795ff9af5b97 | Üretici (CNA) |
| Linux Linux | c04709b2cc99ae31c346f79f0211752d7b74df01 | Üretici (CNA) |
| almalinux:bpftool | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-abi-stablelists | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-core | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-cross-headers | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-debug | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-debug-core | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-debug-devel | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-debug-modules | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-debug-modules-extra | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-devel | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-doc | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| debian:linux | 6.6.15-1 · Debian:13 | Paket deposu (OSV) |
| opensuse:kernel-azure | 6.4.0-150600.8.11.1 · openSUSE:Leap 15.6 | Paket deposu (OSV) |
| opensuse:kernel-rt | 6.4.0-150600.10.8.3 · openSUSE:Leap 15.6 | Paket deposu (OSV) |
| opensuse:kernel-source-azure | 6.4.0-150600.8.11.1 · openSUSE:Leap 15.6 | Paket deposu (OSV) |
| opensuse:kernel-syms-azure | 6.4.0-150600.8.11.1 · openSUSE:Leap 15.6 | Paket deposu (OSV) |
| red hat:bpftool-debuginfo | 0:7.3.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-debug-debuginfo | 0:5.14.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-debug-devel | 0:5.14.0-427.74.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.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-debuginfo | 0:5.14.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-devel | 0:5.14.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-devel-matched | 0:5.14.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| red hat:kernel-debug-debuginfo | 0:5.14.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| red hat:kernel-debug-devel | 0:5.14.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| red hat:kernel-debug-devel-matched | 0:5.14.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
+10
İ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).
Ulusal bildirim (Siber Güvenlik Başkanlığı / USOM)
Bu kaydı anan resmi güvenlik bildirimleri; çözüm önerisi kurumun sayfasında.
- TR-24-0260 · 3 Nis 2024(Linux Kernel Güncellemesi)
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
- yüksek · veriler okunabilir
- 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
- Yüksek
- Bütünlük etkisi
- Yok
- Erişilebilirlik etkisi
- Yüksek
Zayıflık sınıfı (CWE)
CWE-787 · Out-of-bounds WriteCVSS vektörü
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/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.
Değ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/32f2a0afa95fae0d1ceec2ff06e0e816939964b8
- git.kernel.org/stable/c/9ed46144cff3598a5cf79955630e795ff9af5b97
- git.kernel.org/stable/c/c04709b2cc99ae31c346f79f0211752d7b74df01
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.