As I understand it, it's not illegal to have those adapters. It is illegal to screw them on a rifle and then screw an oil filter or other "suppressor" like device on the adapter.
Suppressors are linked to one owner and are marked with serial numbers, caliber, and mfg. An oil filter obviously doesn't meet those requirements.
However......