{"id":"CVE-2025-40294","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2025-12-08T01:16:01.423","lastModified":"2026-10-14T22:10:00.210","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: MGMT: Fix OOB access in parse_adv_monitor_pattern()\n\nIn the parse_adv_monitor_pattern() function, the value of\nthe 'length' variable is currently limited to HCI_MAX_EXT_AD_LENGTH(251).\nThe size of the 'value' array in the mgmt_adv_pattern structure is 31.\nIf the value of 'pattern[i].length' is set in the user space\nand exceeds 31, the 'patterns[i].value' array can be accessed\nout of bound when copied.\n\nIncreasing the size of the 'value' array in\nthe 'mgmt_adv_pattern' structure will break the userspace.\nConsidering this, and to avoid OOB access revert the limits for 'offset'\nand 'length' back to the value of HCI_MAX_AD_LENGTH.\n\nFound by InfoTeCS on behalf of Linux Verification Center\n(linuxtesting.org) with SVACE."},{"lang":"es","value":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nBluetooth: MGMT: Corrección de acceso OOB en parse_adv_monitor_pattern()\n\nEn la función parse_adv_monitor_pattern(), el valor de la variable 'length' está actualmente limitado a HCI_MAX_EXT_AD_LENGTH(251). El tamaño del array 'value' en la estructura mgmt_adv_pattern es 31. Si el valor de 'pattern[i].length' se establece en el espacio de usuario y excede 31, el array 'patterns[i].value' puede ser accedido fuera de límites al ser copiado.\n\nAumentar el tamaño del array 'value' en la estructura 'mgmt_adv_pattern' romperá el espacio de usuario. Considerando esto, y para evitar el acceso OOB, se revierten los límites para 'offset' y 'length' de nuevo al valor de HCI_MAX_AD_LENGTH.\n\nEncontrado por InfoTeCS en nombre del Centro de Verificación de Linux (linuxtesting.org) con SVACE."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["include/net/bluetooth/mgmt.h","net/bluetooth/mgmt.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"99f30e12e588f9982a6eb1916e53510bff25b3b8","lessThan":"96616530f524a0a76248cd44201de0a9e8526190","versionType":"git","status":"affected"},{"version":"db08722fc7d46168fe31d9b8a7b29229dd959f9f","lessThan":"5f7350ff2b179764a4f40ba4161b60b8aaef857b","versionType":"git","status":"affected"},{"version":"db08722fc7d46168fe31d9b8a7b29229dd959f9f","lessThan":"4b7d4aa5399b5a64caee639275615c63c008540d","versionType":"git","status":"affected"},{"version":"db08722fc7d46168fe31d9b8a7b29229dd959f9f","lessThan":"3a50d59b3781bc3a4e96533612509546a4c309a7","versionType":"git","status":"affected"},{"version":"db08722fc7d46168fe31d9b8a7b29229dd959f9f","lessThan":"8d59fba49362c65332395789fd82771f1028d87e","versionType":"git","status":"affected"},{"version":"6.1.83","lessThan":"6.1.159","versionType":"semver","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["include/net/bluetooth/mgmt.h","net/bluetooth/mgmt.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.6","status":"affected"},{"version":"0","lessThan":"6.6","versionType":"semver","status":"unaffected"},{"version":"6.1.159","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.6.117","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.58","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.17.8","lessThanOrEqual":"6.17.*","versionType":"semver","status":"unaffected"},{"version":"6.18","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-06-16T19:53:21.459329Z","id":"CVE-2025-40294","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"references":[{"url":"https://git.kernel.org/stable/c/3a50d59b3781bc3a4e96533612509546a4c309a7","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/4b7d4aa5399b5a64caee639275615c63c008540d","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/5f7350ff2b179764a4f40ba4161b60b8aaef857b","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/8d59fba49362c65332395789fd82771f1028d87e","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/96616530f524a0a76248cd44201de0a9e8526190","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}