CVE-2023-52531
Vulnerability Summary
Timeline
Description
In the Linux kernel, the following vulnerability has been resolved: wifi: iwlwifi: mvm: Fix a memory corruption issue A few lines above, space is kzalloc()'ed for: sizeof(struct iwl_nvm_data) + sizeof(struct ieee80211_channel) + sizeof(struct ieee80211_rate) 'mvm->nvm_data' is a 'struct iwl_nvm_data', so it is fine. At the end of this structure, there is the 'channels' flex array. Each element is of type 'struct ieee80211_channel'. So only 1 element is allocated in this array. When doing: mvm->nvm_data->bands[0].channels = mvm->nvm_data->channels; We point at the first element of the 'channels' flex array. So this is fine. However, when doing: mvm->nvm_data->bands[0].bitrates = (void *)((u8 *)mvm->nvm_data->channels + 1); because of the "(u8 *)" cast, we add only 1 to the address of the beginning of the flex array. It is likely that we want point at the 'struct ieee80211_rate' allocated just after. Remove the spurious casting so that the pointer arithmetic works as expected.
CVSS Metrics
- v3.1•HIGH•Score: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Trends
Current EPSS score: 0.24%• Percentile: 15%
Techniques & Countermeasures
- CWE-787•Out-of-bounds Write
The product writes data past the end, or before the beginning, of the intended buffer.
Affected Systems
- debian•linux
all | < 6.1.64-1 | < 6.5.8-1 | < 6.5.8-1
- ubuntu•linux
all | < 4.4.0-261.295 | < 4.15.0-231.243 | < 5.4.0-200.220 | < 5.15.0-94.104
- ubuntu•linux-allwinner-5.19
all
- ubuntu•linux-aws
< 4.4.0-1138.144 | < 4.4.0-1176.191 | < 4.15.0-1175.188 | < 5.4.0-1135.145 | < 5.15.0-1053.58
- ubuntu•linux-aws-5.0
all
- ubuntu•linux-aws-5.11
all
- ubuntu•linux-aws-5.13
all
- ubuntu•linux-aws-5.15
< 5.15.0-1053.58~20.04.1
- ubuntu•linux-aws-5.19
all
- ubuntu•linux-aws-5.3
all
- ubuntu•linux-aws-5.4
< 5.4.0-1135.145~18.04.1
- ubuntu•linux-aws-5.8
all
- ubuntu•linux-aws-6.2
all
- ubuntu•linux-aws-6.5
all
- ubuntu•linux-aws-fips
< 4.15.0-2113.119 | all | < 5.4.0-1135.145+fips1 | < 5.15.0-1053.58+fips1
- ubuntu•linux-aws-hwe
< 4.15.0-1175.188~16.04.1
- ubuntu•linux-azure
< 4.15.0-1183.198~14.04.1 | < 4.15.0-1183.198~16.04.1 | all | < 5.4.0-1140.147 | < 5.15.0-1056.64
- ubuntu•linux-azure-4.15
< 4.15.0-1183.198
- ubuntu•linux-azure-5.11
all
- ubuntu•linux-azure-5.13
all
- ubuntu•linux-azure-5.15
< 5.15.0-1056.64~20.04.1
- ubuntu•linux-azure-5.19
all
- ubuntu•linux-azure-5.3
all
- ubuntu•linux-azure-5.4
< 5.4.0-1140.147~18.04.1
- ubuntu•linux-azure-5.8
all
- ubuntu•linux-azure-6.2
all
- ubuntu•linux-azure-6.5
all
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fde
all | < 5.15.0-1056.64.1 | all
- ubuntu•linux-azure-fde-5.19
all
- ubuntu•linux-azure-fde-6.2
all
- ubuntu•linux-azure-fde-6.8
all
- ubuntu•linux-azure-fips
< 4.15.0-2092.98 | all | < 5.4.0-1140.147+fips1
- ubuntu•linux-bluefield
all | < 5.4.0-1095.102 | < 5.15.0-1035.37
- ubuntu•linux-fips
< 4.4.0-1107.114 | all | < 4.15.0-1129.140 | < 5.4.0-1109.119 | < 5.15.0-94.104+fips1
- ubuntu•linux-gcp
< 4.15.0-1168.185~16.04.1 | all | < 5.4.0-1139.148 | < 5.15.0-1051.59
- ubuntu•linux-gcp-4.15
< 4.15.0-1168.185
- ubuntu•linux-gcp-5.11
all
- ubuntu•linux-gcp-5.13
all
- ubuntu•linux-gcp-5.15
< 5.15.0-1051.59~20.04.1
- ubuntu•linux-gcp-5.19
all
- ubuntu•linux-gcp-5.3
all
- ubuntu•linux-gcp-5.4
< 5.4.0-1139.148~18.04.1
- ubuntu•linux-gcp-5.8
all
- ubuntu•linux-gcp-6.2
all
- ubuntu•linux-gcp-6.5
all
- ubuntu•linux-gcp-fips
< 4.15.0-2076.81 | all | < 5.4.0-1139.148+fips1 | < 5.15.0-1055.63+fips2
- ubuntu•linux-gke
all | < 5.15.0-1050.55
- ubuntu•linux-gke-4.15
all
- ubuntu•linux-gke-5.15
all
Showing first 50 affected entries in server-rendered view.
References (18)
- https://git.kernel.org/stable/c/7c8faa31080342aec4903c9acb20caf82fcca1ef
- https://git.kernel.org/stable/c/6b3223449c959a8be94a1f042288059e40fcccb0
- https://git.kernel.org/stable/c/f06cdd8d4ba5252986f51f80cc30263636397128
- https://git.kernel.org/stable/c/8ba438ef3cacc4808a63ed0ce24d4f0942cfe55d
- https://ubuntu.com/security/CVE-2023-52531
- https://git.kernel.org/linus/8ba438ef3cacc4808a63ed0ce24d4f0942cfe55d
- https://www.cve.org/CVERecord?id=CVE-2023-52531
- https://ubuntu.com/security/notices/USN-7088-1
- https://ubuntu.com/security/notices/USN-7088-2
- https://ubuntu.com/security/notices/USN-7088-3
- https://ubuntu.com/security/notices/USN-7088-4
- https://ubuntu.com/security/notices/USN-7088-5
- https://ubuntu.com/security/notices/USN-7121-1
- https://ubuntu.com/security/notices/USN-7119-1
- https://ubuntu.com/security/notices/USN-7121-2
- https://ubuntu.com/security/notices/USN-7121-3
- https://ubuntu.com/security/notices/USN-7148-1
- https://security-tracker.debian.org/tracker/CVE-2023-52531