# CVE-2024-58238: Bluetooth: btnxpuart: Resolve TX timeout error in power save stress test

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; 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.28% (percentile 13, 2026-11-28)
- **Published:** 2025-08-09T14:31:47.079Z
- **Modified:** 2026-10-15T22:18:06.317Z

## Who should check

- Anyone running Linux \>= 689ca16e523278470c38832a3010645a78c544d8, \< 9d5df94ce0e213d5b549633f528f96114c736190; \>= 689ca16e523278470c38832a3010645a78c544d8, \< e4db90e4eb8d5487098712ffb1048f3fa6d25e98
- Anyone running Linux 6.4

## Description

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: btnxpuart: Resolve TX timeout error in power save stress test

This fixes the tx timeout issue seen while running a stress test on
btnxpuart for couple of hours, such that the interval between two HCI
commands coincide with the power save timeout value of 2 seconds.

Test procedure using bash script:
\<load btnxpuart.ko\>
hciconfig hci0 up
//Enable Power Save feature
hcitool -i hci0 cmd 3f 23 02 00 00
while (true)
do
    hciconfig hci0 leadv
    sleep 2
    hciconfig hci0 noleadv
    sleep 2
done

Error log, after adding few more debug prints:
Bluetooth: btnxpuart\_queue\_skb(): 01 0A 20 01 00
Bluetooth: hci0: Set UART break: on, status=0
Bluetooth: hci0: btnxpuart\_tx\_wakeup() tx\_work scheduled
Bluetooth: hci0: btnxpuart\_tx\_work() dequeue: 01 0A 20 01 00
Can't set advertise mode on hci0: Connection timed out (110)
Bluetooth: hci0: command 0x200a tx timeout

When the power save mechanism turns on UART break, and btnxpuart\_tx\_work()
is scheduled simultaneously, psdata-\>ps\_state is read as PS\_STATE\_AWAKE,
which prevents the psdata-\>work from being scheduled, which is responsible
to turn OFF UART break.

This issue is fixed by adding a ps\_lock mutex around UART break on/off as
well as around ps\_state read/write.
btnxpuart\_tx\_wakeup() will now read updated ps\_state value. If ps\_state is
PS\_STATE\_SLEEP, it will first schedule psdata-\>work, and then it will
reschedule itself once UART break has been turned off and ps\_state is
PS\_STATE\_AWAKE.

Tested above script for 50,000 iterations and TX timeout error was not
observed anymore.

## Affected and fixed versions

- Linux: \>= 689ca16e523278470c38832a3010645a78c544d8, \< 9d5df94ce0e213d5b549633f528f96114c736190; \>= 689ca16e523278470c38832a3010645a78c544d8, \< e4db90e4eb8d5487098712ffb1048f3fa6d25e98 (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-58238.md
Affected: Linux >= 689ca16e523278470c38832a3010645a78c544d8, < 9d5df94ce0e213d5b549633f528f96114c736190; >= 689ca16e523278470c38832a3010645a78c544d8, < e4db90e4eb8d5487098712ffb1048f3fa6d25e98; Linux 6.4
Fixed in: Linux 9d5df94ce0e213d5b549633f528f96114c736190

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-2024-58238 being exploited?

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

### How serious is CVE-2024-58238?

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

### Which versions are affected by CVE-2024-58238?

Linux \>= 689ca16e523278470c38832a3010645a78c544d8, \< 9d5df94ce0e213d5b549633f528f96114c736190; \>= 689ca16e523278470c38832a3010645a78c544d8, \< e4db90e4eb8d5487098712ffb1048f3fa6d25e98; Linux 6.4.

### Is there a fix for CVE-2024-58238?

Yes. Fixed in Linux 9d5df94ce0e213d5b549633f528f96114c736190. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-58238?

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/9d5df94ce0e213d5b549633f528f96114c736190>
- patch: <https://git.kernel.org/stable/c/e4db90e4eb8d5487098712ffb1048f3fa6d25e98>

## 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-2024-58238>

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