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
F156509962: D32341.diff
Thu, May 14, 6:40 AM
Unknown Object (File)
Wed, May 13, 4:14 PM
Unknown Object (File)
Tue, May 12, 11:47 PM
Unknown Object (File)
Tue, May 12, 11:47 PM
Unknown Object (File)
Tue, May 12, 11:46 PM
Unknown Object (File)
Wed, Apr 29, 2:05 AM
Unknown Object (File)
Wed, Apr 29, 2:02 AM
Unknown Object (File)
Thu, Apr 23, 9:21 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