# CVE-2024-42141: Bluetooth: ISO: Check socket flag instead of hcon

> 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, NVD) `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.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-07-30T07:46:35.174Z
- **Modified:** 2026-06-17T07:48:55.127Z

## Who should check

- Anyone running Linux \>= fbdc4bc47268953c80853489f696e02d61f9a2c6, \< 045669710464a21c67e690ef14698fd71857cb11; \>= fbdc4bc47268953c80853489f696e02d61f9a2c6, \< 33fabef489169c6db87843ef23351ed0d5e51ad8; \>= fbdc4bc47268953c80853489f696e02d61f9a2c6, \< 596b6f081336e77764ca35cfeab66d0fcdbe544e; c03a10bd5b6ccb22921e04bcddc987410df7e7a9; \>= 6.5.12, \< 6.6
- Anyone running Linux 6.6

## Description

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

Bluetooth: ISO: Check socket flag instead of hcon

This fixes the following Smatch static checker warning:

net/bluetooth/iso.c:1364 iso\_sock\_recvmsg()
error: we previously assumed 'pi-\>conn-\>hcon' could be null (line 1359)

net/bluetooth/iso.c
1347 static int iso\_sock\_recvmsg(struct socket \*sock, struct msghdr \*msg,
1348                             size\_t len, int flags)
1349 {
1350         struct sock \*sk = sock-\>sk;
1351         struct iso\_pinfo \*pi = iso\_pi(sk);
1352
1353         BT\_DBG("sk %p", sk);
1354
1355         if (test\_and\_clear\_bit(BT\_SK\_DEFER\_SETUP,
                                      &bt\_sk(sk)-\>flags)) {
1356                 lock\_sock(sk);
1357                 switch (sk-\>sk\_state) {
1358                 case BT\_CONNECT2:
1359                         if (pi-\>conn-\>hcon &&
                                     ^^^^^^^^^^^^^^ If -\>hcon is NULL

1360                             test\_bit(HCI\_CONN\_PA\_SYNC,
                                         &pi-\>conn-\>hcon-\>flags)) {
1361                                 iso\_conn\_big\_sync(sk);
1362                                 sk-\>sk\_state = BT\_LISTEN;
1363                         } else {
--\> 1364                         iso\_conn\_defer\_accept(pi-\>conn-\>hcon);
                                                       ^^^^^^^^^^^^^^
                                                       then we're toast

1365                                 sk-\>sk\_state = BT\_CONFIG;
1366                         }
1367                         release\_sock(sk);
1368                         return 0;
1369                 case BT\_CONNECTED:
1370                         if (test\_bit(BT\_SK\_PA\_SYNC,

## Affected and fixed versions

- Linux: \>= fbdc4bc47268953c80853489f696e02d61f9a2c6, \< 045669710464a21c67e690ef14698fd71857cb11; \>= fbdc4bc47268953c80853489f696e02d61f9a2c6, \< 33fabef489169c6db87843ef23351ed0d5e51ad8; \>= fbdc4bc47268953c80853489f696e02d61f9a2c6, \< 596b6f081336e77764ca35cfeab66d0fcdbe544e; c03a10bd5b6ccb22921e04bcddc987410df7e7a9; \>= 6.5.12, \< 6.6 (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

- Upgrade Linux to 6.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-42141.md
Affected: Linux >= fbdc4bc47268953c80853489f696e02d61f9a2c6, < 045669710464a21c67e690ef14698fd71857cb11; >= fbdc4bc47268953c80853489f696e02d61f9a2c6, < 33fabef489169c6db87843ef23351ed0d5e51ad8; >= fbdc4bc47268953c80853489f696e02d61f9a2c6, < 596b6f081336e77764ca35cfeab66d0fcdbe544e; c03a10bd5b6ccb22921e04bcdd…
Fixed in: Linux 045669710464a21c67e690ef14698fd71857cb11, Linux 33fabef489169c6db87843ef23351ed0d5e51ad8, Linux 596b6f081336e77764ca35cfeab66d0fcdbe544e, Linux 6.6

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-42141 being exploited?

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

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

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

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

Linux \>= fbdc4bc47268953c80853489f696e02d61f9a2c6, \< 045669710464a21c67e690ef14698fd71857cb11; \>= fbdc4bc47268953c80853489f696e02d61f9a2c6, \< 33fabef489169c6db87843ef23351ed0d5e51ad8; \>= fbdc4bc47268953c80853489f696e02d61f9a2c6, \< 596b6f081336e77764ca35cfeab66d0fcdbe544e; c03a10bd5b6ccb22921e04bcddc987410df7e7a9; \>= 6.5.12, \< 6.6; Linux 6.6.

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

Yes. Fixed in Linux 045669710464a21c67e690ef14698fd71857cb11, Linux 33fabef489169c6db87843ef23351ed0d5e51ad8, Linux 596b6f081336e77764ca35cfeab66d0fcdbe544e, Linux 6.6. Upgrade Linux to 6.6 or later.

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

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/045669710464a21c67e690ef14698fd71857cb11>
- patch: <https://git.kernel.org/stable/c/33fabef489169c6db87843ef23351ed0d5e51ad8>
- patch: <https://git.kernel.org/stable/c/596b6f081336e77764ca35cfeab66d0fcdbe544e>

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

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