Borrowed from Classical Persian بدنام (bad-nām). By surface analysis, बद (bad, “bad”) + नाम (nām, “name”).
बदनाम • (badnām) (indeclinable, Urdu spelling بدنام)