CVE-2025-40294

Source
https://cve.org/CVERecord?id=CVE-2025-40294
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40294.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40294
Downstream
Related
Published
2025-12-08T00:46:17.899Z
Modified
2026-03-12T02:16:56.427764Z
Summary
Bluetooth: MGMT: Fix OOB access in parse_adv_monitor_pattern()
Details

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

Bluetooth: MGMT: Fix OOB access in parseadvmonitor_pattern()

In the parseadvmonitorpattern() function, the value of the 'length' variable is currently limited to HCIMAXEXTADLENGTH(251). The size of the 'value' array in the mgmtadv_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 'mgmtadvpattern' structure will break the userspace. Considering this, and to avoid OOB access revert the limits for 'offset' and 'length' back to the value of HCIMAXAD_LENGTH.

Found by InfoTeCS on behalf of Linux Verification Center (linuxtesting.org) with SVACE.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40294.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
99f30e12e588f9982a6eb1916e53510bff25b3b8
Fixed
96616530f524a0a76248cd44201de0a9e8526190
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
db08722fc7d46168fe31d9b8a7b29229dd959f9f
Fixed
5f7350ff2b179764a4f40ba4161b60b8aaef857b
Fixed
4b7d4aa5399b5a64caee639275615c63c008540d
Fixed
3a50d59b3781bc3a4e96533612509546a4c309a7
Fixed
8d59fba49362c65332395789fd82771f1028d87e

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40294.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.1.159
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.117
Type
ECOSYSTEM
Events
Introduced
6.6.0
Fixed
6.12.58
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.17.8

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40294.json"