Not illegal, rather not free. There is an ongoing effort to switch from GPL licencing to more restrictive licensing, allowing corpos to close the source of their distribution. Redhat-IBM is at work. All this camouflaged behind good intentions like rewriting GNU user land and libs in Rust because memory safety.