{"id":"CVE-2026-31552","published":"2026-04-24T14:33:19Z","modified":"2026-08-05T12:23:26Z","title":"wifi: wlcore: Return -ENOMEM instead of -EAGAIN if there is not enough headroom","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00744,"percentile":0.50842,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/980f793645540ca7a6318165cc12f49d5febeb99","tags":[]},{"url":"https://git.kernel.org/stable/c/12f9eef39e49716c763714bfda835a733d5f6dea","tags":[]},{"url":"https://git.kernel.org/stable/c/ceb46b40b021d21911ff8608ce4ed33c1264ad2f","tags":[]},{"url":"https://git.kernel.org/stable/c/a6dc74209462c4fe5a88718d2f3a5286886081c8","tags":[]},{"url":"https://git.kernel.org/stable/c/cfa64e2b3717be1da7c4c1aff7268a009e8c1610","tags":[]},{"url":"https://git.kernel.org/stable/c/46c670ff1ff466e5eccb3940f726586473dc053c","tags":[]},{"url":"https://git.kernel.org/stable/c/f2c06d718a7b85cbc59ceaa2ff3f46b178ac709c","tags":[]},{"url":"https://git.kernel.org/stable/c/deb353d9bb009638b7762cae2d0b6e8fdbb41a69","tags":[]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":10.17},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 88295a55fefe5414e64293638b6f7549646e58ed, < 980f793645540ca7a6318165cc12f49d5febeb99",">= cd89a4656c03f8db0c57350aaec69cd3cfaa3522, < 12f9eef39e49716c763714bfda835a733d5f6dea",">= 745a0810dbc96a0471e5f5e627ba1e978c3116d4, < ceb46b40b021d21911ff8608ce4ed33c1264ad2f",">= b167312390fdd461c81ead516f2b0b44e83a9edb, < a6dc74209462c4fe5a88718d2f3a5286886081c8",">= 71de0b6e04bbee5575caf9a1e4d424e7dcc50018, < cfa64e2b3717be1da7c4c1aff7268a009e8c1610",">= 689a7980e4788e13e766763d53569fb78dea2513, < 46c670ff1ff466e5eccb3940f726586473dc053c",">= e75665dd096819b1184087ba5718bd93beafff51, < f2c06d718a7b85cbc59ceaa2ff3f46b178ac709c",">= e75665dd096819b1184087ba5718bd93beafff51, < deb353d9bb009638b7762cae2d0b6e8fdbb41a69",">= 5.10.250, < 5.10.253",">= 5.15.200, < 5.15.203"]},{"vendor":"Linux","product":"Linux","versions":["6.19"]}],"euvd":{"id":"EUVD-2026-25445","exploited":false,"provenance":"source"}}