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)
Wed, Oct 1, 4:09 PM
Unknown Object (File)
Wed, Sep 24, 4:10 PM
Unknown Object (File)
Sep 8 2025, 1:43 PM
Unknown Object (File)
Aug 30 2025, 1:18 AM
Unknown Object (File)
Aug 30 2025, 12:39 AM
Unknown Object (File)
Aug 29 2025, 11:28 PM
Unknown Object (File)
Aug 29 2025, 7:34 PM
Unknown Object (File)
Jul 14 2025, 2:37 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