CVSS 7.8 · High EPSS 0,10%
Kerentanan Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') pada linux kernel. Skor CVSS 3.1 7.8 (High) menurut CNA.
In the Linux kernel, the following vulnerability has been resolved: quota: Fix race of dquot_scan_active() with quota deactivation dquot_scan_active() can race with quota deactivation in quota_release_workfn() like: CPU0 (quota_release_workfn) CPU1 (dquot_scan_active) ============================== ============================== spin_lock(&dq_list_lock); list_replace_init( &releasing_dquots, &rls_head); /* dquot X on rls_head, dq_count == 0, DQ_ACTIVE_B still set */ spin_unlock(&dq_list_lock); synchronize_srcu(&dquot_srcu); spin_lock(&dq_list_lock); list_for_each_entry(dquot, &inuse_list, dq_inuse) { /* finds dquot X */ dquot_active(X) -> true atomic_inc(&X->dq_count); } spin_unlock(&dq_list_lock); spin_lock(&dq_list_lock); dquot = list_first_entry(&rls_head); WARN_ON_ONCE(atomic_read(&dquot->dq_count)); The problem is not only a cosmetic one as under memory pressure the caller of dquot_scan_active() can end up working on freed dquot. Fix the problem by making sure the dquot is removed from releasing list when we acquire a reference to it.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
· uraikan di kalkulator | Vendor | Produk | Versi terdampak |
|---|---|---|
| linux | linux kernel | Versi 4.19.297 hingga sebelum 4.20 |
| linux | linux kernel | Versi 5.4.259 hingga sebelum 5.5 |
| linux | linux kernel | Versi 5.10.199 hingga sebelum 5.10.258 |
| linux | linux kernel | Versi 5.15.136 hingga sebelum 5.15.209 |
| linux | linux kernel | Versi 6.1.59 hingga sebelum 6.1.175 |
| linux | linux kernel | Versi 6.5.8 hingga sebelum 6.6 |
| linux | linux kernel | Versi 6.6.1 hingga sebelum 6.6.141 |
| linux | linux kernel | Versi 6.7 hingga sebelum 6.12.91 |
| linux | linux kernel | Versi 6.13 hingga sebelum 6.18.33 |
| linux | linux kernel | Versi 6.19 hingga sebelum 7.0.10 |
| linux | linux kernel | Versi 6.6 |
| linux | linux kernel | Versi 6.6 rc6 |
| linux | linux kernel | Versi 6.6 rc7 |