---
id: CVE-2024-35965
title: |-
  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.
summary: |-
  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.
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-1284
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 2.6.39, < 5.10.227'
  - 'linux_kernel >= 5.11, < 6.1.87'
  - 'linux_kernel >= 6.2, < 6.6.55'
  - '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.213'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-35965'
references:
  - url: 'https://git.kernel.org/stable/c/28234f8ab69c522ba447f3e041bbfbb284c5959a'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4f3951242ace5efc7131932e2e01e6ac6baed846'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/8ee0c132a61df9723813c40e742dc5321824daa9'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/9d42f373391211c7c8af66a3a316533a32b8a607'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/f13b04cf65a86507ff15a9bbf37969d25be3e2a0'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4f3951242ace5efc7131932e2e01e6ac6baed846'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/8ee0c132a61df9723813c40e742dc5321824daa9'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/9d42f373391211c7c8af66a3a316533a32b8a607'
    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.00241
epssPercentile: 0.14179
ingestedAt: '2026-10-15T03:30:12.693Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-05-28T19:29:49.743932Z'
---

## Overview

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

- `linux_kernel >= 2.6.39, < 5.10.227`
- `linux_kernel >= 5.11, < 6.1.87`
- `linux_kernel >= 6.2, < 6.6.55`
- `linux_kernel >= 6.7, < 6.8.7`
- `linux_kernel = 6.9`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.8.7`
