CVE 7.5 HIGH

wifi: wlcore: Return -ENOMEM instead of -EAGAIN if there is not enough headroom_CVE-2026-31552

7.5 / 10
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Description

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.

Basic Information

ID CVE-2026-31552
Source Linux
Published Apr 24, 2026 at 14:33
Modified Apr 27, 2026 at 14:04

Affected Product

Vendor Linux
Product Linux
Version 88295a55fefe5414e64293638b6f7549646e58ed
Affected Versions Linux Linux 88295a55fefe5414e64293638b6f7549646e58ed
Linux Linux cd89a4656c03f8db0c57350aaec69cd3cfaa3522
Linux Linux 745a0810dbc96a0471e5f5e627ba1e978c3116d4
Linux Linux b167312390fdd461c81ead516f2b0b44e83a9edb
Linux Linux 71de0b6e04bbee5575caf9a1e4d424e7dcc50018
Linux Linux 689a7980e4788e13e766763d53569fb78dea2513
Linux Linux e75665dd096819b1184087ba5718bd93beafff51
Linux Linux e75665dd096819b1184087ba5718bd93beafff51
Linux Linux 6.19

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.