{"id":"CVE-2026-31498","aliases":["CVE-2026-31498"],"related":[],"kind":"vulnerability","state":"published","title":"Bluetooth: L2CAP: Fix ERTM re-init and zero pdu_len infinite loop","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: L2CAP: Fix ERTM re-init and zero pdu_len infinite loop\n\nl2cap_config_req() processes CONFIG_REQ for channels in BT_CONNECTED\nstate to support L2CAP reconfiguration (e.g. MTU changes). However,\nsince both CONF_INPUT_DONE and CONF_OUTPUT_DONE are already set from\nthe initial configuration, the reconfiguration path falls through to\nl2cap_ertm_init(), which re-initializes tx_q, srej_q, srej_list, and\nretrans_list without freeing the previous allocations and sets\nchan->sdu to NULL without freeing the existing skb. This leaks all\npreviously allocated ERTM resources.\n\nAdditionally, l2cap_parse_conf_req() does not validate the minimum\nvalue of remote_mps derived from the RFC max_pdu_size option. A zero\nvalue propagates to l2cap_segment_sdu() where pdu_len becomes zero,\ncausing the while loop to never terminate since len is never\ndecremented, exhausting all available memory.\n\nFix the double-init by skipping l2cap_ertm_init() and\nl2cap_chan_ready() when the channel is already in BT_CONNECTED state,\nwhile still allowing the reconfiguration parameters to be updated\nthrough l2cap_parse_conf_req(). Also add a pdu_len zero check in\nl2cap_segment_sdu() as a safeguard.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: L2CAP: Fix ERTM re-init and zero pdu_len infinite loop\n\nl2cap_config_req() processes CONFIG_REQ for channels in BT_CONNECTED\nstate to support L2CAP reconfiguration (e.g. MTU changes). However,\nsince both CONF_INPUT_DONE and CONF_OUTPUT_DONE are already set from\nthe initial configuration, the reconfiguration path falls through to\nl2cap_ertm_init(), which re-initializes tx_q, srej_q, srej_list, and\nretrans_list without freeing the previous allocations and sets\nchan->sdu to NULL without freeing the existing skb. This leaks all\npreviously allocated ERTM resources.\n\nAdditionally, l2cap_parse_conf_req() does not validate the minimum\nvalue of remote_mps derived from the RFC max_pdu_size option. A zero\nvalue propagates to l2cap_segment_sdu() where pdu_len becomes zero,\ncausing the while loop to never terminate since len is never\ndecremented, exhausting all available memory.\n\nFix the double-init by skipping l2cap_ertm_init() and\nl2cap_chan_ready() when the channel is already in BT_CONNECTED state,\nwhile still allowing the reconfiguration parameters to be updated\nthrough l2cap_parse_conf_req(). Also add a pdu_len zero check in\nl2cap_segment_sdu() as a safeguard.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nBluetooth: L2CAP: Corrección de la reinicialización de ERTM y bucle infinito con pdu_len cero\n\nl2cap_config_req() procesa CONFIG_REQ para canales en estado BT_CONNECTED para soportar la reconfiguración de L2CAP (p. ej., cambios de MTU). Sin embargo, dado que tanto CONF_INPUT_DONE como CONF_OUTPUT_DONE ya están establecidos desde la configuración inicial, la ruta de reconfiguración pasa a l2cap_ertm_init(), que reinicializa tx_q, srej_q, srej_list y retrans_list sin liberar las asignaciones anteriores y establece chan  ->  sdu a NULL sin liberar el skb existente. Esto fuga todos los recursos ERTM previamente asignados.\n\nAdemás, l2cap_parse_conf_req() no valida el valor mínimo de remote_mps derivado de la opción max_pdu_size de RFC. Un valor cero se propaga a l2cap_segment_sdu() donde pdu_len se vuelve cero, haciendo que el bucle ’while’ nunca termine ya que ’len’ nunca se decrementa, agotando toda la memoria disponible.\n\nSe corrige la doble inicialización omitiendo l2cap_ertm_init() y l2cap_chan_ready() cuando el canal ya está en estado BT_CONNECTED, mientras se sigue permitiendo que los parámetros de reconfiguración se actualicen a través de l2cap_parse_conf_req(). También se añade una comprobación de pdu_len cero en l2cap_segment_sdu() como salvaguarda.","source":"nvd"}],"published":"2026-04-22T13:54:19.714Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-835"],"affected":[{"ranges":[{"type":"git","introduced":"96298f640104e4cd9a913a6e50b0b981829b94ff","fixed":"9760b83cfd24b38caee663f429011a0dd6064fa9","status":"affected"},{"type":"git","introduced":"96298f640104e4cd9a913a6e50b0b981829b94ff","fixed":"de37e2655b7abc3f59254c6b72256840f39fc6d5","status":"affected"},{"type":"git","introduced":"96298f640104e4cd9a913a6e50b0b981829b94ff","fixed":"e7aab23b7df89a3d754a5f0a7d2237548b328bd0","status":"affected"},{"type":"git","introduced":"96298f640104e4cd9a913a6e50b0b981829b94ff","fixed":"52667c859fe33f70c2e711cb81bbd505d5eb8e75","status":"affected"},{"type":"git","introduced":"96298f640104e4cd9a913a6e50b0b981829b94ff","fixed":"9a21a631ee034b1573dce14b572a24943dbfd7ae","status":"affected"},{"type":"git","introduced":"96298f640104e4cd9a913a6e50b0b981829b94ff","fixed":"900e4db5385ec2cacd372345a80ab9c8e105b3a3","status":"affected"},{"type":"git","introduced":"96298f640104e4cd9a913a6e50b0b981829b94ff","fixed":"042e2cd4bb11e5313b19b87593616524949e4c52","status":"affected"},{"type":"git","introduced":"96298f640104e4cd9a913a6e50b0b981829b94ff","fixed":"25f420a0d4cfd61d3d23ec4b9c56d9f443d91377","status":"affected"},{"type":"git","version":"4ad03ff6f680681c5f78254e37c4c856fa953629","status":"affected"},{"type":"git","version":"b7d0ca715c1008acd2fc018f02a56fed88f78b75","status":"affected"},{"type":"git","version":"799263eb37a4f7f6d39334046929c3bc92452a7f","status":"affected"},{"type":"git","version":"8828622fb9b4201eeb0870587052e3d834cfaf61","status":"affected"},{"type":"git","version":"b432ea85ab8472763870dd0f2c186130dd36d68c","status":"affected"},{"type":"semver","introduced":"4.4.238","fixed":"4.5","status":"affected"},{"type":"semver","introduced":"4.9.238","fixed":"4.10","status":"affected"},{"type":"semver","introduced":"4.14.200","fixed":"4.15","status":"affected"},{"type":"semver","introduced":"4.19.149","fixed":"4.20","status":"affected"},{"type":"semver","introduced":"5.4.69","fixed":"5.5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.7","status":"unaffected"},{"type":"semver","introduced":"5.10.253","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.203","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.168","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.131","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.80","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","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":"4.4.238","fixed":"4.5"},{"status":"affected","introduced":"4.9.238","fixed":"4.10"},{"status":"affected","introduced":"4.14.200","fixed":"4.15"},{"status":"affected","introduced":"4.19.149","fixed":"4.20"},{"status":"affected","introduced":"5.4.69","fixed":"5.5"},{"status":"affected","introduced":"5.7.1","fixed":"5.10.253"},{"status":"affected","introduced":"5.11","fixed":"5.15.203"},{"status":"affected","introduced":"5.16","fixed":"6.1.168"},{"status":"affected","introduced":"6.2","fixed":"6.6.131"},{"status":"affected","introduced":"6.7","fixed":"6.12.80"},{"status":"affected","introduced":"6.13","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"5.7"},{"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"},{"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/9760b83cfd24b38caee663f429011a0dd6064fa9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de37e2655b7abc3f59254c6b72256840f39fc6d5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e7aab23b7df89a3d754a5f0a7d2237548b328bd0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/52667c859fe33f70c2e711cb81bbd505d5eb8e75","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a21a631ee034b1573dce14b572a24943dbfd7ae","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/900e4db5385ec2cacd372345a80ab9c8e105b3a3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/042e2cd4bb11e5313b19b87593616524949e4c52","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/25f420a0d4cfd61d3d23ec4b9c56d9f443d91377","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:35:45.390Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31498","url":"https://www.cve.org/CVERecord?id=CVE-2026-31498","licence":"CVE Terms of Use","modified":"2026-11-05T21:45:03.103Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31498","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31498","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.294Z","epss":{"score":0.00128,"percentile":0.0262,"date":"2026-12-01T12:00:22.000Z"}}