Your passport should be valid for at least six months beyond the expiration date shown on the Form I-797 (Approval Notice) both at the time that you apply for your visa at a U.S. Consulate/Embassy, and on the date of your admission to the United States. For nationals of certain countries (including India, France, Germany, the U.K. and Japan), this requirement is modified to require passport validity until the expiration date on the Form I-797. For a complete list of countries see: https://fam.state.gov/FAM/09FAM/09FAM040309.html#M403_9_3_B.
NOTE: If your passport is valid for less than six months beyond your Form I-797 date on the date you apply to enter the U.S., the CBP officer may admit you only to your passport expiration date; if this occurs, your Form I 94 card/record will be limited to the shorter period of admission. This means your status will expire before the expiration date listed on the latest Form I-797. If you remain in the U.S. beyond the date listed on the I-94 card/record, you will overstay your authorized stay, and will be unlawfully present in the United States. This is one of the reasons it is important that you carefully review your I-94 card/record after every admission, and contact our office if the date the I-94 card/record expires earlier than the I-797 date. Periods of unlawful presence can result in your being barred admission to the United States, or complications with future visa petitions.