{"id":"CVE-2026-31552","aliases":["CVE-2026-31552"],"related":[],"kind":"vulnerability","state":"published","title":"wifi: wlcore: Return -ENOMEM instead of -EAGAIN if there is not enough headroom","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: wlcore: Return -ENOMEM instead of -EAGAIN if there is not enough headroom\n\nSince upstream commit e75665dd0968 (\"wifi: wlcore: ensure skb headroom\nbefore skb_push\"), wl1271_tx_allocate() and with it\nwl1271_prepare_tx_frame() returns -EAGAIN if pskb_expand_head() fails.\nHowever, in wlcore_tx_work_locked(), a return value of -EAGAIN from\nwl1271_prepare_tx_frame() is interpreted as the aggregation buffer being\nfull. This causes the code to flush the buffer, put the skb back at the\nhead of the queue, and immediately retry the same skb in a tight while\nloop.\n\nBecause wlcore_tx_work_locked() holds wl->mutex, and the retry happens\nimmediately with GFP_ATOMIC, this will result in an infinite loop and a\nCPU soft lockup. Return -ENOMEM instead so the packet is dropped and\nthe loop terminates.\n\nThe problem was found by an experimental code review agent based on\ngemini-3.1-pro while reviewing backports into v6.18.y.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: wlcore: Return -ENOMEM instead of -EAGAIN if there is not enough headroom\n\nSince upstream commit e75665dd0968 (\"wifi: wlcore: ensure skb headroom\nbefore skb_push\"), wl1271_tx_allocate() and with it\nwl1271_prepare_tx_frame() returns -EAGAIN if pskb_expand_head() fails.\nHowever, in wlcore_tx_work_locked(), a return value of -EAGAIN from\nwl1271_prepare_tx_frame() is interpreted as the aggregation buffer being\nfull. This causes the code to flush the buffer, put the skb back at the\nhead of the queue, and immediately retry the same skb in a tight while\nloop.\n\nBecause wlcore_tx_work_locked() holds wl->mutex, and the retry happens\nimmediately with GFP_ATOMIC, this will result in an infinite loop and a\nCPU soft lockup. Return -ENOMEM instead so the packet is dropped and\nthe loop terminates.\n\nThe problem was found by an experimental code review agent based on\ngemini-3.1-pro while reviewing backports into v6.18.y.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad:\n\nwifi: wlcore: Devolver -ENOMEM en lugar de -EAGAIN si no hay suficiente espacio de cabecera (headroom)\n\nDesde el commit upstream e75665dd0968 (’wifi: wlcore: ensure skb headroom before skb_push’), wl1271_tx_allocate() y con ello wl1271_prepare_tx_frame() devuelven -EAGAIN si pskb_expand_head() falla. Sin embargo, en wlcore_tx_work_locked(), un valor de retorno de -EAGAIN de wl1271_prepare_tx_frame() se interpreta como que el búfer de agregación está lleno. Esto hace que el código vacíe el búfer, coloque el skb de nuevo al principio de la cola e intente inmediatamente el mismo skb en un bucle ’while’ ajustado.\n\nDebido a que wlcore_tx_work_locked() mantiene wl  ->  mutex, y el reintento ocurre inmediatamente con GFP_ATOMIC, esto resultará en un bucle infinito y un bloqueo suave de la CPU (CPU soft lockup). Devolver -ENOMEM en su lugar para que el paquete se descarte y el bucle termine.\n\nEl problema fue encontrado por un agente experimental de revisión de código basado en gemini-3.1-pro mientras revisaba backports en v6.18.y.","source":"nvd"}],"published":"2026-04-24T14:33:19.065Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-835"],"affected":[{"ranges":[{"type":"git","introduced":"88295a55fefe5414e64293638b6f7549646e58ed","fixed":"980f793645540ca7a6318165cc12f49d5febeb99","status":"affected"},{"type":"git","introduced":"cd89a4656c03f8db0c57350aaec69cd3cfaa3522","fixed":"12f9eef39e49716c763714bfda835a733d5f6dea","status":"affected"},{"type":"git","introduced":"745a0810dbc96a0471e5f5e627ba1e978c3116d4","fixed":"ceb46b40b021d21911ff8608ce4ed33c1264ad2f","status":"affected"},{"type":"git","introduced":"b167312390fdd461c81ead516f2b0b44e83a9edb","fixed":"a6dc74209462c4fe5a88718d2f3a5286886081c8","status":"affected"},{"type":"git","introduced":"71de0b6e04bbee5575caf9a1e4d424e7dcc50018","fixed":"cfa64e2b3717be1da7c4c1aff7268a009e8c1610","status":"affected"},{"type":"git","introduced":"689a7980e4788e13e766763d53569fb78dea2513","fixed":"46c670ff1ff466e5eccb3940f726586473dc053c","status":"affected"},{"type":"git","introduced":"e75665dd096819b1184087ba5718bd93beafff51","fixed":"f2c06d718a7b85cbc59ceaa2ff3f46b178ac709c","status":"affected"},{"type":"git","introduced":"e75665dd096819b1184087ba5718bd93beafff51","fixed":"deb353d9bb009638b7762cae2d0b6e8fdbb41a69","status":"affected"},{"type":"semver","introduced":"5.10.250","fixed":"5.10.253","status":"affected"},{"type":"semver","introduced":"5.15.200","fixed":"5.15.203","status":"affected"},{"type":"semver","introduced":"6.1.163","fixed":"6.1.167","status":"affected"},{"type":"semver","introduced":"6.6.124","fixed":"6.6.130","status":"affected"},{"type":"semver","introduced":"6.12.70","fixed":"6.12.78","status":"affected"},{"type":"semver","introduced":"6.18.10","fixed":"6.18.20","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.19","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.167","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.130","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.78","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.20","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.10","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":"5.10.250","fixed":"5.10.253"},{"status":"affected","introduced":"5.15.200","fixed":"5.15.203"},{"status":"affected","introduced":"6.1.163","fixed":"6.1.167"},{"status":"affected","introduced":"6.6.124","fixed":"6.6.130"},{"status":"affected","introduced":"6.12.70","fixed":"6.12.78"},{"status":"affected","introduced":"6.18.10","fixed":"6.18.20"},{"status":"affected","introduced":"6.19.1","fixed":"6.19.10"},{"status":"affected","version":"6.19"},{"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/980f793645540ca7a6318165cc12f49d5febeb99","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/12f9eef39e49716c763714bfda835a733d5f6dea","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ceb46b40b021d21911ff8608ce4ed33c1264ad2f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a6dc74209462c4fe5a88718d2f3a5286886081c8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cfa64e2b3717be1da7c4c1aff7268a009e8c1610","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/46c670ff1ff466e5eccb3940f726586473dc053c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f2c06d718a7b85cbc59ceaa2ff3f46b178ac709c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/deb353d9bb009638b7762cae2d0b6e8fdbb41a69","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31552","url":"https://www.cve.org/CVERecord?id=CVE-2026-31552","licence":"CVE Terms of Use","modified":"2026-08-05T12:23:26.516Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31552","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31552","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.480Z","epss":{"score":0.00521,"percentile":0.45702,"date":"2026-12-01T12:00:22.000Z"}}