{"id":"CVE-2023-52531","published":"2024-03-02T21:52:35Z","modified":"2026-05-11T19:29:06Z","title":"wifi: iwlwifi: mvm: Fix a memory corruption issue","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: iwlwifi: mvm: Fix a memory corruption issue\n\nA few lines above, space is kzalloc()'ed for:\n\tsizeof(struct iwl_nvm_data) +\n\tsizeof(struct ieee80211_channel) +\n\tsizeof(struct ieee80211_rate)\n\n'mvm->nvm_data' is a 'struct iwl_nvm_data', so it is fine.\n\nAt the end of this structure, there is the 'channels' flex array.\nEach element is of type 'struct ieee80211_channel'.\nSo only 1 element is allocated in this array.\n\nWhen doing:\n  mvm->nvm_data->bands[0].channels = mvm->nvm_data->channels;\nWe point at the first element of the 'channels' flex array.\nSo this is fine.\n\nHowever, when doing:\n  mvm->nvm_data->bands[0].bitrates =\n\t\t\t(void *)((u8 *)mvm->nvm_data->channels + 1);\nbecause of the \"(u8 *)\" cast, we add only 1 to the address of the beginning\nof the flex array.\n\nIt is likely that we want point at the 'struct ieee80211_rate' allocated\njust after.\n\nRemove the spurious casting so that the pointer arithmetic works as\nexpected.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00326,"percentile":0.18106,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/7c8faa31080342aec4903c9acb20caf82fcca1ef","tags":[]},{"url":"https://git.kernel.org/stable/c/6b3223449c959a8be94a1f042288059e40fcccb0","tags":[]},{"url":"https://git.kernel.org/stable/c/f06cdd8d4ba5252986f51f80cc30263636397128","tags":[]},{"url":"https://git.kernel.org/stable/c/8ba438ef3cacc4808a63ed0ce24d4f0942cfe55d","tags":[]}],"priority":{"score":3.6,"factors":[{"name":"EPSS percentile","points":3.62}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 8ca151b568b67a7b72dcfc6ee6ea7c107ddd795c, < 7c8faa31080342aec4903c9acb20caf82fcca1ef",">= 8ca151b568b67a7b72dcfc6ee6ea7c107ddd795c, < 6b3223449c959a8be94a1f042288059e40fcccb0",">= 8ca151b568b67a7b72dcfc6ee6ea7c107ddd795c, < f06cdd8d4ba5252986f51f80cc30263636397128",">= 8ca151b568b67a7b72dcfc6ee6ea7c107ddd795c, < 8ba438ef3cacc4808a63ed0ce24d4f0942cfe55d"]},{"vendor":"Linux","product":"Linux","versions":["3.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-03-04T19:38:20.613089Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-57156","exploited":false,"provenance":"source"}}