Question: is cmos hardware or software?
Answer: It is definitely hardware. In computers, usually, it is used to keep the volatile data for the BIOS/UEFI (usually user configuration). Normally a battery on your motherboard keeps the CMOS functional.