CVE-2024-47714 (GCVE-0-2024-47714)
Vulnerability from cvelistv5
Published
2024-10-21 11:53
Modified
2026-08-05 11:39
Summary
In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7996: use hweight16 to get correct tx antenna The chainmask is u16 so using hweight8 cannot get correct tx_ant. Without this patch, the tx_ant of band 2 would be -1 and lead to the following issue: BUG: KASAN: stack-out-of-bounds in mt7996_mcu_add_sta+0x12e0/0x16e0 [mt7996e]
Impacted products
Vendor Product Version
Linux Linux Version: 98686cd21624c75a043e96812beadddf4f6f48e5
Version: 98686cd21624c75a043e96812beadddf4f6f48e5
Version: 98686cd21624c75a043e96812beadddf4f6f48e5
Version: 98686cd21624c75a043e96812beadddf4f6f48e5
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-47714",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-10-21T13:02:52.416293Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-10-21T13:04:18.545Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/wireless/mediatek/mt76/mt7996/mcu.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "50d87e3b70980abc090676b6b4703fcbd96221f9",
              "status": "affected",
              "version": "98686cd21624c75a043e96812beadddf4f6f48e5",
              "versionType": "git"
            },
            {
              "lessThan": "8f51fc8a9e2fd96363d8ec3f4ee4b78dd64754e3",
              "status": "affected",
              "version": "98686cd21624c75a043e96812beadddf4f6f48e5",
              "versionType": "git"
            },
            {
              "lessThan": "33954930870c18ec549e4bca0eeff43e252cb740",
              "status": "affected",
              "version": "98686cd21624c75a043e96812beadddf4f6f48e5",
              "versionType": "git"
            },
            {
              "lessThan": "f98c3de92bb05dac4a4969df8a4595ed380b4604",
              "status": "affected",
              "version": "98686cd21624c75a043e96812beadddf4f6f48e5",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/wireless/mediatek/mt76/mt7996/mcu.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.2"
            },
            {
              "lessThan": "6.2",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.54",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.10.*",
              "status": "unaffected",
              "version": "6.10.13",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.11.*",
              "status": "unaffected",
              "version": "6.11.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.12",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.54",
                  "versionStartIncluding": "6.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.10.13",
                  "versionStartIncluding": "6.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.11.2",
                  "versionStartIncluding": "6.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12",
                  "versionStartIncluding": "6.2",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mt76: mt7996: use hweight16 to get correct tx antenna\n\nThe chainmask is u16 so using hweight8 cannot get correct tx_ant.\nWithout this patch, the tx_ant of band 2 would be -1 and lead to the\nfollowing issue:\nBUG: KASAN: stack-out-of-bounds in mt7996_mcu_add_sta+0x12e0/0x16e0 [mt7996e]"
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.6,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:A - The vulnerable path is entered from mac80211 station insertion driven by an over-the-air association from a nearby 802.11 peer, with the trigger conditions (EHT/HE/VHT beamforming capability bits, bandwidth, MCS/NSS fields) taken straight from the attacker\u0027s association request. This requires radio proximity to the AP\u0027s 6 GHz band rather than routable network access, which is Adjacent per the WiFi frame-injection guidance.\nAC:L - On the affected hardware the miscount is deterministic \u2014 band 2\u0027s chainmask sits entirely above bit 7, so hweight8() always returns 0 and tx_ant is always -1 \u2014 and the attacker simply associates while advertising SU-beamformee support to reach matrix[-1][ncol] every time. There is no race, no memory-layout requirement, and the attempt can be repeated indefinitely by re-associating.\nPR:N - In AP mode hostapd creates the station object at association, before the 4-way handshake or any credential validation, so mt7996_mac_sta_add() \u2192 mt7996_mcu_sta_bfer_tlv() runs for an attacker holding no key and no account on the target. Open and mesh/IBSS deployments have no authentication gate at all.\nUI:N - The attacker performs the association itself and the AP\u0027s kernel processes it automatically; no action by any user or administrator on the victim system is needed.\nS:U - The out-of-bounds read and the resulting bogus firmware-command fields stay within the kernel driver\u0027s own security authority, crossing no VM, IOMMU, or sandbox boundary.\nC:L - matrix[-1][ncol] reads adjacent kernel stack memory outside the const array, exposing stack contents that are then written into the sta_rec_bf TLV and transmitted to the WiFi firmware. The read is strictly bounded to the four bytes immediately preceding a 16-byte object at a fixed negative offset with no attacker-directed address and no channel returning the data over the air, so it is a small bounded leak rather than arbitrary read.\nI:L - The uninitialized out-of-bounds byte and the underflowed antenna count (ibf_nrow = 0xFF, mem_20m/mem_total derived from stray stack data) are programmed into the chip\u0027s beamforming profile via the MCU STA_REC_UPDATE command, a remotely-influenced corruption of device configuration state. No kernel memory is written out of bounds and no control-flow influence is available, so the modification is limited rather than arbitrary.\nA:H - The condition is a KASAN-detected stack-out-of-bounds in mt7996_mcu_add_sta(), which oopses and panics outright on kernels built with KASAN plus panic_on_warn or kasan.fault=panic \u2014 common in vendor and hardened builds. Independently, feeding out-of-range beamforming memory parameters and a 0xFF antenna count to the WiFi MCU can wedge the firmware and take the radio down, and the attacker can retrigger it on every association."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:39:40.668Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/50d87e3b70980abc090676b6b4703fcbd96221f9"
        },
        {
          "url": "https://git.kernel.org/stable/c/8f51fc8a9e2fd96363d8ec3f4ee4b78dd64754e3"
        },
        {
          "url": "https://git.kernel.org/stable/c/33954930870c18ec549e4bca0eeff43e252cb740"
        },
        {
          "url": "https://git.kernel.org/stable/c/f98c3de92bb05dac4a4969df8a4595ed380b4604"
        }
      ],
      "title": "wifi: mt76: mt7996: use hweight16 to get correct tx antenna",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-47714",
    "datePublished": "2024-10-21T11:53:46.090Z",
    "dateReserved": "2024-09-30T16:00:12.948Z",
    "dateUpdated": "2026-08-05T11:39:40.668Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-47714\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-21T13:02:52.416293Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-21T13:02:55.538Z\"}}], \"cna\": {\"title\": \"wifi: mt76: mt7996: use hweight16 to get correct tx antenna\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 7.6, \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H\"}}], \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"98686cd21624c75a043e96812beadddf4f6f48e5\", \"lessThan\": \"50d87e3b70980abc090676b6b4703fcbd96221f9\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"98686cd21624c75a043e96812beadddf4f6f48e5\", \"lessThan\": \"8f51fc8a9e2fd96363d8ec3f4ee4b78dd64754e3\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"98686cd21624c75a043e96812beadddf4f6f48e5\", \"lessThan\": \"33954930870c18ec549e4bca0eeff43e252cb740\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"98686cd21624c75a043e96812beadddf4f6f48e5\", \"lessThan\": \"f98c3de92bb05dac4a4969df8a4595ed380b4604\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/net/wireless/mediatek/mt76/mt7996/mcu.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"6.2\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"6.2\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.6.54\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.10.13\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.10.*\"}, {\"status\": \"unaffected\", \"version\": \"6.11.2\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.11.*\"}, {\"status\": \"unaffected\", \"version\": \"6.12\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/net/wireless/mediatek/mt76/mt7996/mcu.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/50d87e3b70980abc090676b6b4703fcbd96221f9\"}, {\"url\": \"https://git.kernel.org/stable/c/8f51fc8a9e2fd96363d8ec3f4ee4b78dd64754e3\"}, {\"url\": \"https://git.kernel.org/stable/c/33954930870c18ec549e4bca0eeff43e252cb740\"}, {\"url\": \"https://git.kernel.org/stable/c/f98c3de92bb05dac4a4969df8a4595ed380b4604\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nwifi: mt76: mt7996: use hweight16 to get correct tx antenna\\n\\nThe chainmask is u16 so using hweight8 cannot get correct tx_ant.\\nWithout this patch, the tx_ant of band 2 would be -1 and lead to the\\nfollowing issue:\\nBUG: KASAN: stack-out-of-bounds in mt7996_mcu_add_sta+0x12e0/0x16e0 [mt7996e]\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.54\", \"versionStartIncluding\": \"6.2\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.10.13\", \"versionStartIncluding\": \"6.2\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.11.2\", \"versionStartIncluding\": \"6.2\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.12\", \"versionStartIncluding\": \"6.2\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-04T09:32:56.603Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-47714\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-08-04T09:32:56.603Z\", \"dateReserved\": \"2024-09-30T16:00:12.948Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-10-21T11:53:46.090Z\", \"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…