Commit 8af596e
committed
wifi: mac80211: clear frame buffer to never leak stack
In disconnect paths paths, local frame buffers are used
to build deauthentication frames to send them over the
air and as notifications to userspace. Some internal
error paths (that, given no other bugs, cannot happen)
don't always initialize the buffers before sending them
to userspace, so in the presence of other bugs they can
leak stack content. Initialize the buffers to avoid the
possibility of this happening.
Suggested-by: Zhongqiu Han <quic_zhonhan@quicinc.com>
Link: https://patch.msgid.link/20250701072213.13004-2-johannes@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>1 parent c5fd399 commit 8af596e
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3934 | 3934 | | |
3935 | 3935 | | |
3936 | 3936 | | |
| 3937 | + | |
| 3938 | + | |
| 3939 | + | |
3937 | 3940 | | |
3938 | 3941 | | |
3939 | 3942 | | |
| |||
0 commit comments