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)
Sun, Dec 22, 9:15 AM
Unknown Object (File)
Fri, Dec 13, 6:03 PM
Unknown Object (File)
Wed, Dec 4, 8:52 PM
Unknown Object (File)
Nov 22 2024, 7:02 PM
Unknown Object (File)
Nov 8 2024, 7:23 AM
Unknown Object (File)
Nov 7 2024, 3:25 PM
Unknown Object (File)
Oct 9 2024, 3:21 PM
Unknown Object (File)
Oct 8 2024, 5:57 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