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)
Thu, Jun 27, 10:32 AM
Unknown Object (File)
Mon, Jun 24, 5:22 PM
Unknown Object (File)
Fri, Jun 21, 5:21 AM
Unknown Object (File)
Wed, Jun 19, 4:04 AM
Unknown Object (File)
Wed, Jun 19, 3:46 AM
Unknown Object (File)
Wed, Jun 19, 3:41 AM
Unknown Object (File)
Wed, Jun 19, 3:02 AM
Unknown Object (File)
Thu, Jun 13, 4:30 PM
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