> Linkedin has been breached a lot over time.
Yeah but the OP got spam within hours. That would be pretty unlikely to have coincided with a breach.
But LinkedIn probably sold the data, they have a dark pattern maze of privacy settings and most default to ON.