CVE-2024-57997 (GCVE-0-2024-57997)
Vulnerability from cvelistv5
Published
2025-02-27 02:07
Modified
2026-08-05 11:47
Summary
In the Linux kernel, the following vulnerability has been resolved: wifi: wcn36xx: fix channel survey memory allocation size KASAN reported a memory allocation issue in wcn->chan_survey due to incorrect size calculation. This commit uses kcalloc to allocate memory for wcn->chan_survey, ensuring proper initialization and preventing the use of uninitialized values when there are no frames on the channel.
Impacted products
Vendor Product Version
Linux Linux Version: 29696e0aa413b9d56558731aae3806d7cff48d36
Version: 29696e0aa413b9d56558731aae3806d7cff48d36
Version: 29696e0aa413b9d56558731aae3806d7cff48d36
Version: 29696e0aa413b9d56558731aae3806d7cff48d36
Version: 29696e0aa413b9d56558731aae3806d7cff48d36
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 5.5,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "NONE",
              "integrityImpact": "NONE",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2024-57997",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-10-01T19:31:20.546897Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-908",
                "description": "CWE-908 Use of Uninitialized Resource",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-10-01T19:36:42.332Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2025-11-03T19:33:08.950Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/wireless/ath/wcn36xx/main.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "ae68efdff7a7a42ab251cac79d8713de6f0dbaa0",
              "status": "affected",
              "version": "29696e0aa413b9d56558731aae3806d7cff48d36",
              "versionType": "git"
            },
            {
              "lessThan": "e95f9c408ff8311f75eeabc8acf34a66670d8815",
              "status": "affected",
              "version": "29696e0aa413b9d56558731aae3806d7cff48d36",
              "versionType": "git"
            },
            {
              "lessThan": "64c4dcaeac1dc1030e47883b04a617ca9a4f164e",
              "status": "affected",
              "version": "29696e0aa413b9d56558731aae3806d7cff48d36",
              "versionType": "git"
            },
            {
              "lessThan": "34cd2817708aec51ef1a6c007e0d6d5342a025d7",
              "status": "affected",
              "version": "29696e0aa413b9d56558731aae3806d7cff48d36",
              "versionType": "git"
            },
            {
              "lessThan": "6200d947f050efdba4090dfefd8a01981363d954",
              "status": "affected",
              "version": "29696e0aa413b9d56558731aae3806d7cff48d36",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/wireless/ath/wcn36xx/main.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.18"
            },
            {
              "lessThan": "5.18",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.129",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.76",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.13",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.13.*",
              "status": "unaffected",
              "version": "6.13.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.14",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.129",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.76",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.13",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.13.2",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.14",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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-\u003echan_survey\ndue to incorrect size calculation.\nThis commit uses kcalloc to allocate memory for wcn-\u003echan_survey,\nensuring proper initialization and preventing the use of uninitialized\nvalues when there are no frames on the channel."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 8.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "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\u0027s 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\u0027s 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."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:47:16.997Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/ae68efdff7a7a42ab251cac79d8713de6f0dbaa0"
        },
        {
          "url": "https://git.kernel.org/stable/c/e95f9c408ff8311f75eeabc8acf34a66670d8815"
        },
        {
          "url": "https://git.kernel.org/stable/c/64c4dcaeac1dc1030e47883b04a617ca9a4f164e"
        },
        {
          "url": "https://git.kernel.org/stable/c/34cd2817708aec51ef1a6c007e0d6d5342a025d7"
        },
        {
          "url": "https://git.kernel.org/stable/c/6200d947f050efdba4090dfefd8a01981363d954"
        }
      ],
      "title": "wifi: wcn36xx: fix channel survey memory allocation size",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-57997",
    "datePublished": "2025-02-27T02:07:17.371Z",
    "dateReserved": "2025-02-27T02:04:28.915Z",
    "dateUpdated": "2026-08-05T11:47:16.997Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html\"}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2025-11-03T19:33:08.950Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 5.5, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\", \"integrityImpact\": \"NONE\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"NONE\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-57997\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-10-01T19:31:20.546897Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-908\", \"description\": \"CWE-908 Use of Uninitialized Resource\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-10-01T16:54:48.960Z\"}}], \"cna\": {\"title\": \"wifi: wcn36xx: fix channel survey memory allocation size\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 8.8, \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"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\u0027s 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\u0027s 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.\"}]}], \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"29696e0aa413b9d56558731aae3806d7cff48d36\", \"lessThan\": \"ae68efdff7a7a42ab251cac79d8713de6f0dbaa0\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"29696e0aa413b9d56558731aae3806d7cff48d36\", \"lessThan\": \"e95f9c408ff8311f75eeabc8acf34a66670d8815\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"29696e0aa413b9d56558731aae3806d7cff48d36\", \"lessThan\": \"64c4dcaeac1dc1030e47883b04a617ca9a4f164e\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"29696e0aa413b9d56558731aae3806d7cff48d36\", \"lessThan\": \"34cd2817708aec51ef1a6c007e0d6d5342a025d7\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"29696e0aa413b9d56558731aae3806d7cff48d36\", \"lessThan\": \"6200d947f050efdba4090dfefd8a01981363d954\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/net/wireless/ath/wcn36xx/main.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.18\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.18\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.1.129\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.76\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.12.13\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.12.*\"}, {\"status\": \"unaffected\", \"version\": \"6.13.2\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.13.*\"}, {\"status\": \"unaffected\", \"version\": \"6.14\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/net/wireless/ath/wcn36xx/main.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/ae68efdff7a7a42ab251cac79d8713de6f0dbaa0\"}, {\"url\": \"https://git.kernel.org/stable/c/e95f9c408ff8311f75eeabc8acf34a66670d8815\"}, {\"url\": \"https://git.kernel.org/stable/c/64c4dcaeac1dc1030e47883b04a617ca9a4f164e\"}, {\"url\": \"https://git.kernel.org/stable/c/34cd2817708aec51ef1a6c007e0d6d5342a025d7\"}, {\"url\": \"https://git.kernel.org/stable/c/6200d947f050efdba4090dfefd8a01981363d954\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"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-\u003echan_survey\\ndue to incorrect size calculation.\\nThis commit uses kcalloc to allocate memory for wcn-\u003echan_survey,\\nensuring proper initialization and preventing the use of uninitialized\\nvalues when there are no frames on the channel.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.1.129\", \"versionStartIncluding\": \"5.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.76\", \"versionStartIncluding\": \"5.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.12.13\", \"versionStartIncluding\": \"5.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.13.2\", \"versionStartIncluding\": \"5.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.14\", \"versionStartIncluding\": \"5.18\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-05T11:47:16.997Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-57997\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-08-05T11:47:16.997Z\", \"dateReserved\": \"2025-02-27T02:04:28.915Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2025-02-27T02:07:17.371Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…