---
id: CVE-2024-35966
title: |-
  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: KASA…
summary: |-
  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: KASA…
severity: high
cvss: 7.1
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H'
cwe:
  - CWE-125
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 2.6.30, < 5.10.234'
  - 'linux_kernel >= 5.11, < 5.15.178'
  - 'linux_kernel >= 5.16, < 6.1.107'
  - 'linux_kernel >= 6.2, < 6.6.47'
  - 'linux_kernel >= 6.7, < 6.8.7'
  - linux_kernel = 6.9
patched:
  - linux_kernel 6.8.7
published: '2024-05-20'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T01:18:14.377'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-35966'
references:
  - url: 'https://git.kernel.org/stable/c/00767fbd67af70d7a550caa5b12d9515fa978bab'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4ea65e2095e9bd151d0469328dd7fc2858feb546'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/a97de7bff13b1cc825c1b1344eaed8d6c2d3e695'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/c3f787a3eafe519c93df9abbb0ca5145861c8d0f'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/d072ea24748189cd8f4a9c3f585ca9af073a0838'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/eea40d33bf936a5c7fb03c190e61e0cfee00e872'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/a97de7bff13b1cc825c1b1344eaed8d6c2d3e695'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/c3f787a3eafe519c93df9abbb0ca5145861c8d0f'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-265688.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.0026
epssPercentile: 0.17651
ingestedAt: '2026-10-15T03:30:12.693Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-05-28T19:28:34.251629Z'
---

## Overview

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

## Affected

- `linux_kernel >= 2.6.30, < 5.10.234`
- `linux_kernel >= 5.11, < 5.15.178`
- `linux_kernel >= 5.16, < 6.1.107`
- `linux_kernel >= 6.2, < 6.6.47`
- `linux_kernel >= 6.7, < 6.8.7`
- `linux_kernel = 6.9`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.8.7`
