Skip to content
Heist/ feed
Back to feed
HighFix available

wifi: wlcore: Return -ENOMEM instead of -EAGAIN if there is not enough headroom

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.253, 5.15.203, 6.1.167, 6.12.78, 6.18.20, 6.19.10, 6.6.130
CVEs
CVE-2026-31552
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 15:45 UTC · Revision 1

Source evidence

wifi: wlcore: Return -ENOMEM instead of -EAGAIN if there is not enough headroom

core-osv · Original source

Published 24 Apr 2026, 14:33 UTC

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.

osv:CVE-2026-31552

Kernel

Fixed versions: 5.10.253, 5.15.203, 6.1.167, 6.6.130, 6.12.78, 6.18.20, 6.19.10

Complete source record
{
  "id": "c7a6c4edfccb2851550a7a54b120aef00d3019efd5ef92e543c51993d0b338d5",
  "url": "https://osv.dev/vulnerability/CVE-2026-31552",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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: 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.",
    "evidence": "osv:CVE-2026-31552",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.253",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.203",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.167",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.130",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.78",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.20",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.19.10",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-31552",
      "aliases": [
        "CVE-2026-31552"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "88295a55fefe5414e64293638b6f7549646e58ed"
                },
                {
                  "fixed": "980f793645540ca7a6318165cc12f49d5febeb99"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "cd89a4656c03f8db0c57350aaec69cd3cfaa3522"
                },
                {
                  "fixed": "12f9eef39e49716c763714bfda835a733d5f6dea"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "745a0810dbc96a0471e5f5e627ba1e978c3116d4"
                },
                {
                  "fixed": "ceb46b40b021d21911ff8608ce4ed33c1264ad2f"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "b167312390fdd461c81ead516f2b0b44e83a9edb"
                },
                {
                  "fixed": "a6dc74209462c4fe5a88718d2f3a5286886081c8"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "71de0b6e04bbee5575caf9a1e4d424e7dcc50018"
                },
                {
                  "fixed": "cfa64e2b3717be1da7c4c1aff7268a009e8c1610"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "689a7980e4788e13e766763d53569fb78dea2513"
                },
                {
                  "fixed": "46c670ff1ff466e5eccb3940f726586473dc053c"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "e75665dd096819b1184087ba5718bd93beafff51"
                },
                {
                  "fixed": "f2c06d718a7b85cbc59ceaa2ff3f46b178ac709c"
                },
                {
                  "fixed": "deb353d9bb009638b7762cae2d0b6e8fdbb41a69"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5.10.250"
                },
                {
                  "fixed": "5.10.253"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5.15.200"
                },
                {
                  "fixed": "5.15.203"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.1.163"
                },
                {
                  "fixed": "6.1.167"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.6.124"
                },
                {
                  "fixed": "6.6.130"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.12.70"
                },
                {
                  "fixed": "6.12.78"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.18.10"
                },
                {
                  "fixed": "6.18.20"
                }
              ]
            }
          ],
          "versions": [
            "v5.10.252",
            "v5.10.251",
            "v5.10.250",
            "v5.15.202",
            "v5.15.201",
            "v5.15.200",
            "v6.1.166",
            "v6.1.165",
            "v6.1.164",
            "v6.1.163",
            "v6.6.129",
            "v6.6.128",
            "v6.6.127",
            "v6.6.126",
            "v6.6.125",
            "v6.6.124",
            "v6.12.77",
            "v6.12.76",
            "v6.12.75",
            "v6.12.74",
            "v6.12.73",
            "v6.12.72",
            "v6.12.71",
            "v6.12.70",
            "v6.18.19",
            "v6.18.18",
            "v6.18.17",
            "v6.18.16",
            "v6.18.15",
            "v6.18.14",
            "v6.18.13",
            "v6.18.12",
            "v6.18.11",
            "v6.18.10"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31552.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.10.253"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.203"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.167"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.130"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.78"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.20"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "6.19.10"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31552.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.176873330Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/12f9eef39e49716c763714bfda835a733d5f6dea",
        "https://git.kernel.org/stable/c/46c670ff1ff466e5eccb3940f726586473dc053c",
        "https://git.kernel.org/stable/c/980f793645540ca7a6318165cc12f49d5febeb99",
        "https://git.kernel.org/stable/c/a6dc74209462c4fe5a88718d2f3a5286886081c8",
        "https://git.kernel.org/stable/c/ceb46b40b021d21911ff8608ce4ed33c1264ad2f",
        "https://git.kernel.org/stable/c/cfa64e2b3717be1da7c4c1aff7268a009e8c1610",
        "https://git.kernel.org/stable/c/deb353d9bb009638b7762cae2d0b6e8fdbb41a69",
        "https://git.kernel.org/stable/c/f2c06d718a7b85cbc59ceaa2ff3f46b178ac709c",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31552.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-31552",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31552.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-31552",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 496959,
  "published_at": "2026-04-24T14:33:19.065+00:00"
}