Page MenuHomeFreeBSD

net80211: proper ssid length check in setmlme_assoc_adhoc()
ClosedPublic

Authored by bz on Oct 6 2021, 6:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 20, 6:45 PM
Unknown Object (File)
Tue, May 6, 5:01 PM
Unknown Object (File)
Fri, Apr 25, 10:13 PM
Unknown Object (File)
Apr 16 2025, 7:50 PM
Unknown Object (File)
Apr 11 2025, 6:44 AM
Unknown Object (File)
Mar 22 2025, 12:45 PM
Unknown Object (File)
Mar 22 2025, 6:12 AM
Unknown Object (File)
Feb 1 2025, 4:33 AM
Subscribers

Details

Summary

A user supplied SSID length is used without proper checks in
setmlme_assoc_adhoc() which can lead to copies beyond the end
of the user supplied buffer.
The ssid is a fixed size array for the ioctl and the argument
to setmlme_assoc_adhoc().
In addition to an ssid_len check of 0 also error in case the
ssid_len is larger than the size of the ssid array to prevent
problems.

PR: 254737
Reported by: Tommaso (cutesmilee.research protonmail.com)
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable