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)
Sat, Jul 25, 4:11 PM
Unknown Object (File)
Wed, Jul 22, 7:48 PM
Unknown Object (File)
Sun, Jul 19, 7:31 PM
Unknown Object (File)
Sun, Jul 19, 1:04 PM
Unknown Object (File)
Sat, Jul 18, 1:58 AM
Unknown Object (File)
Mon, Jul 13, 7:53 AM
Unknown Object (File)
Jun 25 2026, 10:10 AM
Unknown Object (File)
Jun 9 2026, 5:28 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41989
Build 38877: arc lint + arc unit