If you are convicted of certain offenses or a sentenced to a dishonorable discharge, you may lose your right to own, possess, use, and buy a firearm. Your military defense lawyer can tell about the effects of those convictions under the UCMJ.
United States v. Johnson, No. 24‑0004 (C.A.A.F. 2025), along with broader context on 18 U.S.C. § 922(g) firearm prohibitions in courts-martial:
Court-Martial Trial Practice Blog

