{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2024-57997",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2024-57997"
  ],
  "published": "2025-02-27T02:06:37Z",
  "summary": "wifi: wcn36xx: fix channel survey memory allocation size",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: wcn36xx: fix channel survey memory allocation size\n\nKASAN reported a memory allocation issue in wcn->chan_survey\ndue to incorrect size calculation.\nThis commit uses kcalloc to allocate memory for wcn->chan_survey,\nensuring proper initialization and preventing the use of uninitialized\nvalues when there are no frames on the channel.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.129",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2024-57997"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/ae68efdff7a7a42ab251cac79d8713de6f0dbaa0"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/e95f9c408ff8311f75eeabc8acf34a66670d8815"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/64c4dcaeac1dc1030e47883b04a617ca9a4f164e"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/34cd2817708aec51ef1a6c007e0d6d5342a025d7"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/6200d947f050efdba4090dfefd8a01981363d954"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-05T11:52:36Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 8.8,
      "cvss_v3_severity": "High",
      "scenario": "AV:A - The out-of-bounds write is driven by `wcn36xx_rx_skb()` processing received 802.11 frames, so an attacker only needs to transmit/beacon within radio range of the victim's wcn36xx radio. This matches the WiFi frame-injection = Adjacent guidance.\nAC:L - The attacker chooses the channel (non-DFS 5 GHz UNII-3 channels 149-165 map to the furthest out-of-bounds offsets), and client devices scan those channels automatically and repeatedly; the uninitialized-memory disclosure via survey dump is deterministic on every boot.\nPR:N - `wcn36xx_update_survey()` runs on every frame at RX time, before mac80211 authentication/association, so an unauthenticated attacker with no credentials on any network triggers it. The corresponding read path is exposed through `NL80211_CMD_GET_SURVEY`, which carries no admin-permission flag and is dumpable by any unprivileged local user.\nUI:N - No victim action is required \u2014 wpa_supplicant/NetworkManager background scanning hops through the affected 5 GHz channels automatically, and a device merely operating on such a channel writes out of bounds on every received frame.\nS:U - The heap corruption and information disclosure are confined to the kernel's own memory and security authority, with no crossing into a hypervisor, IOMMU, or other separate security scope.\nC:H - `wcn36xx_get_survey()` reads up to 38 bytes past the 39-byte allocation and returns the values to userspace via the unprivileged nl80211 survey dump, and the missing zeroing leaks uninitialized kernel heap contents; the out-of-bounds access also provides a lever for broader disclosure.\nI:H - Received frames on high 5 GHz channels write attacker-influenced RSSI/SNR bytes at offsets 64-77 of a 39-byte allocation, corrupting the adjacent slab object \u2014 a heap out-of-bounds write, which scores High per the guidance.\nA:H - Corrupting neighbouring heap objects (and tripping KASAN/redzone or slab metadata checks) causes kernel oops or panic, and the write is triggerable repeatedly by any nearby unauthenticated transmitter."
    }
  }
}
