no one in infantry uses the M4 or CAR-15. it was mostly used by
armoured troops in the 1990s due to the confined spaces that is
their workplace. they're all being replaced by SARs.
the SAR-21 is more than adequate for most missions, as what you
get from a bullpup rifle is maximum barrel length, overall reduced
length of the rifle. hence theoratically speaking, the sar-21 CAN
be argued to be more accurate, or at least more than capable of
fitting the mission profile of anyone who requires an M4.
The CAR-15s that the infantry and support arms used to have (carried by recce
troops) had no rails, bells and whistles whatsoever.this is because
last time round stuff such as ACOGS, EOtechs etc etc were simply
too expensive to equip a normal conscript army. and i believe they
weren't even invented yet.
The reason why alot of naval boarding teams use the CAR-15 is
due to the fact that they.. simply have not received the SAR-21
yet. (this is an opinion, not a fact.)
besides, theres the SAR-21 P-rail MMS, so theres no need for us
to buy any M4s.
(image courtesy of LazerLords on militaryphotos.net)

i cant answer for the NSF commandos, but i'm 99.99% sure they
only use SAR-21s now.
SOF is classified. what they use does not concern any NSF anyway.
their ops is completely different from what we do. for all we know,
they only use their barehands to fight ;)