# CVE-2023-53281: drivers: staging: rtl8723bs: Fix locking in \_rtw\_join\_timeout\_handler()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-09-16T08:11:15.364Z
- **Modified:** 2026-06-17T06:44:43.917Z

## Who should check

- Anyone running Linux \>= ae60744d5fad840b9d056d35b4b652d95e755846, \< 209850f17717a3b5cc558578bef5631ac7045539; \>= 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc, \< 2a50e44a66d268ee5db3d177f1fdc1503dbce6e7; \>= 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc, \< dc327e87c6d9bfd9ee08e76396b3c0ba848ec554; \>= 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc, \< 4ab1bace1dd3875371b481ef4301c4671bddea22; \>= 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc, \< 215792eda008f6a1e7ed9d77fa20d582d22bb114; 1f6c99b94ca3caad346876b3e22e3ca3d25bc8ee; eca9748d9267a38d532464e3305a38629e9c35a9; \>= 5.15.47, \< 5.15.111; \>= 5.17.15, \< 5.18; \>= 5.18.4, \< 5.19
- Anyone running Linux 5.19

## 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.

## Affected and fixed versions

- Linux: \>= ae60744d5fad840b9d056d35b4b652d95e755846, \< 209850f17717a3b5cc558578bef5631ac7045539; \>= 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc, \< 2a50e44a66d268ee5db3d177f1fdc1503dbce6e7; \>= 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc, \< dc327e87c6d9bfd9ee08e76396b3c0ba848ec554; \>= 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc, \< 4ab1bace1dd3875371b481ef4301c4671bddea22; \>= 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc, \< 215792eda008f6a1e7ed9d77fa20d582d22bb114; 1f6c99b94ca3caad346876b3e22e3ca3d25bc8ee; eca9748d9267a38d532464e3305a38629e9c35a9; \>= 5.15.47, \< 5.15.111; \>= 5.17.15, \< 5.18; \>= 5.18.4, \< 5.19 (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 5.19 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53281. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53281.md
Affected: Linux >= ae60744d5fad840b9d056d35b4b652d95e755846, < 209850f17717a3b5cc558578bef5631ac7045539; >= 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc, < 2a50e44a66d268ee5db3d177f1fdc1503dbce6e7; >= 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc, < dc327e87c6d9bfd9ee08e76396b3c0ba848ec554; >= 041879b12ddb0c6c83ed9c0…
Fixed in: Linux 209850f17717a3b5cc558578bef5631ac7045539, Linux 2a50e44a66d268ee5db3d177f1fdc1503dbce6e7, Linux 4ab1bace1dd3875371b481ef4301c4671bddea22, Linux 215792eda008f6a1e7ed9d77fa20d582d22bb114, Linux 5.15.111, Linux 5.18, Linux 5.19

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53281 being exploited?

There is no confirmed exploitation: CVE-2023-53281 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53281?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53281?

Linux \>= ae60744d5fad840b9d056d35b4b652d95e755846, \< 209850f17717a3b5cc558578bef5631ac7045539; \>= 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc, \< 2a50e44a66d268ee5db3d177f1fdc1503dbce6e7; \>= 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc, \< dc327e87c6d9bfd9ee08e76396b3c0ba848ec554; \>= 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc, \< 4ab1bace1dd3875371b481ef4301c4671bddea22; \>= 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc, \< 215792eda008f6a1e7ed9d77fa20d582d22bb114; 1f6c99b94ca3caad346876b3e22e3ca3d25bc8ee; eca9748d9267a38d532464e3305a38629e9c35a9; \>= 5.15.47, \< 5.15.111; \>= 5.17.15, \< 5.18; \>= 5.18.4, \< 5.19; Linux 5.19.

### Is there a fix for CVE-2023-53281?

Yes. Fixed in Linux 209850f17717a3b5cc558578bef5631ac7045539, Linux 2a50e44a66d268ee5db3d177f1fdc1503dbce6e7, Linux 4ab1bace1dd3875371b481ef4301c4671bddea22, Linux 215792eda008f6a1e7ed9d77fa20d582d22bb114, Linux 5.15.111, Linux 5.18, Linux 5.19. Upgrade Linux to 5.19 or later.

### How do I check if I'm affected by CVE-2023-53281?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/209850f17717a3b5cc558578bef5631ac7045539>
- patch: <https://git.kernel.org/stable/c/2a50e44a66d268ee5db3d177f1fdc1503dbce6e7>
- patch: <https://git.kernel.org/stable/c/dc327e87c6d9bfd9ee08e76396b3c0ba848ec554>
- patch: <https://git.kernel.org/stable/c/4ab1bace1dd3875371b481ef4301c4671bddea22>
- patch: <https://git.kernel.org/stable/c/215792eda008f6a1e7ed9d77fa20d582d22bb114>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53281>

HTML: <https://flawdb.com/CVE-2023-53281> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53281>
