{"id":"CVE-2026-139520","state":"PUBLISHED","title":"wifi: nxpwifi: validate variable IE lengths in beacon parser","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: nxpwifi: validate variable IE lengths in beacon parser\n\nnxpwifi_update_bss_desc_with_ie() stores pointers to the HT, VHT and HE\ncapability and operation elements, to the operating mode notification\nand to the 20/40 BSS coexistence element, taken from a beacon or probe\nresponse, without checking that each element is long enough for the\nstructure the driver later dereferences it as.\n\nbss_desc->beacon_buf is a tight kmemdup() of the on-air elements, so a\ntruncated element leaves the stored pointer short of the structure and\nthe consumers read past the end of that allocation at association time.\nSome of those bytes are copied into the association request, so a rogue\naccess point in range can both trigger the read and receive the result.\n\nReject the frame with -EINVAL when any of these elements is shorter than\nthe structure read from it, as the FH, DS and CF parameter set cases in\nthe same parser already do.\n\nThe extended capabilities element has no structure size to check\nagainst, so nxpwifi_is_ap_11ax_twt_supported()'s read of\nbcn_ext_cap->data[9] is bounded at that consumer instead.","publishedAt":"2026-11-30T13:35:30.594Z","updatedAt":"2026-11-30T13:35:30.594Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"73b01e57ed3e3d6102c0cbcb21f62086c5429437","status":"affected","lessThan":"8531d24a6f886b78e2dcf93d3060c6436c04cc62","versionType":"git"},{"version":"73b01e57ed3e3d6102c0cbcb21f62086c5429437","status":"affected","lessThan":"52c9568fa2eda80d02842961e7ba01e07eb01883","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/nxp/nxpwifi/11ax.c","drivers/net/wireless/nxp/nxpwifi/scan.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.3","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/nxp/nxpwifi/11ax.c","drivers/net/wireless/nxp/nxpwifi/scan.c"]}],"references":["https://git.kernel.org/stable/c/8531d24a6f886b78e2dcf93d3060c6436c04cc62","https://git.kernel.org/stable/c/52c9568fa2eda80d02842961e7ba01e07eb01883"],"weaknesses":[],"ingestedAt":"2026-11-30T13:50:04.417Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139520.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139520","state":"PUBLISHED","datePublished":"2026-11-30T13:35:30.594Z","dateUpdated":"2026-11-30T13:35:30.594Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.938Z"},"containers":{"cna":{"title":"wifi: nxpwifi: validate variable IE lengths in beacon parser","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: nxpwifi: validate variable IE lengths in beacon parser\n\nnxpwifi_update_bss_desc_with_ie() stores pointers to the HT, VHT and HE\ncapability and operation elements, to the operating mode notification\nand to the 20/40 BSS coexistence element, taken from a beacon or probe\nresponse, without checking that each element is long enough for the\nstructure the driver later dereferences it as.\n\nbss_desc->beacon_buf is a tight kmemdup() of the on-air elements, so a\ntruncated element leaves the stored pointer short of the structure and\nthe consumers read past the end of that allocation at association time.\nSome of those bytes are copied into the association request, so a rogue\naccess point in range can both trigger the read and receive the result.\n\nReject the frame with -EINVAL when any of these elements is shorter than\nthe structure read from it, as the FH, DS and CF parameter set cases in\nthe same parser already do.\n\nThe extended capabilities element has no structure size to check\nagainst, so nxpwifi_is_ap_11ax_twt_supported()'s read of\nbcn_ext_cap->data[9] is bounded at that consumer instead."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"73b01e57ed3e3d6102c0cbcb21f62086c5429437","status":"affected","lessThan":"8531d24a6f886b78e2dcf93d3060c6436c04cc62","versionType":"git"},{"version":"73b01e57ed3e3d6102c0cbcb21f62086c5429437","status":"affected","lessThan":"52c9568fa2eda80d02842961e7ba01e07eb01883","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/nxp/nxpwifi/11ax.c","drivers/net/wireless/nxp/nxpwifi/scan.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.3","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/nxp/nxpwifi/11ax.c","drivers/net/wireless/nxp/nxpwifi/scan.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8531d24a6f886b78e2dcf93d3060c6436c04cc62"},{"url":"https://git.kernel.org/stable/c/52c9568fa2eda80d02842961e7ba01e07eb01883"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:35:30.594Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}