# CVE-2024-35966: Bluetooth: RFCOMM: Fix not validating setsockopt user input

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 18% of CVEs (2026-11-30)
- Published: 2024-05-20T09:41:55.838Z
- Modified: 2026-10-15T01:18:14.377Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from bb23c0ab824653be4aa7dfca15b07b3059717004 before d072ea24748189cd8f4a9c3f585ca9af073a0838; from bb23c0ab824653be4aa7dfca15b07b3059717004 before 00767fbd67af70d7a550caa5b12d9515fa978bab; from bb23c0ab824653be4aa7dfca15b07b3059717004 before eea40d33bf936a5c7fb03c190e61e0cfee00e872; from bb23c0ab824653be4aa7dfca15b07b3059717004 before 4ea65e2095e9bd151d0469328dd7fc2858feb546; from bb23c0ab824653be4aa7dfca15b07b3059717004 before c3f787a3eafe519c93df9abbb0ca5145861c8d0f; from bb23c0ab824653be4aa7dfca15b07b3059717004 before a97de7bff13b1cc825c1b1344eaed8d6c2d3e695; 2.6.30 (not affected: before 2.6.30; from 5.10.234 up to 5.10.*; from 5.15.178 up to 5.15.*; from 6.1.107 up to 6.1.*; from 6.6.47 up to 6.6.*; from 6.8.7 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 2.6.30 before 5.10.234; from 5.11 before 5.15.178; from 5.16 before 6.1.107; from 6.2 before 6.6.47; from 6.7 before 6.8.7; 6.9

## References

- <https://git.kernel.org/stable/c/d072ea24748189cd8f4a9c3f585ca9af073a0838> (patch)
- <https://git.kernel.org/stable/c/00767fbd67af70d7a550caa5b12d9515fa978bab> (patch)
- <https://git.kernel.org/stable/c/eea40d33bf936a5c7fb03c190e61e0cfee00e872> (patch)
- <https://git.kernel.org/stable/c/4ea65e2095e9bd151d0469328dd7fc2858feb546> (patch)
- <https://git.kernel.org/stable/c/c3f787a3eafe519c93df9abbb0ca5145861c8d0f> (patch)
- <https://git.kernel.org/stable/c/a97de7bff13b1cc825c1b1344eaed8d6c2d3e695> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Sources

- CVE List: [CVE-2024-35966](https://www.cve.org/CVERecord?id=CVE-2024-35966), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-35966](https://nvd.nist.gov/vuln/detail/CVE-2024-35966), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-35966 · Whole record: https://cve.day/CVE-2024-35966.json · Rebuilt by cve.day 2026-11-25T22:58:40.640Z
