{"id":"CVE-2026-74488","aliases":["CVE-2026-74488"],"related":[],"kind":"vulnerability","state":"published","title":"wifi: mwifiex: use the subframe length when parsing A-MSDU TDLS frames","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mwifiex: use the subframe length when parsing A-MSDU TDLS frames\n\nmwifiex_11n_dispatch_amsdu_pkt() splits an A-MSDU with\nieee80211_amsdu_to_8023s() and walks the resulting subframes. For each\nsubframe it passes the subframe data pointer to\nmwifiex_process_tdls_action_frame(), but pairs it with skb->len, the\nlength of the A-MSDU parent, instead of rx_skb->len:\n\n\trx_skb = __skb_dequeue(&list);\n\trx_hdr = (struct rx_packet_hdr *)rx_skb->data;\n\tif (ISSUPP_TDLS_ENABLED(priv->adapter->fw_cap_info) &&\n\t    ntohs(rx_hdr->eth803_hdr.h_proto) == ETH_P_TDLS) {\n\t\tmwifiex_process_tdls_action_frame(priv, (u8 *)rx_hdr,\n\t\t\t\t\t\t  skb->len);\n\t}\n\nThe parent is not a valid description of that buffer, and may not be\nvalid memory at all. ieee80211_amsdu_to_8023s() ends with\n\n\tif (!reuse_skb)\n\t\tdev_kfree_skb(skb);\n\nand it only sets reuse_skb when the parent is linear, is not a\nhead_frag, and is being consumed as the *last* subframe. So when the\nparent does not qualify for reuse it has already been freed, and the\nread of skb->len is a use-after-free. When it is reused, skb->len is\nthe length of the last subframe, applied to every earlier subframe,\nwhich over-states the buffer whenever an earlier subframe is shorter.\n\nThe callee cannot absorb a wrong length, because it derives its own\nceiling from the value it is given. Each frame type computes\n\n\ties_len = len - sizeof(struct ethhdr) - TDLS_*_FIX_LEN;\n\nand the element walk is then bounded entirely against that ceiling,\n\n\tfor (end = pos + ies_len; pos + 1 < end; pos += 2 + pos[1]) {\n\t\tu8 ie_len = pos[1];\n\n\t\tif (pos + 2 + ie_len > end)\n\t\t\tbreak;\n\nso a too-large len moves end past the end of the subframe and the walk\nreads and copies beyond it. The A-MSDU layout is chosen by the sender,\nwhich makes the difference between the last subframe and a shorter\nearlier one remotely selectable. Reaching this requires TDLS support in\nfirmware and the TDLS ethertype on the subframe.\n\nThe other caller, mwifiex_process_rx_packet(), is correct: it passes a\npointer and a length that describe the same region of the RX buffer.\n\nPass rx_skb->len, the length of the subframe actually being parsed.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mwifiex: use the subframe length when parsing A-MSDU TDLS frames\n\nmwifiex_11n_dispatch_amsdu_pkt() splits an A-MSDU with\nieee80211_amsdu_to_8023s() and walks the resulting subframes. For each\nsubframe it passes the subframe data pointer to\nmwifiex_process_tdls_action_frame(), but pairs it with skb->len, the\nlength of the A-MSDU parent, instead of rx_skb->len:\n\n\trx_skb = __skb_dequeue(&list);\n\trx_hdr = (struct rx_packet_hdr *)rx_skb->data;\n\tif (ISSUPP_TDLS_ENABLED(priv->adapter->fw_cap_info) &&\n\t    ntohs(rx_hdr->eth803_hdr.h_proto) == ETH_P_TDLS) {\n\t\tmwifiex_process_tdls_action_frame(priv, (u8 *)rx_hdr,\n\t\t\t\t\t\t  skb->len);\n\t}\n\nThe parent is not a valid description of that buffer, and may not be\nvalid memory at all. ieee80211_amsdu_to_8023s() ends with\n\n\tif (!reuse_skb)\n\t\tdev_kfree_skb(skb);\n\nand it only sets reuse_skb when the parent is linear, is not a\nhead_frag, and is being consumed as the *last* subframe. So when the\nparent does not qualify for reuse it has already been freed, and the\nread of skb->len is a use-after-free. When it is reused, skb->len is\nthe length of the last subframe, applied to every earlier subframe,\nwhich over-states the buffer whenever an earlier subframe is shorter.\n\nThe callee cannot absorb a wrong length, because it derives its own\nceiling from the value it is given. Each frame type computes\n\n\ties_len = len - sizeof(struct ethhdr) - TDLS_*_FIX_LEN;\n\nand the element walk is then bounded entirely against that ceiling,\n\n\tfor (end = pos + ies_len; pos + 1 < end; pos += 2 + pos[1]) {\n\t\tu8 ie_len = pos[1];\n\n\t\tif (pos + 2 + ie_len > end)\n\t\t\tbreak;\n\nso a too-large len moves end past the end of the subframe and the walk\nreads and copies beyond it. The A-MSDU layout is chosen by the sender,\nwhich makes the difference between the last subframe and a shorter\nearlier one remotely selectable. Reaching this requires TDLS support in\nfirmware and the TDLS ethertype on the subframe.\n\nThe other caller, mwifiex_process_rx_packet(), is correct: it passes a\npointer and a length that describe the same region of the RX buffer.\n\nPass rx_skb->len, the length of the subframe actually being parsed.","source":"cvelist"}],"published":"2026-08-15T12:27:18.867Z","modified":"2026-10-16T20:17:31.617Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"776f742040ca5eb6242c60f29ac73d5752a5b621","fixed":"707664027bb9307f7268eda403af7c4ccd9b8644","status":"affected"},{"type":"git","introduced":"776f742040ca5eb6242c60f29ac73d5752a5b621","fixed":"3b02275833a0d3e6583627995d614fa99bdf364f","status":"affected"},{"type":"git","introduced":"776f742040ca5eb6242c60f29ac73d5752a5b621","fixed":"a1f0f7dc7eb15754e6931b433edb7beb754c996a","status":"affected"},{"type":"git","introduced":"776f742040ca5eb6242c60f29ac73d5752a5b621","fixed":"25e5a3fe4f15e30f74eca42cbf3bcc3a3fbeda79","status":"affected"},{"type":"git","introduced":"776f742040ca5eb6242c60f29ac73d5752a5b621","fixed":"ece2ebb34247d573142617dfc534a9dc11ba59be","status":"affected"},{"type":"git","introduced":"776f742040ca5eb6242c60f29ac73d5752a5b621","fixed":"c9dcfe6b8b71369e1d732e2ff622c3696a2f032c","status":"affected"},{"type":"git","introduced":"776f742040ca5eb6242c60f29ac73d5752a5b621","fixed":"5a21ab03829cb6d2682c127f22e2b9cd63b4393f","status":"affected"},{"type":"git","introduced":"776f742040ca5eb6242c60f29ac73d5752a5b621","fixed":"99a948382af8a225e2d5e54a7052158cd6281cc6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.5","status":"unaffected"},{"type":"semver","introduced":"5.10.265","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.216","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.183","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.151","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.103","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.44","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.8","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/707664027bb9307f7268eda403af7c4ccd9b8644","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3b02275833a0d3e6583627995d614fa99bdf364f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a1f0f7dc7eb15754e6931b433edb7beb754c996a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/25e5a3fe4f15e30f74eca42cbf3bcc3a3fbeda79","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ece2ebb34247d573142617dfc534a9dc11ba59be","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c9dcfe6b8b71369e1d732e2ff622c3696a2f032c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5a21ab03829cb6d2682c127f22e2b9cd63b4393f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/99a948382af8a225e2d5e54a7052158cd6281cc6","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T18:57:58.234Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74488","url":"https://www.cve.org/CVERecord?id=CVE-2026-74488","licence":"CVE Terms of Use","modified":"2026-10-16T19:05:49.470Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74488","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74488","licence":"Public domain","modified":"2026-10-16T20:17:31.617Z"}],"updatedAt":"2026-11-25T22:59:33.232Z","epss":{"score":0.00255,"percentile":0.18225,"date":"2026-12-01T12:00:22.000Z"}}