CVE-2024-24860
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-24860 is a race condition vulnerability discovered in the Linux kernel's bluetooth device driver, specifically in the {min,max}keysize_set() function. The vulnerability was reported on February 5, 2024, and affects Linux kernel versions up to 5.5.19 and from 6.0 to 6.7.2. This vulnerability can result in a null pointer dereference issue (NVD, Ubuntu).

Technical details

The vulnerability occurs in the Bluetooth subsystem where the {min,max}keysizeset() function updates hdev->le{min,max}keysize parameters. The race condition exists because the function doesn't hold a lock while validating update parameters, allowing hdev->le{min,max}keysize to be modified between validation and update. This can lead to writing invalid le{min,max}keysize values, potentially making lemaxkeysize smaller than leminkeysize. The vulnerability has been assigned a CVSS v3.1 base score of 5.3 (Medium) with vector: CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability affects the Bluetooth component's encryption key length parameters. When exploited, it can cause abnormal Bluetooth encryption key lengths, potentially compromising Bluetooth encryption security. On Ubuntu systems, the vulnerability requires write access to debugfs entries, which are restricted to root by default. The primary impact is the possibility of a denial of service through system crash (Ubuntu, OpenAnolis).

Mitigation and workarounds

A fix has been implemented by expanding the buffer zone and including the parameter validation code within the hcidevlock critical section. The patch has been accepted into the Linux Kernel Bluetooth subsystem. The fix is available through various distribution updates, including Ubuntu security updates for affected versions and Debian security patches (OpenAnolis, Debian).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management