CVE-2024-35967 Bluetooth: SCO: Fix not validating setsockopt user input

High 7.1 Published Updated

A missing input validation in the Linux kernel Bluetooth SCO module allows out-of-bounds reads, potentially leading to system crashes or code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-35967?

CVE-2024-35967 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 20 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: SCO: Fix not validating setsockopt user input

syzbot reported sco_sock_setsockopt() 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 sco_sock_setsockopt+0xc0b/0xf90 net/bluetooth/sco.c:893 Read of size 4 at addr ffff88805f7b15a3 by task syz-executor.5/12578

Weakness: CWE-125

Which versions are affected by CVE-2024-35967?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2024-35967?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-35967 being exploited?

There is no known exploitation of CVE-2024-35967 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as BELL-CVE-2024-35967, DEBIAN-CVE-2024-35967, GHSA-7r5w-cpw3-hwvw, UBUNTU-CVE-2024-35967.

Is CVE-2024-35967 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free