CVE-2026-31552

In the Linux kernel, the following vulnerability has been resolved: wifi: wlcore: Return -ENOMEM instead of -EAGAIN if there is not enough headroom Since upstream commit e75665dd0968 ("wifi: wlcore: ensure skb headroom before skb_push"), wl1271_tx_allocate() and with it wl1271_prepare_tx_frame() returns -EAGAIN if pskb_expand_head() fails. However, in wlcore_tx_work_locked(), a return value of -EAGAIN from wl1271_prepare_tx_frame() is interpreted as the aggregation buffer being full. This causes the code to flush the buffer, put the skb back at the head of the queue, and immediately retry the same skb in a tight while loop. Because wlcore_tx_work_locked() holds wl->mutex, and the retry happens immediately with GFP_ATOMIC, this will result in an infinite loop and a CPU soft lockup. Return -ENOMEM instead so the packet is dropped and the loop terminates. The problem was found by an experimental code review agent based on gemini-3.1-pro while reviewing backports into v6.18.y.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*

History

11 Nov 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: wifi: wlcore: Devolver -ENOMEM en lugar de -EAGAIN si no hay suficiente espacio de cabecera (headroom) Desde 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. Debido 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. El 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.

27 Apr 2026, 20:15

Type Values Removed Values Added
First Time Linux linux Kernel
Linux
References () https://git.kernel.org/stable/c/12f9eef39e49716c763714bfda835a733d5f6dea - () https://git.kernel.org/stable/c/12f9eef39e49716c763714bfda835a733d5f6dea - Patch
References () https://git.kernel.org/stable/c/46c670ff1ff466e5eccb3940f726586473dc053c - () https://git.kernel.org/stable/c/46c670ff1ff466e5eccb3940f726586473dc053c - Patch
References () https://git.kernel.org/stable/c/980f793645540ca7a6318165cc12f49d5febeb99 - () https://git.kernel.org/stable/c/980f793645540ca7a6318165cc12f49d5febeb99 - Patch
References () https://git.kernel.org/stable/c/a6dc74209462c4fe5a88718d2f3a5286886081c8 - () https://git.kernel.org/stable/c/a6dc74209462c4fe5a88718d2f3a5286886081c8 - Patch
References () https://git.kernel.org/stable/c/ceb46b40b021d21911ff8608ce4ed33c1264ad2f - () https://git.kernel.org/stable/c/ceb46b40b021d21911ff8608ce4ed33c1264ad2f - Patch
References () https://git.kernel.org/stable/c/cfa64e2b3717be1da7c4c1aff7268a009e8c1610 - () https://git.kernel.org/stable/c/cfa64e2b3717be1da7c4c1aff7268a009e8c1610 - Patch
References () https://git.kernel.org/stable/c/deb353d9bb009638b7762cae2d0b6e8fdbb41a69 - () https://git.kernel.org/stable/c/deb353d9bb009638b7762cae2d0b6e8fdbb41a69 - Patch
References () https://git.kernel.org/stable/c/f2c06d718a7b85cbc59ceaa2ff3f46b178ac709c - () https://git.kernel.org/stable/c/f2c06d718a7b85cbc59ceaa2ff3f46b178ac709c - Patch
CWE CWE-835
CPE cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*

27 Apr 2026, 15:16

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.5

24 Apr 2026, 15:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-24 15:16

Updated : 2026-11-11 23:10


NVD link : CVE-2026-31552

Mitre link : CVE-2026-31552

CVE.ORG link : CVE-2026-31552


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-835

Loop with Unreachable Exit Condition ('Infinite Loop')