Four major U.S. wireless carriers are facing class claims alleging they violated customers’ privacy rights by selling geolocation data to third parties.

Consumers alleged in four nearly identical complaints that Verizon Communications Inc., T-Mobile US Inc., AT&T Inc. and Sprint Corp. violated federal communications law by sharing phone numbers, account information, and location with data aggregators.

The lawsuits come as the Federal Communications Commission continues to investigate wireless carriers’ handling of location information. Democratic FCC Commissioner Jessica Rosenworcel May 1...