{"id":"CVE-2026-31772","aliases":["CVE-2026-31772"],"related":[],"kind":"vulnerability","state":"published","title":"Bluetooth: hci_sync: fix stack buffer overflow in hci_le_big_create_sync","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_sync: fix stack buffer overflow in hci_le_big_create_sync\n\nhci_le_big_create_sync() uses DEFINE_FLEX to allocate a\nstruct hci_cp_le_big_create_sync on the stack with room for 0x11 (17)\nBIS entries.  However, conn->num_bis can hold up to HCI_MAX_ISO_BIS (31)\nentries — validated against ISO_MAX_NUM_BIS (0x1f) in the caller\nhci_conn_big_create_sync().  When conn->num_bis is between 18 and 31,\nthe memcpy that copies conn->bis into cp->bis writes up to 14 bytes\npast the stack buffer, corrupting adjacent stack memory.\n\nThis is trivially reproducible: binding an ISO socket with\nbc_num_bis = ISO_MAX_NUM_BIS (31) and calling listen() will\neventually trigger hci_le_big_create_sync() from the HCI command\nsync worker, causing a KASAN-detectable stack-out-of-bounds write:\n\n  BUG: KASAN: stack-out-of-bounds in hci_le_big_create_sync+0x256/0x3b0\n  Write of size 31 at addr ffffc90000487b48 by task kworker/u9:0/71\n\nFix this by changing the DEFINE_FLEX count from the incorrect 0x11 to\nHCI_MAX_ISO_BIS, which matches the maximum number of BIS entries that\nconn->bis can actually carry.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_sync: fix stack buffer overflow in hci_le_big_create_sync\n\nhci_le_big_create_sync() uses DEFINE_FLEX to allocate a\nstruct hci_cp_le_big_create_sync on the stack with room for 0x11 (17)\nBIS entries.  However, conn->num_bis can hold up to HCI_MAX_ISO_BIS (31)\nentries — validated against ISO_MAX_NUM_BIS (0x1f) in the caller\nhci_conn_big_create_sync().  When conn->num_bis is between 18 and 31,\nthe memcpy that copies conn->bis into cp->bis writes up to 14 bytes\npast the stack buffer, corrupting adjacent stack memory.\n\nThis is trivially reproducible: binding an ISO socket with\nbc_num_bis = ISO_MAX_NUM_BIS (31) and calling listen() will\neventually trigger hci_le_big_create_sync() from the HCI command\nsync worker, causing a KASAN-detectable stack-out-of-bounds write:\n\n  BUG: KASAN: stack-out-of-bounds in hci_le_big_create_sync+0x256/0x3b0\n  Write of size 31 at addr ffffc90000487b48 by task kworker/u9:0/71\n\nFix this by changing the DEFINE_FLEX count from the incorrect 0x11 to\nHCI_MAX_ISO_BIS, which matches the maximum number of BIS entries that\nconn->bis can actually carry.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nBluetooth: hci_sync: corregir desbordamiento de búfer de pila en hci_le_big_create_sync\n\nhci_le_big_create_sync() utiliza DEFINE_FLEX para asignar una estructura hci_cp_le_big_create_sync en la pila con espacio para 0x11 (17) entradas BIS. Sin embargo, conn  ->  num_bis puede contener hasta HCI_MAX_ISO_BIS (31) entradas - validado contra ISO_MAX_NUM_BIS (0x1f) en la función llamadora hci_conn_big_create_sync(). Cuando conn  ->  num_bis está entre 18 y 31, la función memcpy que copia conn  ->  bis en cp  ->  bis escribe hasta 14 bytes más allá del búfer de pila, corrompiendo la memoria de pila adyacente.\n\nEsto es trivialmente reproducible: vincular un socket ISO con bc_num_bis = ISO_MAX_NUM_BIS (31) y llamar a listen() eventualmente activará hci_le_big_create_sync() desde el trabajador de sincronización de comandos HCI, causando una escritura fuera de límites de pila detectable por KASAN:\n\n  BUG: KASAN: stack-out-of-bounds en hci_le_big_create_sync+0x256/0x3b0\n  Escritura de tamaño 31 en la dirección ffffc90000487b48 por la tarea kworker/u9:0/71\n\nSolucione esto cambiando el recuento de DEFINE_FLEX del incorrecto 0x11 a HCI_MAX_ISO_BIS, lo que coincide con el número máximo de entradas BIS que conn  ->  bis puede realmente contener.","source":"nvd"}],"published":"2026-05-01T14:15:00.582Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-121","CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"91d19383b7ed035e22165ae5c836e50bb9f95fbe","fixed":"f5d446624345d309e7a4a1b27ea9f028d6a8c5d9","status":"affected"},{"type":"git","introduced":"42ecf1947135110ea08abeaca39741636f9a2285","fixed":"aba0aea354015794e8312dd7efe726967e58aefe","status":"affected"},{"type":"git","introduced":"42ecf1947135110ea08abeaca39741636f9a2285","fixed":"eaf32002ca7b1ba51c9f140991fd9febe6de79f0","status":"affected"},{"type":"git","introduced":"42ecf1947135110ea08abeaca39741636f9a2285","fixed":"bc39a094730ce062fa034a529c93147c096cb488","status":"affected"},{"type":"git","version":"8958e1cee4e2eac1a5b825caa4dd96ce9ed975dd","status":"affected"},{"type":"semver","introduced":"6.12.2","fixed":"6.12.81","status":"affected"},{"type":"semver","introduced":"6.11.11","fixed":"6.12","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.13","status":"unaffected"},{"type":"semver","introduced":"6.12.81","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.22","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.12","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.11.11","fixed":"6.12"},{"status":"affected","introduced":"6.12.2","fixed":"6.12.81"},{"status":"affected","introduced":"6.13.1","fixed":"6.18.22"},{"status":"affected","introduced":"6.19","fixed":"6.19.12"},{"status":"affected","version":"6.13"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/f5d446624345d309e7a4a1b27ea9f028d6a8c5d9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aba0aea354015794e8312dd7efe726967e58aefe","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eaf32002ca7b1ba51c9f140991fd9febe6de79f0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bc39a094730ce062fa034a529c93147c096cb488","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:13:07.170Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31772","url":"https://www.cve.org/CVERecord?id=CVE-2026-31772","licence":"CVE Terms of Use","modified":"2026-10-19T19:06:08.134Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31772","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31772","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.380Z","epss":{"score":0.00148,"percentile":0.04211,"date":"2026-12-01T12:00:22.000Z"}}