# CVE-2024-35965: Bluetooth: L2CAP: Fix not validating setsockopt user input

> 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, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; 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.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-1284
- **Published:** 2024-05-20T09:41:55.171Z
- **Modified:** 2026-10-15T01:18:14.213Z

## Who should check

- Anyone running Linux \>= 33575df7be6748292f88453f29319af6d639c5c8, \< f13b04cf65a86507ff15a9bbf37969d25be3e2a0; \>= 33575df7be6748292f88453f29319af6d639c5c8, \< 9d42f373391211c7c8af66a3a316533a32b8a607; \>= 33575df7be6748292f88453f29319af6d639c5c8, \< 28234f8ab69c522ba447f3e041bbfbb284c5959a; \>= 33575df7be6748292f88453f29319af6d639c5c8, \< 8ee0c132a61df9723813c40e742dc5321824daa9; \>= 33575df7be6748292f88453f29319af6d639c5c8, \< 4f3951242ace5efc7131932e2e01e6ac6baed846
- Anyone running Linux 2.6.39

## Description

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

Bluetooth: L2CAP: Fix not validating setsockopt user input

Check user input length before copying data.

## Affected and fixed versions

- Linux: \>= 33575df7be6748292f88453f29319af6d639c5c8, \< f13b04cf65a86507ff15a9bbf37969d25be3e2a0; \>= 33575df7be6748292f88453f29319af6d639c5c8, \< 9d42f373391211c7c8af66a3a316533a32b8a607; \>= 33575df7be6748292f88453f29319af6d639c5c8, \< 28234f8ab69c522ba447f3e041bbfbb284c5959a; \>= 33575df7be6748292f88453f29319af6d639c5c8, \< 8ee0c132a61df9723813c40e742dc5321824daa9; \>= 33575df7be6748292f88453f29319af6d639c5c8, \< 4f3951242ace5efc7131932e2e01e6ac6baed846 (cvelist)
- Linux: 2.6.39 (cvelist)

## Mitigation

- Upgrade Linux to 4f3951242ace5efc7131932e2e01e6ac6baed846 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-35965. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35965.md
Affected: Linux >= 33575df7be6748292f88453f29319af6d639c5c8, < f13b04cf65a86507ff15a9bbf37969d25be3e2a0; >= 33575df7be6748292f88453f29319af6d639c5c8, < 9d42f373391211c7c8af66a3a316533a32b8a607; >= 33575df7be6748292f88453f29319af6d639c5c8, < 28234f8ab69c522ba447f3e041bbfbb284c5959a; >= 33575df7be6748292f88453…
Fixed in: Linux 9d42f373391211c7c8af66a3a316533a32b8a607, Linux 28234f8ab69c522ba447f3e041bbfbb284c5959a, Linux 8ee0c132a61df9723813c40e742dc5321824daa9, Linux 4f3951242ace5efc7131932e2e01e6ac6baed846

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

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

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

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

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

Linux \>= 33575df7be6748292f88453f29319af6d639c5c8, \< f13b04cf65a86507ff15a9bbf37969d25be3e2a0; \>= 33575df7be6748292f88453f29319af6d639c5c8, \< 9d42f373391211c7c8af66a3a316533a32b8a607; \>= 33575df7be6748292f88453f29319af6d639c5c8, \< 28234f8ab69c522ba447f3e041bbfbb284c5959a; \>= 33575df7be6748292f88453f29319af6d639c5c8, \< 8ee0c132a61df9723813c40e742dc5321824daa9; \>= 33575df7be6748292f88453f29319af6d639c5c8, \< 4f3951242ace5efc7131932e2e01e6ac6baed846; Linux 2.6.39.

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

Yes. Fixed in Linux 9d42f373391211c7c8af66a3a316533a32b8a607, Linux 28234f8ab69c522ba447f3e041bbfbb284c5959a, Linux 8ee0c132a61df9723813c40e742dc5321824daa9, Linux 4f3951242ace5efc7131932e2e01e6ac6baed846. Upgrade Linux to 4f3951242ace5efc7131932e2e01e6ac6baed846 or later.

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

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/f13b04cf65a86507ff15a9bbf37969d25be3e2a0>
- patch: <https://git.kernel.org/stable/c/9d42f373391211c7c8af66a3a316533a32b8a607>
- patch: <https://git.kernel.org/stable/c/28234f8ab69c522ba447f3e041bbfbb284c5959a>
- patch: <https://git.kernel.org/stable/c/8ee0c132a61df9723813c40e742dc5321824daa9>
- patch: <https://git.kernel.org/stable/c/4f3951242ace5efc7131932e2e01e6ac6baed846>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

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

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