{"id":"CVE-2026-31394","state":"PUBLISHED","title":"mac80211: fix crash in ieee80211_chan_bw_change for AP_VLAN stations","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmac80211: fix crash in ieee80211_chan_bw_change for AP_VLAN stations\n\nieee80211_chan_bw_change() iterates all stations and accesses\nlink->reserved.oper via sta->sdata->link[link_id]. For stations on\nAP_VLAN interfaces (e.g. 4addr WDS clients), sta->sdata points to\nthe VLAN sdata, whose link never participates in chanctx reservations.\nThis leaves link->reserved.oper zero-initialized with chan == NULL,\ncausing a NULL pointer dereference in __ieee80211_sta_cap_rx_bw()\nwhen accessing chandef->chan->band during CSA.\n\nResolve the VLAN sdata to its parent AP sdata using get_bss_sdata()\nbefore accessing link data.\n\n[also change sta->sdata in ARRAY_SIZE even if it doesn't matter]","publishedAt":"2026-04-03T15:15:58.806Z","updatedAt":"2026-05-11T22:07:51.015Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b27512368591fc959768df1f7dacf2a96b1bd036","status":"affected","lessThan":"65c25b588994dd422fea73fa322de56e1ae4a33b","versionType":"git"},{"version":"b27512368591fc959768df1f7dacf2a96b1bd036","status":"affected","lessThan":"5a86d4e920d9783a198e39cf53f0e410fba5fbd6","versionType":"git"},{"version":"b27512368591fc959768df1f7dacf2a96b1bd036","status":"affected","lessThan":"3c6629e859a2211a1fbb4868f915413f80001ca5","versionType":"git"},{"version":"b27512368591fc959768df1f7dacf2a96b1bd036","status":"affected","lessThan":"672e5229e1ecfc2a3509b53adcb914d8b024a853","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/mac80211/chan.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.78","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.20","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.10","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/mac80211/chan.c"]}],"references":["https://git.kernel.org/stable/c/65c25b588994dd422fea73fa322de56e1ae4a33b","https://git.kernel.org/stable/c/5a86d4e920d9783a198e39cf53f0e410fba5fbd6","https://git.kernel.org/stable/c/3c6629e859a2211a1fbb4868f915413f80001ca5","https://git.kernel.org/stable/c/672e5229e1ecfc2a3509b53adcb914d8b024a853"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/31xxx/CVE-2026-31394.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-31394","state":"PUBLISHED","datePublished":"2026-04-03T15:15:58.806Z","dateUpdated":"2026-05-11T22:07:51.015Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-03-09T15:48:24.085Z"},"containers":{"cna":{"title":"mac80211: fix crash in ieee80211_chan_bw_change for AP_VLAN stations","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmac80211: fix crash in ieee80211_chan_bw_change for AP_VLAN stations\n\nieee80211_chan_bw_change() iterates all stations and accesses\nlink->reserved.oper via sta->sdata->link[link_id]. For stations on\nAP_VLAN interfaces (e.g. 4addr WDS clients), sta->sdata points to\nthe VLAN sdata, whose link never participates in chanctx reservations.\nThis leaves link->reserved.oper zero-initialized with chan == NULL,\ncausing a NULL pointer dereference in __ieee80211_sta_cap_rx_bw()\nwhen accessing chandef->chan->band during CSA.\n\nResolve the VLAN sdata to its parent AP sdata using get_bss_sdata()\nbefore accessing link data.\n\n[also change sta->sdata in ARRAY_SIZE even if it doesn't matter]"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b27512368591fc959768df1f7dacf2a96b1bd036","status":"affected","lessThan":"65c25b588994dd422fea73fa322de56e1ae4a33b","versionType":"git"},{"version":"b27512368591fc959768df1f7dacf2a96b1bd036","status":"affected","lessThan":"5a86d4e920d9783a198e39cf53f0e410fba5fbd6","versionType":"git"},{"version":"b27512368591fc959768df1f7dacf2a96b1bd036","status":"affected","lessThan":"3c6629e859a2211a1fbb4868f915413f80001ca5","versionType":"git"},{"version":"b27512368591fc959768df1f7dacf2a96b1bd036","status":"affected","lessThan":"672e5229e1ecfc2a3509b53adcb914d8b024a853","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/mac80211/chan.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.78","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.20","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.10","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/mac80211/chan.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/65c25b588994dd422fea73fa322de56e1ae4a33b"},{"url":"https://git.kernel.org/stable/c/5a86d4e920d9783a198e39cf53f0e410fba5fbd6"},{"url":"https://git.kernel.org/stable/c/3c6629e859a2211a1fbb4868f915413f80001ca5"},{"url":"https://git.kernel.org/stable/c/672e5229e1ecfc2a3509b53adcb914d8b024a853"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T22:07:51.015Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.12.78"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.18.20"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.19.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}