diff options
| author | Avinash Bhatt <avinash.bhatt@intel.com> | 2026-05-11 20:36:31 +0300 |
|---|---|---|
| committer | Miri Korenblit <miriam.rachel.korenblit@intel.com> | 2026-05-26 15:17:10 +0300 |
| commit | 45e1a52f65b0c1553b6649f48cac37d453233cef (patch) | |
| tree | eae2d5e1903e8723d78d0fcb4cfb2b6a792922bb /tools/lib/python/kdoc | |
| parent | 06bc6f66ecab27a8717f2b2cd0d68ad800faf0c3 (diff) | |
wifi: iwlwifi: fix buffer overflow when firmware reports no channels
On parsing NVM in setting country code, if firmware reports 0 channels,
buffer is allocated for 0 rules but a dummy rule is added for cfg80211
compatibility, causing kmemdup() to read 128 bytes from a 32-byte buffer.
Allocate regd buffer for one rule addition when reported
channels are 0.
Signed-off-by: Avinash Bhatt <avinash.bhatt@intel.com>
Link: https://patch.msgid.link/20260511203428.e03cd831bc96.I8260d881eebe3e83d3208959b525c51af26414e6@changeid
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
