{"id":"CVE-2023-53281","state":"PUBLISHED","title":"drivers: staging: rtl8723bs: Fix locking in _rtw_join_timeout_handler()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrivers: staging: rtl8723bs: Fix locking in _rtw_join_timeout_handler()\n\nCommit 041879b12ddb (\"drivers: staging: rtl8192bs: Fix deadlock in\nrtw_joinbss_event_prehandle()\") besides fixing the deadlock also\nmodified _rtw_join_timeout_handler() to use spin_[un]lock_irq()\ninstead of spin_[un]lock_bh().\n\n_rtw_join_timeout_handler() calls rtw_do_join() which takes\npmlmepriv->scanned_queue.lock using spin_[un]lock_bh(). This\nspin_unlock_bh() call re-enables softirqs which triggers an oops in\nkernel/softirq.c: __local_bh_enable_ip() when it calls\nlockdep_assert_irqs_enabled():\n\n[  244.506087] WARNING: CPU: 2 PID: 0 at kernel/softirq.c:376 __local_bh_enable_ip+0xa6/0x100\n...\n[  244.509022] Call Trace:\n[  244.509048]  <IRQ>\n[  244.509100]  _rtw_join_timeout_handler+0x134/0x170 [r8723bs]\n[  244.509468]  ? __pfx__rtw_join_timeout_handler+0x10/0x10 [r8723bs]\n[  244.509772]  ? __pfx__rtw_join_timeout_handler+0x10/0x10 [r8723bs]\n[  244.510076]  call_timer_fn+0x95/0x2a0\n[  244.510200]  __run_timers.part.0+0x1da/0x2d0\n\nThis oops is causd by the switch to spin_[un]lock_irq() which disables\nthe IRQs for the entire duration of _rtw_join_timeout_handler().\n\nDisabling the IRQs is not necessary since all code taking this lock\nruns from either user contexts or from softirqs, switch back to\nspin_[un]lock_bh() to fix this.","publishedAt":"2025-09-16T08:11:15.364Z","updatedAt":"2026-05-23T15:28:26.786Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ae60744d5fad840b9d056d35b4b652d95e755846","status":"affected","lessThan":"209850f17717a3b5cc558578bef5631ac7045539","versionType":"git"},{"version":"041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc","status":"affected","lessThan":"2a50e44a66d268ee5db3d177f1fdc1503dbce6e7","versionType":"git"},{"version":"041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc","status":"affected","lessThan":"dc327e87c6d9bfd9ee08e76396b3c0ba848ec554","versionType":"git"},{"version":"041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc","status":"affected","lessThan":"4ab1bace1dd3875371b481ef4301c4671bddea22","versionType":"git"},{"version":"041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc","status":"affected","lessThan":"215792eda008f6a1e7ed9d77fa20d582d22bb114","versionType":"git"},{"version":"1f6c99b94ca3caad346876b3e22e3ca3d25bc8ee","status":"affected","versionType":"git"},{"version":"eca9748d9267a38d532464e3305a38629e9c35a9","status":"affected","versionType":"git"},{"version":"5.15.47","status":"affected","lessThan":"5.15.111","versionType":"semver"},{"version":"5.17.15","status":"affected","lessThan":"5.18","versionType":"semver"},{"version":"5.18.4","status":"affected","lessThan":"5.19","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/rtl8723bs/core/rtw_mlme.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"5.15.111","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.28","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.15","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3.2","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/rtl8723bs/core/rtw_mlme.c"]}],"references":["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"],"weaknesses":["CWE-667"],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53281.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53281","state":"PUBLISHED","datePublished":"2025-09-16T08:11:15.364Z","dateUpdated":"2026-05-23T15:28:26.786Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-09-16T08:09:37.991Z"},"containers":{"cna":{"title":"drivers: staging: rtl8723bs: Fix locking in _rtw_join_timeout_handler()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrivers: staging: rtl8723bs: Fix locking in _rtw_join_timeout_handler()\n\nCommit 041879b12ddb (\"drivers: staging: rtl8192bs: Fix deadlock in\nrtw_joinbss_event_prehandle()\") besides fixing the deadlock also\nmodified _rtw_join_timeout_handler() to use spin_[un]lock_irq()\ninstead of spin_[un]lock_bh().\n\n_rtw_join_timeout_handler() calls rtw_do_join() which takes\npmlmepriv->scanned_queue.lock using spin_[un]lock_bh(). This\nspin_unlock_bh() call re-enables softirqs which triggers an oops in\nkernel/softirq.c: __local_bh_enable_ip() when it calls\nlockdep_assert_irqs_enabled():\n\n[  244.506087] WARNING: CPU: 2 PID: 0 at kernel/softirq.c:376 __local_bh_enable_ip+0xa6/0x100\n...\n[  244.509022] Call Trace:\n[  244.509048]  <IRQ>\n[  244.509100]  _rtw_join_timeout_handler+0x134/0x170 [r8723bs]\n[  244.509468]  ? __pfx__rtw_join_timeout_handler+0x10/0x10 [r8723bs]\n[  244.509772]  ? __pfx__rtw_join_timeout_handler+0x10/0x10 [r8723bs]\n[  244.510076]  call_timer_fn+0x95/0x2a0\n[  244.510200]  __run_timers.part.0+0x1da/0x2d0\n\nThis oops is causd by the switch to spin_[un]lock_irq() which disables\nthe IRQs for the entire duration of _rtw_join_timeout_handler().\n\nDisabling the IRQs is not necessary since all code taking this lock\nruns from either user contexts or from softirqs, switch back to\nspin_[un]lock_bh() to fix this."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ae60744d5fad840b9d056d35b4b652d95e755846","status":"affected","lessThan":"209850f17717a3b5cc558578bef5631ac7045539","versionType":"git"},{"version":"041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc","status":"affected","lessThan":"2a50e44a66d268ee5db3d177f1fdc1503dbce6e7","versionType":"git"},{"version":"041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc","status":"affected","lessThan":"dc327e87c6d9bfd9ee08e76396b3c0ba848ec554","versionType":"git"},{"version":"041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc","status":"affected","lessThan":"4ab1bace1dd3875371b481ef4301c4671bddea22","versionType":"git"},{"version":"041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc","status":"affected","lessThan":"215792eda008f6a1e7ed9d77fa20d582d22bb114","versionType":"git"},{"version":"1f6c99b94ca3caad346876b3e22e3ca3d25bc8ee","status":"affected","versionType":"git"},{"version":"eca9748d9267a38d532464e3305a38629e9c35a9","status":"affected","versionType":"git"},{"version":"5.15.47","status":"affected","lessThan":"5.15.111","versionType":"semver"},{"version":"5.17.15","status":"affected","lessThan":"5.18","versionType":"semver"},{"version":"5.18.4","status":"affected","lessThan":"5.19","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/rtl8723bs/core/rtw_mlme.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"5.15.111","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.28","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.15","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3.2","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/rtl8723bs/core/rtw_mlme.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/209850f17717a3b5cc558578bef5631ac7045539"},{"url":"https://git.kernel.org/stable/c/2a50e44a66d268ee5db3d177f1fdc1503dbce6e7"},{"url":"https://git.kernel.org/stable/c/dc327e87c6d9bfd9ee08e76396b3c0ba848ec554"},{"url":"https://git.kernel.org/stable/c/4ab1bace1dd3875371b481ef4301c4671bddea22"},{"url":"https://git.kernel.org/stable/c/215792eda008f6a1e7ed9d77fa20d582d22bb114"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-23T15:28:26.786Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.47","versionEndExcluding":"5.15.111"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.1.28"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.2.15"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17.15"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18.4"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2023-53281","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-01-14T18:08:32.150968Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-667","lang":"en","type":"CWE","description":"CWE-667 Improper Locking"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-14T18:12:54.826Z"}}]}}}