nfsd: fix RELEASE_LOCKOWNER
In the Linux kernel, the following vulnerability has been resolved: nfsd: fix RELEASE_LOCKOWNER The test on so_count in nfsd4_release_lockowner() is nonsense and harmful. Revert to using check_for_locks(), changing that to not sleep. First: harmful. As is documented in the kdoc comment for nfsd4_release_lockowner(), the test on so_count can transiently return a false positive resulting in a return of NFS4ERR_LOCKS_HELD when in fact no locks are held. This is clearly a protocol violation and with the Linux NFS client it can cause incorrect behaviour. If RELEASE_LOCKOWNER is sent while some other thread is still processing a LOCK request which failed because, at the time that request was received, the given owner held a conflicting lock, then the nfsd thread processing that LOCK request can hold a reference (conflock) to the lock owner that causes nfsd4_release_lockowner() to return an incorrect error. The Linux NFS client ignores that NFS4ERR_LOCKS_HELD error because it never sends NFS4_RELEASE_LOCKOWNER without first releasing any locks, so it knows that the error is impossible. It assumes the lock owner was in fact released so it feels free to use the same lock owner identifier in some later locking request. When it does reuse a lock owner identifier for which a previous RELEASE failed, it will naturally use a lock_seqid of zero. However the server, which didn't release the lock owner, will expect a larger lock_seqid and so will respond with NFS4ERR_BAD_SEQID. So clearly it is harmful to allow a false positive, which testing so_count allows. The test is nonsense because ... well... it doesn't mean anything. so_count is the sum of three different counts. 1/ the set of states listed on so_stateids 2/ the set of active vfs locks owned by any of those states 3/ various transient counts such as for conflicting locks. When it is tested against '2' it is clear that one of these is the transient reference obtained by find_lockowner_str_locked(). It is not clear what the other one is expected to be. In practice, the count is often 2 because there is precisely one state on so_stateids. If there were more, this would fail. In my testing I see two circumstances when RELEASE_LOCKOWNER is called. In one case, CLOSE is called before RELEASE_LOCKOWNER. That results in all the lock states being removed, and so the lockowner being discarded (it is removed when there are no more references which usually happens when the lock state is discarded). When nfsd4_release_lockowner() finds that the lock owner doesn't exist, it returns success. The other case shows an so_count of '2' and precisely one state listed in so_stateid. It appears that the Linux client uses a separate lock owner for each file resulting in one lock state per lock owner, so this test on '2' is safe. For another client it might not be safe. So this patch changes check_for_locks() to use the (newish) find_any_file_locked() so that it doesn't take a reference on the nfs4_file and so never calls nfsd_file_put(), and so never sleeps. With this check is it safe to restore the use of check_for_locks() rather than testing so_count against the mysterious '2'.
- Yayın
- 13 Mar 2024
- Güncelleme
- 17 Haz 2026
- EPSS
- %0,2 · 8. yüzdelik
- CWE
- CWE-667
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 kernel5.19 ve sonrası · 6.1.79 öncesi
- linux linux kernel6.2 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
- fea1d0940301378206955264a01778700fc9c16f, 2ec65dc6635d1976bd1dbf2640ff7f810b2f6dd1, a2235bc65ade40982c3d09025cdd34bc539d6a69, ba747abfca27e23c42ded3912c87b70d7e16b6ab, e8020d96dd5b2dcc1f6a8ee4f87a53a373002cd5, 5.19etkilenir
- ef481b262bba4f454351eec43f024fec942c2d4c ve sonrası · 10d75984495f7fe62152c3b0dbfa3f0a6b739c9b öncesietkilenir · git
- 3097f38e91266c7132c3fdb7e778fac858c00670 ve sonrası · 99fb654d01dc3f08b5905c663ad6c89a9d83302f öncesietkilenir · git
- e2fc17fcc503cfca57b5d1dd3b646ca7eebead97 ve sonrası · c6f8b3fcc62725e4129f2c0fd550d022d4a7685a öncesietkilenir · git
- ce3c4ad7f4ce5db7b4f08a1e237d8dd94b39180b ve sonrası · e4cf8941664cae2f89f0189c29fe2ce8c6be0d03 öncesietkilenir · git
- ce3c4ad7f4ce5db7b4f08a1e237d8dd94b39180b ve sonrası · b7d2eee1f53899b53f069bba3a59a419fc3d331b öncesietkilenir · git
- ce3c4ad7f4ce5db7b4f08a1e237d8dd94b39180b ve sonrası · 8f5b860de87039b007e84a28a5eefc888154e098 öncesietkilenir · git
- ce3c4ad7f4ce5db7b4f08a1e237d8dd94b39180b ve sonrası · edcf9725150e42beeca42d085149f4c88fa97afd öncesietkilenir · git
- 4.19.246 ve sonrası · 4.19.306 öncesietkilenir · semver
- 5.10.120 ve sonrası · 5.10.220 öncesietkilenir · 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 |
|---|---|---|---|
| AlmaLinux:9 | bpftool | 7.3.0-427.35.1.el9_4 öncesi | 7.3.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-64k | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-64k-core | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-64k-debug | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-64k-debug-core | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-64k-debug-devel | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-64k-debug-devel-matched | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-64k-debug-modules | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-64k-debug-modules-core | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-64k-debug-modules-extra | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-64k-devel | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-64k-devel-matched | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-64k-modules | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-64k-modules-core | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-64k-modules-extra | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-abi-stablelists | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-core | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-cross-headers | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-debug | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-debug-core | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-debug-devel | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-debug-devel-matched | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
| AlmaLinux:9 | kernel-debug-modules | 5.14.0-427.35.1.el9_4 öncesi | 5.14.0-427.35.1.el9_4 |
+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 | 10d75984495f7fe62152c3b0dbfa3f0a6b739c9b | Üretici (CNA) |
| Linux Linux | 4.10 | Üretici (CNA) |
| Linux Linux | 4.15 | Üretici (CNA) |
| Linux Linux | 4.19.306 | Üretici (CNA) |
| Linux Linux | 5.10.220 | Üretici (CNA) |
| Linux Linux | 5.15.154 | Üretici (CNA) |
| Linux Linux | 5.18 | Üretici (CNA) |
| Linux Linux | 5.19 | Üretici (CNA) |
| Linux Linux | 5.5 | Üretici (CNA) |
| Linux Linux | 8f5b860de87039b007e84a28a5eefc888154e098 | Üretici (CNA) |
| Linux Linux | 99fb654d01dc3f08b5905c663ad6c89a9d83302f | Üretici (CNA) |
| Linux Linux | b7d2eee1f53899b53f069bba3a59a419fc3d331b | Üretici (CNA) |
| Linux Linux | c6f8b3fcc62725e4129f2c0fd550d022d4a7685a | Üretici (CNA) |
| Linux Linux | e4cf8941664cae2f89f0189c29fe2ce8c6be0d03 | Üretici (CNA) |
| Linux Linux | edcf9725150e42beeca42d085149f4c88fa97afd | Üretici (CNA) |
| almalinux:bpftool | 7.3.0-427.35.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel | 5.14.0-427.35.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k | 5.14.0-427.35.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-core | 5.14.0-427.35.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug | 5.14.0-427.35.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-core | 5.14.0-427.35.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-devel | 5.14.0-427.35.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-devel-matched | 5.14.0-427.35.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-modules | 5.14.0-427.35.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-modules-core | 5.14.0-427.35.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-modules-extra | 5.14.0-427.35.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-devel | 5.14.0-427.35.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| debian:linux | 6.1.82-1 · Debian:12 | Paket deposu (OSV) |
| red hat:bpftool-debuginfo | 0:7.3.0-427.35.1.el9_4 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-debug-debuginfo | 0:5.14.0-427.35.1.el9_4 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
+11
İ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-667 · Improper LockingCVSS 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ı.
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/10d75984495f7fe62152c3b0dbfa3f0a6b739c9b
- git.kernel.org/stable/c/8f5b860de87039b007e84a28a5eefc888154e098
- git.kernel.org/stable/c/99fb654d01dc3f08b5905c663ad6c89a9d83302f
- git.kernel.org/stable/c/b7d2eee1f53899b53f069bba3a59a419fc3d331b
- git.kernel.org/stable/c/c6f8b3fcc62725e4129f2c0fd550d022d4a7685a
- git.kernel.org/stable/c/e4cf8941664cae2f89f0189c29fe2ce8c6be0d03
- git.kernel.org/stable/c/edcf9725150e42beeca42d085149f4c88fa97afd
- cert-portal.siemens.com/productcert/html/ssa-265688.html
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.