{"id":"CVE-2023-52531","aliases":["CVE-2023-52531"],"related":[],"kind":"vulnerability","state":"published","title":"wifi: iwlwifi: mvm: Fix a memory corruption issue","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: wifi: iwlwifi: mvm: soluciona un problema de corrupción de memoria Unas pocas líneas arriba, se kzalloc()'ed espacio para: sizeof(struct iwl_nvm_data) + sizeof(struct ieee80211_channel) + sizeof (struct ieee80211_rate) 'mvm-&gt;nvm_data' es una 'struct iwl_nvm_data', por lo que está bien. Al final de esta estructura, se encuentra la matriz flexible de 'canales'. Cada elemento es de tipo 'struct ieee80211_channel'. Entonces solo se asigna 1 elemento en esta matriz. Al hacer: mvm-&gt;nvm_data-&gt;bands[0].channels = mvm-&gt;nvm_data-&gt;channels; Apuntamos al primer elemento de la matriz flexible 'canales'. Entonces esto está bien. Sin embargo, al hacer: mvm-&gt;nvm_data-&gt;bands[0].bitrates = (void *)((u8 *)mvm-&gt;nvm_data-&gt;channels + 1); debido a la conversión \"(u8 *)\", agregamos solo 1 a la dirección del comienzo de la matriz flexible. Es probable que queramos apuntar a la 'estructura ieee80211_rate' asignada justo después. Retire la fundición espuria para que la aritmética del puntero funcione como se esperaba.","source":"nvd"}],"published":"2024-03-02T21:52:35.664Z","modified":"2026-06-17T06:42:56.930Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"8ca151b568b67a7b72dcfc6ee6ea7c107ddd795c","fixed":"7c8faa31080342aec4903c9acb20caf82fcca1ef","status":"affected"},{"type":"git","introduced":"8ca151b568b67a7b72dcfc6ee6ea7c107ddd795c","fixed":"6b3223449c959a8be94a1f042288059e40fcccb0","status":"affected"},{"type":"git","introduced":"8ca151b568b67a7b72dcfc6ee6ea7c107ddd795c","fixed":"f06cdd8d4ba5252986f51f80cc30263636397128","status":"affected"},{"type":"git","introduced":"8ca151b568b67a7b72dcfc6ee6ea7c107ddd795c","fixed":"8ba438ef3cacc4808a63ed0ce24d4f0942cfe55d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.9","status":"unaffected"},{"type":"semver","introduced":"5.15.135","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.57","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.5.7","lastAffected":"6.5.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.6","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.9","fixed":"5.15.135"},{"status":"affected","introduced":"5.16","fixed":"6.1.57"},{"status":"affected","introduced":"6.2","fixed":"6.5.7"},{"status":"affected","version":"6.6"},{"status":"affected","version":"6.6"},{"status":"affected","version":"6.6"},{"status":"affected","version":"6.6"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/7c8faa31080342aec4903c9acb20caf82fcca1ef","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6b3223449c959a8be94a1f042288059e40fcccb0","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f06cdd8d4ba5252986f51f80cc30263636397128","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8ba438ef3cacc4808a63ed0ce24d4f0942cfe55d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-03-04T19:38:20.613Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-52531","url":"https://www.cve.org/CVERecord?id=CVE-2023-52531","licence":"CVE Terms of Use","modified":"2026-05-11T19:29:06.123Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-52531","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52531","licence":"Public domain","modified":"2026-06-17T06:42:56.930Z"}],"updatedAt":"2026-11-25T22:58:33.168Z","epss":{"score":0.00237,"percentile":0.15727,"date":"2026-12-01T12:00:22.000Z"}}