CVE-2025-40294
Unknown Unknown - Not Provided

BaseFortify

Vulnerability report for CVE-2025-40294, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2025-12-08

Last updated on: 2025-12-08

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: MGMT: Fix OOB access in parse_adv_monitor_pattern() In the parse_adv_monitor_pattern() function, the value of the 'length' variable is currently limited to HCI_MAX_EXT_AD_LENGTH(251). The size of the 'value' array in the mgmt_adv_pattern structure is 31. If the value of 'pattern[i].length' is set in the user space and exceeds 31, the 'patterns[i].value' array can be accessed out of bound when copied. Increasing the size of the 'value' array in the 'mgmt_adv_pattern' structure will break the userspace. Considering this, and to avoid OOB access revert the limits for 'offset' and 'length' back to the value of HCI_MAX_AD_LENGTH. Found by InfoTeCS on behalf of Linux Verification Center (linuxtesting.org) with SVACE.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2025-12-08
Last Modified
2025-12-08
Generated
2026-07-06
AI Q&A
2025-12-08
EPSS Evaluated
2026-07-05
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a buffer out-of-bounds (OOB) access issue in the Linux kernel's Bluetooth management code, specifically in the parse_adv_monitor_pattern() function. The function limits the 'length' variable to a maximum of 251, but the 'value' array it copies data into has a size of only 31. If user space sets a 'pattern[i].length' value greater than 31, it can cause the code to access memory beyond the bounds of the 'value' array, potentially leading to memory corruption or crashes.

Impact Analysis

This vulnerability can lead to out-of-bounds memory access, which may cause system instability, crashes, or potentially allow an attacker to execute arbitrary code or escalate privileges by exploiting the memory corruption.

Mitigation Strategies

To mitigate this vulnerability, update the Linux kernel to a version where the parse_adv_monitor_pattern() function has been fixed to prevent out-of-bounds access. This involves applying the patch that reverts the limits for 'offset' and 'length' back to the value of HCI_MAX_AD_LENGTH, ensuring the 'value' array is not accessed out of bounds.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-40294. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart