drivers: staging: rtl8723bs: Fix locking in _rtw_join_timeout_handler() (Linux Linux)
En bref
- Source
- NVD
- EPSS
- EPSS 0.12 % · centile 2 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- Linux
- Statut NVD
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: drivers: staging: rtl8723bs: Fix locking in _rtw_join_timeout_handler() Commit 041879b12ddb ("drivers: staging: rtl8192bs: Fix deadlock in rtw_joinbss_event_prehandle()") besides fixing the deadlock also modified _rtw_join_timeout_handler() to use spin_[un]lock_irq() instead of spin_[un]lock_bh(). _rtw_join_timeout_handler() calls rtw_do_join() which takes pmlmepriv->scanned_queue.lock using spin_[un]lock_bh(). This spin_unlock_bh() call re-enables softirqs which triggers an oops in kernel/softirq.c: __local_bh_enable_ip() when it calls lockdep_assert_irqs_enabled(): [ 244.506087] WARNING: CPU: 2 PID: 0 at kernel/softirq.c:376 __local_bh_enable_ip+0xa6/0x100 ... [ 244.509022] Call Trace: [ 244.509048] <IRQ> [ 244.509100] _rtw_join_timeout_handler+0x134/0x170 [r8723bs] [ 244.509468] ? __pfx__rtw_join_timeout_handler+0x10/0x10 [r8723bs] [ 244.509772] ? __pfx__rtw_join_timeout_handler+0x10/0x10 [r8723bs] [ 244.510076] call_timer_fn+0x95/0x2a0 [ 244.510200] __run_timers.part.0+0x1da/0x2d0 This oops is causd by the switch to spin_[un]lock_irq() which disables the IRQs for the entire duration of _rtw_join_timeout_handler(). Disabling the IRQs is not necessary since all code taking this lock runs from either user contexts or from softirqs, switch back to spin_[un]lock_bh() to fix this.
Faiblesses (CWE)
- CWE-667 — Improper Locking
Références
- https://git.kernel.org/stable/c/209850f17717a3b5cc558578bef5631ac7045539
- https://git.kernel.org/stable/c/2a50e44a66d268ee5db3d177f1fdc1503dbce6e7
- https://git.kernel.org/stable/c/dc327e87c6d9bfd9ee08e76396b3c0ba848ec554
- https://git.kernel.org/stable/c/4ab1bace1dd3875371b481ef4301c4671bddea22
- https://git.kernel.org/stable/c/215792eda008f6a1e7ed9d77fa20d582d22bb114
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | CISA-ADP |
| CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | NVD · nvd@nist.gov (Primary) |
| CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | NVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) |
Références européennes
- ENISA EUVD · EUVD-2023-59908
- GCVE · GCVE-0-2023-53281
Avis du CERT-FR
- CERTFR-2025-AVI-0921 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0895 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
Configurations affectées (CPE NVD)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.15.47 < 5.15.111cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.17.15 < 5.18cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.18.4 < 6.1.28cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 6.2 < 6.2.15cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 6.3 < 6.3.2
Produits affectés
| Produit | Versions |
|---|---|
| Linux · Linux | affected ae60744d5fad840b9d056d35b4b652d95e755846 < 209850f17717a3b5cc558578bef5631ac7045539 ; affected 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc < 2a50e44a66d268ee5db3d177f1fdc1503dbce6e7 ; affected 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc < dc327e87c6d9bfd9ee08e76396b3c0ba848ec554 ; affected 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc < 4ab1bace1dd3875371b481ef4301c4671bddea22 ; affected 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc < 215792eda008f6a1e7ed9d77fa20d582d22bb114 ; affected 1f6c99b94ca3caad346876b3e22e3ca3d25bc8ee |
| Linux · Linux | affected 5.19 ; unaffected 0 < 5.19 ; unaffected 5.15.111 ≤ 5.15.* ; unaffected 6.1.28 ≤ 6.1.* ; unaffected 6.2.15 ≤ 6.2.* ; unaffected 6.3.2 ≤ 6.3.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |