Malware vs. ransomware are sometimes utilized to define the same concept, even though these words refer to quite different aspects.
Source
Malware vs. Ransomware: Do You Know the Difference?

Malware vs. ransomware are sometimes utilized to define the same concept, even though these words refer to quite different aspects.
Source