bpf: Fix a sdiv overflow issue
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix a sdiv overflow issue Zac Ecob reported a problem where a bpf program may cause kernel crash due to the following error: Oops: divide error: 0000 [#1] PREEMPT SMP KASAN PTI The failure is due to the below signed divide: LLONG_MIN/-1 where LLONG_MIN equals to -9,223,372,036,854,775,808. LLONG_MIN/-1 is supposed to give a positive number 9,223,372,036,854,775,808, but it is impossible since for 64-bit system, the maximum positive number is 9,223,372,036,854,775,807. On x86_64, LLONG_MIN/-1 will cause a kernel exception. On arm64, the result for LLONG_MIN/-1 is LLONG_MIN. Further investigation found all the following sdiv/smod cases may trigger an exception when bpf program is running on x86_64 platform: - LLONG_MIN/-1 for 64bit operation - INT_MIN/-1 for 32bit operation - LLONG_MIN%-1 for 64bit operation - INT_MIN%-1 for 32bit operation where -1 can be an immediate or in a register. On arm64, there are no exceptions: - LLONG_MIN/-1 = LLONG_MIN - INT_MIN/-1 = INT_MIN - LLONG_MIN%-1 = 0 - INT_MIN%-1 = 0 where -1 can be an immediate or in a register. Insn patching is needed to handle the above cases and the patched codes produced results aligned with above arm64 result. The below are pseudo codes to handle sdiv/smod exceptions including both divisor -1 and divisor 0 and the divisor is stored in a register. sdiv: tmp = rX tmp += 1 /* [-1, 0] -> [0, 1] if tmp >(unsigned) 1 goto L2 if tmp == 0 goto L1 rY = 0 L1: rY = -rY; goto L3 L2: rY /= rX L3: smod: tmp = rX tmp += 1 /* [-1, 0] -> [0, 1] if tmp >(unsigned) 1 goto L1 if tmp == 1 (is64 ? goto L2 : goto L3) rY = 0; goto L2 L1: rY %= rX L2: goto L4 // only when !is64 L3: wY = wY // only when !is64 L4: [1] https://lore.kernel.org/bpf/tPJLTEh7S_DxFEqAI2Ji5MBSoZVg7_G-Py2iaZpAaWtM961fFTWtsnlzwvTbzBzaUzwQAoNATXKUlt0LZOFgnDcIyKCswAnAGdUF3LBrhGQ=@protonmail.com/
- Yayın
- 21 Eki 2024
- Güncelleme
- 17 Haz 2026
- EPSS
- %0,2 · 14. yüzdelik
- CWE
- CWE-190
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.
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 kernel6.10.14 öncesi
- linux linux kernel6.11 ve sonrası · 6.11.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
- 6.6etkilenir
- ec0e2da95f72d4a46050a4d994e4fe471474fd80 ve sonrası · 4902a6a0dc593c82055fc8c9ada371bafe26c9cc öncesietkilenir · git
- ec0e2da95f72d4a46050a4d994e4fe471474fd80 ve sonrası · d22e45a369afc7c28f11acfa5b5e8e478227ca5d öncesietkilenir · git
- ec0e2da95f72d4a46050a4d994e4fe471474fd80 ve sonrası · 7dd34d7b7dcf9309fc6224caf4dd5b35bedddcb7 öncesietkilenir · git
- 6.6 öncesietkilenmez · semver
- 6.10.14 ve sonrası · 6.10.* dahil öncesietkilenmez · semver
- 6.11.3 ve sonrası · 6.11.* dahil öncesietkilenmez · semver
- 6.12 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:9 | bpftool | 7.4.0-503.19.1.el9_5 öncesi | 7.4.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-64k | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-64k-core | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-64k-debug | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-64k-debug-core | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-64k-debug-devel | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-64k-debug-devel-matched | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-64k-debug-modules | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-64k-debug-modules-core | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-64k-debug-modules-extra | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-64k-devel | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-64k-devel-matched | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-64k-modules | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-64k-modules-core | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-64k-modules-extra | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-abi-stablelists | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-core | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-cross-headers | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-debug | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-debug-core | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-debug-devel | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-debug-devel-matched | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
| AlmaLinux:9 | kernel-debug-modules | 5.14.0-503.19.1.el9_5 öncesi | 5.14.0-503.19.1.el9_5 |
+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 | 4902a6a0dc593c82055fc8c9ada371bafe26c9cc | Üretici (CNA) |
| Linux Linux | 7dd34d7b7dcf9309fc6224caf4dd5b35bedddcb7 | Üretici (CNA) |
| Linux Linux | d22e45a369afc7c28f11acfa5b5e8e478227ca5d | Üretici (CNA) |
| almalinux:bpftool | 7.4.0-503.19.1.el9_5 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel | 5.14.0-503.19.1.el9_5 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k | 5.14.0-503.19.1.el9_5 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-core | 5.14.0-503.19.1.el9_5 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug | 5.14.0-503.19.1.el9_5 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-core | 5.14.0-503.19.1.el9_5 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-devel | 5.14.0-503.19.1.el9_5 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-devel-matched | 5.14.0-503.19.1.el9_5 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-modules | 5.14.0-503.19.1.el9_5 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-modules-core | 5.14.0-503.19.1.el9_5 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-modules-extra | 5.14.0-503.19.1.el9_5 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-devel | 5.14.0-503.19.1.el9_5 · AlmaLinux:9 | Paket deposu (OSV) |
| debian:linux | 6.11.4-1 · Debian:13 | Paket deposu (OSV) |
| red hat:bpftool-debuginfo | 0:7.3.0-427.48.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-debug-debuginfo | 0:5.14.0-427.48.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-debug-devel | 0:5.14.0-427.48.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.48.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-debuginfo | 0:5.14.0-427.48.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-devel | 0:5.14.0-427.48.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-devel-matched | 0:5.14.0-427.48.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| red hat:kernel-debug-debuginfo | 0:5.14.0-427.48.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| red hat:kernel-debug-devel | 0:5.14.0-427.48.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| red hat:kernel-debug-devel-matched | 0:5.14.0-427.48.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| red hat:kernel-debuginfo | 0:5.14.0-427.48.1.el9_4 · Red Hat:rhel_eus:9.4::appstream | Paket deposu (OSV) |
| red hat:kernel-debuginfo-common-aarch64 | 0:5.14.0-427.48.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.
- CVE-2022-490300 gün araylalibbpf: Handle size overflow for ringbuf mmap31İzleyin
- CVE-2024-4213683 gün araylacdrom: rearrange last_media_change check to avoid unintentional overflow31İzleyin
- CVE-2022-4883797 gün araylausb: gadget: rndis: prevent integer overflow in rndis_set_response()31İzleyin
- CVE-2024-40994101 gün araylaptp: fix integer overflow in max_vclocks_store31İzleyin
- CVE-2024-41000101 gün araylablock/ioctl: prefer different overflow check31İzleyin
- CVE-2021-47098231 gün araylahwmon: (lm90) Prevent integer overflow/underflow in hysteresis calculations31İzleyin
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-190 · Integer Overflow or WraparoundCVSS 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ı.
Saldırı desenleri (CAPEC)
ATT&CK teknikleri
—
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/4902a6a0dc593c82055fc8c9ada371bafe26c9cc
- git.kernel.org/stable/c/7dd34d7b7dcf9309fc6224caf4dd5b35bedddcb7
- git.kernel.org/stable/c/d22e45a369afc7c28f11acfa5b5e8e478227ca5d
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.